Skip to content

Commit 0e5bac9

Browse files
authored
Cherry pick to 202305 - Enable fib suppress for leafrouter by default #17101
Why I did it Cherry pick #17072 Work item tracking Microsoft ADO (25564723): How I did it How to verify it
1 parent 7117fed commit 0e5bac9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sonic-config-engine/minigraph.py

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
backend_device_types = ['BackEndToRRouter', 'BackEndLeafRouter']
4141
console_device_types = ['MgmtTsToR']
4242
dhcp_server_enabled_device_types = ['BmcMgmtToRRouter']
43+
leafrouter_device_types = ['LeafRouter']
44+
4345
VLAN_SUB_INTERFACE_SEPARATOR = '.'
4446
VLAN_SUB_INTERFACE_VLAN_ID = '10'
4547

@@ -2067,6 +2069,10 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw
20672069
if current_device and current_device['type'] in dhcp_server_enabled_device_types:
20682070
results['DEVICE_METADATA']['localhost']['dhcp_server'] = 'enabled'
20692071

2072+
# Enable bgp-suppress-fib by default for leafrouter
2073+
if current_device and current_device['type'] in leafrouter_device_types:
2074+
results['DEVICE_METADATA']['localhost']['suppress-fib-pending'] = 'enabled'
2075+
20702076
return results
20712077

20722078
def get_tunnel_entries(tunnel_intfs, tunnel_intfs_qos_remap_config, lo_intfs, tunnel_qos_remap, mux_tunnel_name, peer_switch_ip):

0 commit comments

Comments
 (0)