]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: Check if BFD session is created with update-source (interface) 17410/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 12 Nov 2024 11:12:56 +0000 (13:12 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 12 Nov 2024 11:12:56 +0000 (13:12 +0200)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
tests/topotests/bgp_bfd_session/r1/frr.conf
tests/topotests/bgp_bfd_session/test_bgp_bfd_session.py

index 1b248dc332d7f0083ab28debb3b741aa266367b3..a1560b09fa89027837df4294cae9b8b20145d235 100644 (file)
@@ -7,4 +7,8 @@ router bgp 65000
  neighbor 192.168.1.2 bfd
  neighbor 192.168.1.2 ebgp-multihop 10
  neighbor 192.168.1.2 update-source 10.0.0.1
+ neighbor 192.168.1.3 remote-as auto
+ neighbor 192.168.1.3 bfd
+ neighbor 192.168.1.3 ebgp-multihop 20
+ neighbor 192.168.1.3 update-source r1-eth0
 exit
index 6884670789ed310f00b704a3e14bf48e9892f159..adf557af7b1b65f4dc9e6dcbf230098d2486dbb7 100644 (file)
@@ -74,6 +74,17 @@ def test_bgp_bfd_session():
                 "diagnostic": "ok",
                 "remote-diagnostic": "ok",
                 "type": "dynamic",
+            },
+            {
+                "multihop": True,
+                "peer": "192.168.1.3",
+                "local": "10.0.0.1",
+                "vrf": "default",
+                "minimum-ttl": 236,
+                "status": "down",
+                "diagnostic": "ok",
+                "remote-diagnostic": "ok",
+                "type": "dynamic",
             }
         ]
         return topotest.json_cmp(output, expected)