pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmo-sigtran/+/38387?usp=email )
Change subject: ss7 vty: Handle 'update route ... qos-class default' properly
......................................................................
ss7 vty: Handle 'update route ... qos-class default' properly
If "default" is passed, use the default value generated by
ss7_route_alloc() (zero).
A follow-up patch will be submitted to also force the CLASS to be a
number.
Change-Id: I370bc19ef5cf2d21fa3408baf26bf8d1ce7bf362
---
M src/osmo_ss7_vty.c
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/87/38387/1
diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index a43e312..06fa823 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -410,7 +410,9 @@
if (argc > argind && !strcmp(argv[argind], "qos-class")) {
argind++;
- rt->cfg.qos_class = atoi(argv[argind++]);
+ if (strcmp(argv[argind], "default") != 0)
+ rt->cfg.qos_class = atoi(argv[argind]);
+ argind++;
}
if ((rc = ss7_route_insert(rt)) < 0) {
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-sigtran/+/38387?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I370bc19ef5cf2d21fa3408baf26bf8d1ce7bf362
Gerrit-Change-Number: 38387
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>