aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-08-03 17:37:53 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2023-08-03 17:37:53 +0200
commite798ebdf6db59d7e76138215ed47f15c87117055 (patch)
treec7ef87b11ef3bfe23c29a7ffdff47d2f64bb0c3a
parenta18f907aaf1e972dcc35349741eff4e66611287c (diff)
tests/vty: test multiple local/remote IP addresses
-rw-r--r--tests/vty/ss7_asp_test.vty15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/vty/ss7_asp_test.vty b/tests/vty/ss7_asp_test.vty
index f7d92bd..3296c65 100644
--- a/tests/vty/ss7_asp_test.vty
+++ b/tests/vty/ss7_asp_test.vty
@@ -248,6 +248,13 @@ ss7_asp_vty_test(config-cs7-asp)# do show cs7 instance 0 asp
ASP Name AS Name State Type Role Remote IPaddr & Port SCTP Role
------------ ------------ ------------- ---- ---- ----------------------- ---------
my-asp ? uninitialized m3ua sg 127.0.0.200:12345 server
+ss7_asp_vty_test(config-cs7-asp)# remote-ip 127.0.0.201
+ss7_asp_vty_test(config-cs7-asp)# local-ip 127.0.0.101
+ss7_asp_vty_test(config-cs7-asp)# do show cs7 instance 0 asp
+ Current Primary Link
+ASP Name AS Name State Type Role Remote IPaddr & Port SCTP Role
+------------ ------------ ------------- ---- ---- ----------------------- ---------
+my-asp ? uninitialized m3ua sg (127.0.0.200|127.0.0.201):12345 server
ss7_asp_vty_test(config-cs7-asp)# exit
ss7_asp_vty_test(config-cs7)# as my-ass m3ua
@@ -311,14 +318,14 @@ ss7_asp_vty_test(config-cs7-as)# do show cs7 instance 0 asp
Current Primary Link
ASP Name AS Name State Type Role Remote IPaddr & Port SCTP Role
------------ ------------ ------------- ---- ---- ----------------------- ---------
-my-asp my-ass ASP_DOWN m3ua sg 127.0.0.200:12345 server
+my-asp my-ass ASP_DOWN m3ua sg (127.0.0.200|127.0.0.201):12345 server
ss7_asp_vty_test(config-cs7-as)# exit
ss7_asp_vty_test(config-cs7)# do show cs7 instance 0 asp
Current Primary Link
ASP Name AS Name State Type Role Remote IPaddr & Port SCTP Role
------------ ------------ ------------- ---- ---- ----------------------- ---------
-my-asp my-ass ASP_DOWN m3ua sg 127.0.0.200:12345 server
+my-asp my-ass ASP_DOWN m3ua sg (127.0.0.200|127.0.0.201):12345 server
ss7_asp_vty_test(config-cs7)# exit
@@ -327,7 +334,7 @@ ss7_asp_vty_test(config)# do show cs7 instance 0 asp
Current Primary Link
ASP Name AS Name State Type Role Remote IPaddr & Port SCTP Role
------------ ------------ ------------- ---- ---- ----------------------- ---------
-my-asp my-ass ASP_DOWN m3ua sg 127.0.0.200:12345 server
+my-asp my-ass ASP_DOWN m3ua sg (127.0.0.200|127.0.0.201):12345 server
ss7_asp_vty_test(config)# do show cs7 instance 0 as all
Routing Routing Key Cic Cic Traffic
@@ -342,7 +349,9 @@ ss7_asp_vty_test(config)# show running-config
cs7 instance 0
asp my-asp 12345 54321 m3ua
local-ip 127.0.0.100
+ local-ip 127.0.0.101
remote-ip 127.0.0.200
+ remote-ip 127.0.0.201
role sg
sctp-role server
as my-ass m3ua