laforge has submitted this change. (
https://gerrit.osmocom.org/c/libosmo-sigtran/+/39855?usp=email )
Change subject: tests/vty: Test adding routes with smaller bitmask len to routing table
......................................................................
tests/vty: Test adding routes with smaller bitmask len to routing table
Change-Id: I376ba40ab990acb1d309db0a0ef7b09c5b80e67f
---
M tests/vty/osmo_stp_route_prio.vty
1 file changed, 30 insertions(+), 1 deletion(-)
Approvals:
laforge: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/tests/vty/osmo_stp_route_prio.vty b/tests/vty/osmo_stp_route_prio.vty
index 9e34d6e..b993cbb 100644
--- a/tests/vty/osmo_stp_route_prio.vty
+++ b/tests/vty/osmo_stp_route_prio.vty
@@ -63,8 +63,8 @@
accept-asp-connections dynamic-permitted
end
-OsmoSTP(config-cs7)# ! ADD 2 ROUTES WITH DECREASING PRIORITIES. THEY SHOULD END UP
REORDERED BY PRIORITY:
OsmoSTP(config-cs7)# route-table system
+OsmoSTP(config-cs7-rt)# ! ADD 2 ROUTES WITH DECREASING PRIORITIES. THEY SHOULD END UP
REORDERED BY PRIORITY:
OsmoSTP(config-cs7-rt)# update route 3.2.1 7.255.7 linkset as1 priority 6 qos-class 7
OsmoSTP(config-cs7-rt)# update route 3.2.1 7.255.7 linkset as2
OsmoSTP(config-cs7-rt)# update route 3.2.1 7.255.7 linkset as3 priority 2
@@ -87,6 +87,35 @@
3.2.1/14 INACC 0 5 as2 UNAVAIL ? UNAVAIL
3.2.1/14 INACC 7 6 as1 UNAVAIL ? UNAVAIL
+OsmoSTP(config-cs7-rt)# ! NOW ADD MORE GENERIC ROUTES (SMALLER BITMASK LENGTH)
+OsmoSTP(config-cs7-rt)# update route 3.2.0 7.255.0 linkset as1 priority 1
+OsmoSTP(config-cs7-rt)# update route 3.2.0 7.255.0 linkset as2 priority 1
+OsmoSTP(config-cs7-rt)# update route 3.2.0 7.255.0 linkset as3 priority 1
+OsmoSTP(config-cs7-rt)# show running-config
+...
+cs7 instance 0
+...
+ route-table system
+ update route 3.2.1 7.255.7 linkset as3 priority 2
+ update route 3.2.1 7.255.7 linkset as2
+ update route 3.2.1 7.255.7 linkset as1 priority 6 qos-class 7
+ update route 3.2.0 7.255.0 linkset as1 priority 1
+ update route 3.2.0 7.255.0 linkset as2 priority 1
+ update route 3.2.0 7.255.0 linkset as3 priority 1
+...
+OsmoSTP(config-cs7-rt)# do show cs7 instance 0 route
+Routing table = system
+C=Cong Q=QoS P=Prio
+
+Destination C Q P Linkset Name Linkset Non-adj Route
+---------------------- - - - ------------------- ------- ------- -------
+3.2.1/14 INACC 0 2 as3 UNAVAIL ? UNAVAIL
+3.2.1/14 INACC 0 5 as2 UNAVAIL ? UNAVAIL
+3.2.1/14 INACC 7 6 as1 UNAVAIL ? UNAVAIL
+3.2.0/11 INACC 0 1 as1 UNAVAIL ? UNAVAIL
+3.2.0/11 INACC 0 1 as2 UNAVAIL ? UNAVAIL
+3.2.0/11 INACC 0 1 as3 UNAVAIL ? UNAVAIL
+
OsmoSTP(config-cs7-rt)# do show cs7 instance 0 route binding-table 3.2.1
Combined Linkset: dpc=6161=3.2.1, mask=0x3fff=7.255.7, prio=2
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-sigtran/+/39855?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: I376ba40ab990acb1d309db0a0ef7b09c5b80e67f
Gerrit-Change-Number: 39855
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>