@@ -29,7 +29,7 @@ def test_bfd_show(self):
2929 "tx_interval" :"300" , "rx_interval" : "500" , "multiplier" : "3" , "multihop" : "true" })
3030 self .set_db_values (dbconnector , "BFD_SESSION_TABLE|default|Ethernet12|10.0.2.1" ,
3131 {"state" : "UP" , "type" : "async_active" , "local_addr" : "10.0.0.1" ,
32- "tx_interval" :"200" , "rx_interval" : "600" , "multiplier" : "3" , "multihop" : "false" })
32+ "tx_interval" :"200" , "rx_interval" : "600" , "multiplier" : "3" , "multihop" : "false" , "local_discriminator" : "88" })
3333 self .set_db_values (dbconnector , "BFD_SESSION_TABLE|default|default|2000::10:1" ,
3434 {"state" : "UP" , "type" : "async_active" , "local_addr" : "2000::1" ,
3535 "tx_interval" :"100" , "rx_interval" : "700" , "multiplier" : "3" , "multihop" : "false" })
@@ -39,14 +39,14 @@ def test_bfd_show(self):
3939
4040 expected_output = """\
4141 Total number of BFD sessions: 6
42- Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop
43- --------------------- ----------- ------- ------- ------------ --------------------- ------------- ------------- ------------ ----------
44- 100.251.7.1 default default Up async_active 10.0.0.1 300 500 3 true
45- fddd:a101:a251::a10:1 default default Down async_active fddd:c101:a251::a10:2 300 500 3 true
46- 10.0.1.1 default default DOWN async_active 10.0.0.1 300 500 3 true
47- 10.0.2.1 Ethernet12 default UP async_active 10.0.0.1 200 600 3 false
48- 2000::10:1 default default UP async_active 2000::1 100 700 3 false
49- 10.0.1.1 default VrfRed UP async_active 10.0.0.1 400 500 5 false
42+ Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop Local Discriminator
43+ --------------------- ----------- ------- ------- ------------ --------------------- ------------- ------------- ------------ ---------- ---------------------
44+ 100.251.7.1 default default Up async_active 10.0.0.1 300 500 3 true NA
45+ fddd:a101:a251::a10:1 default default Down async_active fddd:c101:a251::a10:2 300 500 3 true NA
46+ 10.0.1.1 default default DOWN async_active 10.0.0.1 300 500 3 true NA
47+ 10.0.2.1 Ethernet12 default UP async_active 10.0.0.1 200 600 3 false 88
48+ 2000::10:1 default default UP async_active 2000::1 100 700 3 false NA
49+ 10.0.1.1 default VrfRed UP async_active 10.0.0.1 400 500 5 false NA
5050"""
5151
5252 result = runner .invoke (show .cli .commands ['bfd' ].commands ['summary' ], [], obj = db )
@@ -55,10 +55,10 @@ def test_bfd_show(self):
5555
5656 expected_output = """\
5757 Total number of BFD sessions for peer IP 10.0.1.1: 2
58- Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop
59- ----------- ----------- ------- ------- ------------ ------------ ------------- ------------- ------------ ----------
60- 10.0.1.1 default default DOWN async_active 10.0.0.1 300 500 3 true
61- 10.0.1.1 default VrfRed UP async_active 10.0.0.1 400 500 5 false
58+ Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop Local Discriminator
59+ ----------- ----------- ------- ------- ------------ ------------ ------------- ------------- ------------ ---------- ---------------------
60+ 10.0.1.1 default default DOWN async_active 10.0.0.1 300 500 3 true NA
61+ 10.0.1.1 default VrfRed UP async_active 10.0.0.1 400 500 5 false NA
6262"""
6363
6464 result = runner .invoke (show .cli .commands ['bfd' ].commands ['peer' ], ['10.0.1.1' ], obj = db )
@@ -67,9 +67,9 @@ def test_bfd_show(self):
6767
6868 expected_output = """\
6969 Total number of BFD sessions for peer IP 10.0.2.1: 1
70- Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop
71- ----------- ----------- ------- ------- ------------ ------------ ------------- ------------- ------------ ----------
72- 10.0.2.1 Ethernet12 default UP async_active 10.0.0.1 200 600 3 false
70+ Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop Local Discriminator
71+ ----------- ----------- ------- ------- ------------ ------------ ------------- ------------- ------------ ---------- ---------------------
72+ 10.0.2.1 Ethernet12 default UP async_active 10.0.0.1 200 600 3 false 88
7373"""
7474
7575 result = runner .invoke (show .cli .commands ['bfd' ].commands ['peer' ], ['10.0.2.1' ], obj = db )
@@ -91,10 +91,10 @@ def test_bfd_show_no_session(self):
9191
9292 expected_output = """\
9393 Total number of BFD sessions: 2
94- Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop
95- --------------------- ----------- ------- ------- ------------ --------------------- ------------- ------------- ------------ ----------
96- 100.251.7.1 default default Up async_active 10.0.0.1 300 500 3 true
97- fddd:a101:a251::a10:1 default default Down async_active fddd:c101:a251::a10:2 300 500 3 true
94+ Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop Local Discriminator
95+ --------------------- ----------- ------- ------- ------------ --------------------- ------------- ------------- ------------ ---------- ---------------------
96+ 100.251.7.1 default default Up async_active 10.0.0.1 300 500 3 true NA
97+ fddd:a101:a251::a10:1 default default Down async_active fddd:c101:a251::a10:2 300 500 3 true NA
9898"""
9999
100100 result = runner .invoke (show .cli .commands ['bfd' ].commands ['summary' ], [], obj = db )
0 commit comments