diff options
author | Robert Bays <robert@vyatta.com> | 2010-07-13 22:01:12 -0700 |
---|---|---|
committer | Robert Bays <robert@vyatta.com> | 2010-07-13 22:01:12 -0700 |
commit | f396299ffbd2412cf30c4b904cd5d35bfb6c9058 (patch) | |
tree | a52304fd2234fd5a18ea979cd7ae8c6936e56301 /templates/protocols/bgp | |
parent | 6cc01c9f58cbe3f6aad79bf19ab7b63b8ce49e9e (diff) | |
download | vyatta-cfg-quagga-f396299ffbd2412cf30c4b904cd5d35bfb6c9058.tar.gz vyatta-cfg-quagga-f396299ffbd2412cf30c4b904cd5d35bfb6c9058.zip |
add commit check to verify remove-private-as is not set on iBGP peers
Diffstat (limited to 'templates/protocols/bgp')
2 files changed, 4 insertions, 1 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/node.def index 9d8f8646..e2c13df6 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/node.def @@ -1,2 +1,4 @@ help: Set to remove private AS numbers from AS path in outbound route updates commit:expression: $VAR(../../../peer-group/) == ""; "protocols bgp $VAR(../../../../@) neighbor $VAR(../../../@): you can't set remove-private-as for a neighbor in a peer-group" +commit:expression: $VAR(../../../remote-as/@) != $VAR(../../../../@); "protocols bgp $VAR(../../../../@) neighbor $VAR(../../../@): you can't set remove-private-as for an iBGP peer" + diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/remove-private-as/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/remove-private-as/node.def index 067de3f2..76fa7574 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/remove-private-as/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/remove-private-as/node.def @@ -1,2 +1,3 @@ help: Set to remove private AS numbers from AS path in outbound route updates -commit:expression: $VAR(../peer-group/) == ""; "protocols bgp $VAR(../../@) neighbor $VAR(../../@): you can't set remove-private-as for a neighbor in a peer-group" +commit:expression: $VAR(../peer-group/) == ""; "protocols bgp $VAR(../../@) neighbor $VAR(../@): you can't set remove-private-as for a neighbor in a peer-group" +commit:expression: $VAR(../remote-as/@) != $VAR(../../@); "protocols bgp $VAR(../../@) neighbor $VAR(../@): you can't set remove-private-as for an iBGP peer" |