laforge submitted this change.
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(-)
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 change 38387. To unsubscribe, or for help writing mail filters, visit settings.