]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: check bfd with update-source in peer-group
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 22 Jan 2025 12:30:04 +0000 (13:30 +0100)
committerLouis Scalbert <louis.scalbert@6wind.com>
Wed, 22 Jan 2025 16:55:55 +0000 (17:55 +0100)
Check bfd with update-source in peer-group.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
tests/topotests/bgp_bfd_session/r1/frr.conf
tests/topotests/bgp_bfd_session/test_bgp_bfd_session.py

index a1560b09fa89027837df4294cae9b8b20145d235..cea1ff81474429c561b63aadf860a62c291caba0 100644 (file)
@@ -11,4 +11,16 @@ router bgp 65000
  neighbor 192.168.1.3 bfd
  neighbor 192.168.1.3 ebgp-multihop 20
  neighbor 192.168.1.3 update-source r1-eth0
+ neighbor PG peer-group
+ neighbor PG remote-as auto
+ neighbor PG bfd
+ neighbor PG ebgp-multihop 15
+ neighbor PG update-source 10.0.0.1
+ neighbor 192.168.1.4 peer-group PG
+ neighbor PG2 peer-group
+ neighbor PG2 remote-as auto
+ neighbor PG2 bfd
+ neighbor PG2 ebgp-multihop 25
+ neighbor 192.168.1.5 peer-group PG2
+ neighbor 192.168.1.5 update-source 10.0.0.1
 exit
index adf557af7b1b65f4dc9e6dcbf230098d2486dbb7..0dbb2f089bba7f8de6e04c9e393b213bc3eb6c50 100644 (file)
@@ -85,7 +85,29 @@ def test_bgp_bfd_session():
                 "diagnostic": "ok",
                 "remote-diagnostic": "ok",
                 "type": "dynamic",
-            }
+            },
+            {
+                "multihop": True,
+                "peer": "192.168.1.4",
+                "local": "10.0.0.1",
+                "vrf": "default",
+                "minimum-ttl": 241,
+                "status": "down",
+                "diagnostic": "ok",
+                "remote-diagnostic": "ok",
+                "type": "dynamic",
+            },
+            {
+                "multihop": True,
+                "peer": "192.168.1.5",
+                "local": "10.0.0.1",
+                "vrf": "default",
+                "minimum-ttl": 231,
+                "status": "down",
+                "diagnostic": "ok",
+                "remote-diagnostic": "ok",
+                "type": "dynamic",
+            },
         ]
         return topotest.json_cmp(output, expected)