From f45107c41e01b2475304e243e25e0f25542395b6 Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Wed, 14 Jul 2010 22:15:37 -0700 Subject: move conditional checks for ttl-security back into the node.def files to keep them from being checked on every commit --- .../protocols/bgp/node.tag/neighbor/node.tag/ebgp-multihop/node.def | 1 + .../protocols/bgp/node.tag/neighbor/node.tag/ttl-security/hops/node.def | 1 + 2 files changed, 2 insertions(+) (limited to 'templates') diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/ebgp-multihop/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/ebgp-multihop/node.def index 8a89fc4c..14878cb4 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/ebgp-multihop/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/ebgp-multihop/node.def @@ -3,3 +3,4 @@ help: Allow this EBGP neighbor to not be on a directly connected network comp_help: possible completions: <1-255> number of hops syntax:expression: $VAR(@) >=1 && $VAR(@) <= 255; "ebgp-multihop must be between 1 and 255" +commit:expression: $VAR(../ttl-security/hops/) == ""; "protocols bgp $VAR(../../@) neighbor $VAR(../@) ebgp-multihop: you can't set both ebgp-multihop and ttl-security hops" diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/ttl-security/hops/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/ttl-security/hops/node.def index c5950865..cd69bde9 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/ttl-security/hops/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/ttl-security/hops/node.def @@ -3,3 +3,4 @@ help: Set number of the maximum number of hops to the BGP peer comp_help: possible completions: <1-254> number of hops syntax:expression: $VAR(@) >=1 && $VAR(@) <= 254; "ttl-security hops must be between 1 and 254" +commit:expression: $VAR(../../ebgp-multihop/) == ""; "protocols bgp $VAR(../../../@) neighbor $VAR(../../@) ttl-security hops: you can't set both ebgp-multihop and ttl-security hops" -- cgit v1.2.3