summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-11-18 15:21:45 +0100
committerDaniil Baturin <daniil@baturin.org>2018-11-18 15:21:45 +0100
commita2cc8bd08c6f2c6909af7e9ec73efda6a5443f39 (patch)
treea4f8928182c2913587a5181a47d49bc442bbbb29
parentfc99449811c67a7921ea5a68c68e5c7eea611d8c (diff)
downloadvyatta-cfg-quagga-a2cc8bd08c6f2c6909af7e9ec73efda6a5443f39.tar.gz
vyatta-cfg-quagga-a2cc8bd08c6f2c6909af7e9ec73efda6a5443f39.zip
T799: remove a workaround for FRR#3215, it's not possible to delete a community-list at once
The problem still exists for extcommunity-lists.
-rwxr-xr-xscripts/policy/vyatta-policy.pl6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/policy/vyatta-policy.pl b/scripts/policy/vyatta-policy.pl
index 7d3edb58..23cf93ca 100755
--- a/scripts/policy/vyatta-policy.pl
+++ b/scripts/policy/vyatta-policy.pl
@@ -117,11 +117,7 @@ sub update_community_list {
# remove the old rule
if ( is_community_list($num) ) {
- my $clist = `$VTYSH -c \"show ip community-list $num\" | grep -v \"access list $num\"`;
- my @oldrules = split(/\n/, $clist);
- foreach my $oldrule (@oldrules) {
- system("$VTYSH -c \"conf t\" -c \"no bgp community-list expanded $num $oldrule\"");
- }
+ system("$VTYSH -c \"conf t\" -c \"no bgp community-list expanded $num\"");
}
$config->setLevel("policy community-list $num rule");