summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-08 13:07:55 +0200
committerGitHub <noreply@github.com>2021-05-08 13:07:55 +0200
commitd5689ea3d8e960cbc45578d914bd6139ee4c778f (patch)
treeac44eade5086053337a32e80b13835ea190f10a1
parentd84b14447aae2e1b0b6417946a4d3061f79e4d53 (diff)
parent7da055664da256172be2c1093e5088661a529f48 (diff)
downloadvyatta-cfg-quagga-d5689ea3d8e960cbc45578d914bd6139ee4c778f.tar.gz
vyatta-cfg-quagga-d5689ea3d8e960cbc45578d914bd6139ee4c778f.zip
Merge pull request #77 from sever-sever/T3528
policy: T3528: Fix seq for community lists
-rwxr-xr-xscripts/policy/vyatta-policy.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/policy/vyatta-policy.pl b/scripts/policy/vyatta-policy.pl
index 3e73a3bb..f098b48a 100755
--- a/scripts/policy/vyatta-policy.pl
+++ b/scripts/policy/vyatta-policy.pl
@@ -116,7 +116,7 @@ sub update_large_community_list {
if (!($regex =~ /(.*):(.*):(.*)/) and (isIpAddress($1)or($1=~/^\d+$/) ) and ($2=~/^\d+$/)) {
die "large-community-list $name rule $rule: Malformed large-community-list regex";
}
- system("$VTYSH -c \"conf t\" -c \"bgp large-community-list expanded $name $action $regex\"");
+ system("$VTYSH -c \"conf t\" -c \"bgp large-community-list expanded $name seq $rule $action $regex\"");
}
exit(0);
@@ -153,7 +153,7 @@ sub update_ext_community_list {
if (!($regex =~ /(.*):(.*)/) and (isIpAddress($1)or($1=~/^\d+$/) ) and ($2=~/^\d+$/)) {
die "extcommunity-list $name rule $rule: Malformed extcommunity-list regex";
}
- system("$VTYSH -c \"conf t\" -c \"bgp extcommunity-list expanded $name $action $regex\"");
+ system("$VTYSH -c \"conf t\" -c \"bgp extcommunity-list expanded $name seq $rule $action $regex\"");
}
exit(0);
@@ -187,7 +187,7 @@ sub update_community_list {
unless $regex;
system(
-"$VTYSH -c \"configure terminal\" -c \"bgp community-list expanded $num $action $regex\" "
+"$VTYSH -c \"configure terminal\" -c \"bgp community-list expanded $num seq $rule $action $regex\" "
);
}