@@ -29,7 +29,7 @@ def test_bfd_show(self):
29
29
"tx_interval" :"300" , "rx_interval" : "500" , "multiplier" : "3" , "multihop" : "true" })
30
30
self .set_db_values (dbconnector , "BFD_SESSION_TABLE|default|Ethernet12|10.0.2.1" ,
31
31
{"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" })
33
33
self .set_db_values (dbconnector , "BFD_SESSION_TABLE|default|default|2000::10:1" ,
34
34
{"state" : "UP" , "type" : "async_active" , "local_addr" : "2000::1" ,
35
35
"tx_interval" :"100" , "rx_interval" : "700" , "multiplier" : "3" , "multihop" : "false" })
@@ -39,14 +39,14 @@ def test_bfd_show(self):
39
39
40
40
expected_output = """\
41
41
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
50
50
"""
51
51
52
52
result = runner .invoke (show .cli .commands ['bfd' ].commands ['summary' ], [], obj = db )
@@ -55,10 +55,10 @@ def test_bfd_show(self):
55
55
56
56
expected_output = """\
57
57
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
62
62
"""
63
63
64
64
result = runner .invoke (show .cli .commands ['bfd' ].commands ['peer' ], ['10.0.1.1' ], obj = db )
@@ -67,9 +67,9 @@ def test_bfd_show(self):
67
67
68
68
expected_output = """\
69
69
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
73
73
"""
74
74
75
75
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):
91
91
92
92
expected_output = """\
93
93
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
98
98
"""
99
99
100
100
result = runner .invoke (show .cli .commands ['bfd' ].commands ['summary' ], [], obj = db )
0 commit comments