pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/39610?usp=email )
Change subject: vty: Rename cmd to show routing table ......................................................................
vty: Rename cmd to show routing table
The previous cmd name was misleading since it doesn't show a route, but a routing table. Rename the cmd, the previous name will be used in a follow-up patch to implement a command which allows looking up a given route, similar to linux "ip route get".
Change-Id: Ie2a01523f95275d88e04f6c76505116372524d3b --- M src/osmo_ss7_vty.c M tests/vty/osmo_stp_route_prio.vty M tests/vty/osmo_stp_test.vty 3 files changed, 9 insertions(+), 8 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/10/39610/1
diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c index 6b404b3..1369640 100644 --- a/src/osmo_ss7_vty.c +++ b/src/osmo_ss7_vty.c @@ -522,9 +522,10 @@ } }
-DEFUN(show_cs7_route, show_cs7_route_cmd, - "show cs7 instance <0-15> route", - SHOW_STR CS7_STR INST_STR INST_STR "Routing Table\n") +DEFUN(show_cs7_route_table, show_cs7_route_table_cmd, + "show cs7 instance <0-15> route-table [system]", + SHOW_STR CS7_STR INST_STR INST_STR + "Routing Table\n" "Routing Table Name\n") { int id = atoi(argv[0]); struct osmo_ss7_instance *inst; @@ -3102,7 +3103,7 @@ install_lib_element(L_CS7_AS_NODE, &as_pc_override_cmd); install_lib_element(L_CS7_AS_NODE, &as_pc_patch_sccp_cmd);
- install_lib_element_ve(&show_cs7_route_cmd); + install_lib_element_ve(&show_cs7_route_table_cmd);
vty_init_addr(); } diff --git a/tests/vty/osmo_stp_route_prio.vty b/tests/vty/osmo_stp_route_prio.vty index 10833ea..73608db 100644 --- a/tests/vty/osmo_stp_route_prio.vty +++ b/tests/vty/osmo_stp_route_prio.vty @@ -77,7 +77,7 @@ update route 3.2.1 7.255.7 linkset as2 update route 3.2.1 7.255.7 linkset as1 priority 6 ... -OsmoSTP(config-cs7-rt)# do show cs7 instance 0 route +OsmoSTP(config-cs7-rt)# do show cs7 instance 0 route-table system Routing table = system C=Cong Q=QoS P=Prio
diff --git a/tests/vty/osmo_stp_test.vty b/tests/vty/osmo_stp_test.vty index cb24560..4caa40a 100644 --- a/tests/vty/osmo_stp_test.vty +++ b/tests/vty/osmo_stp_test.vty @@ -11,7 +11,7 @@ show cs7 instance <0-15> asp-assoc-status show cs7 instance <0-15> asp-assoc-status name ASP_NAME show cs7 instance <0-15> as (active|all|m3ua|sua) - show cs7 instance <0-15> route + show cs7 instance <0-15> route-table [system] show cs7 instance <0-15> sccp addressbook show cs7 instance <0-15> sccp users show cs7 instance <0-15> sccp ssn <0-65535> @@ -34,7 +34,7 @@ show cs7 instance <0-15> asp-assoc-status show cs7 instance <0-15> asp-assoc-status name ASP_NAME show cs7 instance <0-15> as (active|all|m3ua|sua) - show cs7 instance <0-15> route + show cs7 instance <0-15> route-table [system] show cs7 instance <0-15> sccp addressbook show cs7 instance <0-15> sccp users show cs7 instance <0-15> sccp ssn <0-65535> @@ -77,7 +77,7 @@ asp-remaddr Application Server Process (ASP) remote addresses information asp-assoc-status Application Server Process (ASP) SCTP association status as Application Server (AS) - route Routing Table + route-table Routing Table sccp Signalling Connection Control Part
OsmoSTP# show cs7 instance 0 as ?