diff options
author | sever-sever <v.gletenko@vyos.io> | 2021-05-08 09:37:22 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2021-05-08 09:37:22 +0000 |
commit | 7da055664da256172be2c1093e5088661a529f48 (patch) | |
tree | ac44eade5086053337a32e80b13835ea190f10a1 | |
parent | d84b14447aae2e1b0b6417946a4d3061f79e4d53 (diff) | |
download | vyatta-cfg-quagga-7da055664da256172be2c1093e5088661a529f48.tar.gz vyatta-cfg-quagga-7da055664da256172be2c1093e5088661a529f48.zip |
policy: T3528: Fix seq for community lists
-rwxr-xr-x | scripts/policy/vyatta-policy.pl | 6 |
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\" " ); } |