summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-14 12:46:49 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-14 13:03:34 +0100
commit5868cbeba1bd9a4c3daaad7aa81af5c45e00cd16 (patch)
tree7adbfc4f0c17148615de9b29a5c18a5c11b3967f /src
parenta2062824f21432031e65db0f16954f18aba19bec (diff)
downloadvyos-1x-5868cbeba1bd9a4c3daaad7aa81af5c45e00cd16.tar.gz
vyos-1x-5868cbeba1bd9a4c3daaad7aa81af5c45e00cd16.zip
bgp: T2844: add IPv4 disable-send-community support
Diffstat (limited to 'src')
-rwxr-xr-xsrc/migration-scripts/quagga/6-to-78
1 files changed, 8 insertions, 0 deletions
diff --git a/src/migration-scripts/quagga/6-to-7 b/src/migration-scripts/quagga/6-to-7
index 3a229b5df..f7aca0d2b 100755
--- a/src/migration-scripts/quagga/6-to-7
+++ b/src/migration-scripts/quagga/6-to-7
@@ -46,6 +46,14 @@ if asn_list:
if not config.exists(bgp_base + [neighbor_type]):
continue
for neighbor in config.list_nodes(bgp_base + [neighbor_type]):
+ # T2844 - add IPv4 AFI disable-send-community support
+ send_comm_path = bgp_base + [neighbor_type, neighbor, 'disable-send-community']
+ if config.exists(send_comm_path):
+ new_base = bgp_base + [neighbor_type, neighbor, 'address-family', 'ipv4-unicast']
+ config.set(new_base)
+ config.copy(send_comm_path, new_base + ['disable-send-community'])
+ config.delete(send_comm_path)
+
cap_dynamic = False
for afi in ['ipv4-unicast', 'ipv6-unicast']:
afi_path = bgp_base + [neighbor_type, neighbor, 'address-family', afi, 'capability', 'dynamic']