laforge has submitted this change. ( 
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(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved




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: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I370bc19ef5cf2d21fa3408baf26bf8d1ce7bf362
Gerrit-Change-Number: 38387
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>

Reply via email to