summaryrefslogtreecommitdiff
path: root/scripts
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:23:19 +0100
commit7d8ac201a990be7664ec79d27c85076fdd079f85 (patch)
treedd20991edf2697413d3a4e92ea754d46be5f9713 /scripts
parentc3fa5fd1e8cc670afaa73fedd75ceba758d307f3 (diff)
downloadvyatta-cfg-quagga-7d8ac201a990be7664ec79d27c85076fdd079f85.tar.gz
vyatta-cfg-quagga-7d8ac201a990be7664ec79d27c85076fdd079f85.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.
Diffstat (limited to 'scripts')
-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");