summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/ttl-security/node.def5
-rw-r--r--templates/protocols/bgp/node.tag/peer-group/node.tag/ttl-security/node.def8
-rw-r--r--templates/protocols/static/arp/node.def5
3 files changed, 15 insertions, 3 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/ttl-security/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/ttl-security/node.def
index 05be9f5b..f8127f10 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/ttl-security/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/ttl-security/node.def
@@ -1,2 +1,7 @@
+type: u32
help: Set ttl security mechanism for this BGP peer
+comp_help: possible completions:
+ <1-254> maximum number of hops that separate two peers
+syntax:expression: $VAR(@) >=1 && $VAR(@) <= 254 ; \
+ "ttl-security must be between 1 and 254"
commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --not-exists \"protocols bgp $VAR(../../@) neighbor $VAR(../@) ebgp-multihop\" "; "protocols bgp $VAR(../../@) neighbor $VAR(../@) ttl-security: you can't set both ebgp-multihop and ttl-security"
diff --git a/templates/protocols/bgp/node.tag/peer-group/node.tag/ttl-security/node.def b/templates/protocols/bgp/node.tag/peer-group/node.tag/ttl-security/node.def
new file mode 100644
index 00000000..bf7c0f39
--- /dev/null
+++ b/templates/protocols/bgp/node.tag/peer-group/node.tag/ttl-security/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: Set ttl security mechanism for this peer-group
+comp_help: possible completions:
+ <1-254> maximum number of hops that separate two peers
+syntax:expression: $VAR(@) >=1 && $VAR(@) <= 254 ; \
+ "ttl-security must be between 1 and 254"
+
+commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --not-exists \"protocols bgp $VAR(../../@) neighbor $VAR(../@) ebgp-multihop\" "; "protocols bgp $VAR(../../@) neighbor $VAR(../@) ttl-security: you can't set both ebgp-multihop and ttl-security"
diff --git a/templates/protocols/static/arp/node.def b/templates/protocols/static/arp/node.def
index 0174b24c..a7905c57 100644
--- a/templates/protocols/static/arp/node.def
+++ b/templates/protocols/static/arp/node.def
@@ -35,9 +35,8 @@ comp_help: Possible completions:
end:
ipaddr=$VAR(@)
hwaddr=$VAR(hwaddr/@)
-
- sudo arp -d $ipaddr > /dev/null
+ /usr/sbin/arp -d $ipaddr > /dev/null
if [ -n "$hwaddr" ]; then
- sudo arp -s $ipaddr $hwaddr
+ /usr/sbin/arp -s $ipaddr $hwaddr
fi
exit 0