From a2cc8bd08c6f2c6909af7e9ec73efda6a5443f39 Mon Sep 17 00:00:00 2001
From: Daniil Baturin <daniil@baturin.org>
Date: Sun, 18 Nov 2018 15:21:45 +0100
Subject: 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.
---
 scripts/policy/vyatta-policy.pl | 6 +-----
 1 file changed, 1 insertion(+), 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");
-- 
cgit v1.2.3