Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions tests/bgp/test_bgp_update_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,16 @@ def setup_bgp_peers(
mg_facts = duthost.get_extended_minigraph_facts(tbinfo)

dut_asn = mg_facts["minigraph_bgp_asn"]
confed_asn = duthost.get_bgp_confed_asn()
use_vtysh = False
dut_type = mg_facts["minigraph_devices"][duthost.hostname]["type"]
if dut_type in ["ToRRouter", "SpineRouter", "BackEndToRRouter", "LowerSpineRouter"]:
neigh_type = "LeafRouter"
elif dut_type == "UpperSpineRouter":
elif dut_type in ["UpperSpineRouter", "FabricSpineRouter"]:
neigh_type = "LowerSpineRouter"
if dut_type == "FabricSpineRouter" and confed_asn is not None:
# For FT2, we need to use vtysh to configure BGP neigh if BGP confed is enabled
use_vtysh = True
else:
neigh_type = "ToRRouter"

Expand Down Expand Up @@ -197,7 +202,9 @@ def setup_bgp_peers(
is_ipv6_only=is_ipv6_only_topology(tbinfo),
namespace=connection_namespace,
is_multihop=is_quagga or is_dualtor,
is_passive=False
is_passive=False,
confed_asn=confed_asn,
use_vtysh=use_vtysh,
)

bgp_peers.append(peer)
Expand Down
Loading