pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-sigtran/+/38389?usp=email )


Change subject: ss7 vty: Limit qos-class range to 0-7
......................................................................

ss7 vty: Limit qos-class range to 0-7

This matches QoS ranges used by other vendors.

Change-Id: I541723e4551977cb2b7afcac01e3bfee070e7bac
---
M src/osmo_ss7_vty.c
M tests/vty/osmo_stp_test.vty
2 files changed, 4 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran 
refs/changes/89/38389/1

diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index b1029ed..35a940f 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -67,7 +67,7 @@
        "SCTP (Stream Control Transmission Protocol)\n" \
        "TCP (Transmission Control Protocol)\n"

-#define QOS_CLASS_RANGE_STR "<0-255>"
+#define QOS_CLASS_RANGE_STR "<0-7>"
 #define QOS_CLASS_RANGE_HELP_STR "QoS Class\n"
 #define QOS_CLASS_VAR_STR "(" QOS_CLASS_RANGE_STR "|default)"
 #define QOS_CLASS_VAR_HELP_STR \
diff --git a/tests/vty/osmo_stp_test.vty b/tests/vty/osmo_stp_test.vty
index 33e092b..5253b9a 100644
--- a/tests/vty/osmo_stp_test.vty
+++ b/tests/vty/osmo_stp_test.vty
@@ -263,7 +263,7 @@
   no remote-ip (A.B.C.D|X:X::X:X)
   local-ip (A.B.C.D|X:X::X:X) [primary]
   no local-ip (A.B.C.D|X:X::X:X)
-  qos-class <0-255>
+  qos-class <0-7>
   role (sg|asp|ipsp)
   transport-role (client|server)
   sctp-param init (num-ostreams|max-instreams|max-attempts|timeout) <0-65535>
@@ -347,7 +347,7 @@
   traffic-mode (broadcast | loadshare | roundrobin | override)
   no traffic-mode
   recovery-timeout <1-2000>
-  qos-class <0-255>
+  qos-class <0-7>
   routing-key RCONTEXT DPC
   routing-key RCONTEXT DPC si (aal2|bicc|b-isup|h248|isup|sat-isup|sccp|tup)
   routing-key RCONTEXT DPC ssn SSN
@@ -570,7 +570,7 @@
 OsmoSTP(config-cs7)# route-table system
 OsmoSTP(config-cs7-rt)# list
 ...
-  update route POINT_CODE MASK linkset LS_NAME [priority] [PRIO] [qos-class] 
[(<0-255>|default)]
+  update route POINT_CODE MASK linkset LS_NAME [priority] [PRIO] [qos-class] 
[(<0-7>|default)]
   remove route POINT_CODE MASK
 OsmoSTP(config-cs7-rt)# update route 3.2.1 7.255.7 linkset my-ass
 OsmoSTP(config-cs7-rt)# show running-config

--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/38389?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: I541723e4551977cb2b7afcac01e3bfee070e7bac
Gerrit-Change-Number: 38389
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to