summaryrefslogtreecommitdiff
path: root/templates/protocols/static
diff options
context:
space:
mode:
authorbharat <bharat@Build64-bharat.vyatta.com>2012-09-26 15:17:40 -0700
committerbharat <bharat@Build64-bharat.vyatta.com>2012-09-26 15:17:40 -0700
commitc2fea541719c467678f0967f9e2d5e39e505c3a2 (patch)
treee2e26a4ff84eab39d0722b04d9730f5195da92b9 /templates/protocols/static
parent6cffc4d634a7a66f04b904f76d88948af6433990 (diff)
downloadvyatta-cfg-quagga-c2fea541719c467678f0967f9e2d5e39e505c3a2.tar.gz
vyatta-cfg-quagga-c2fea541719c467678f0967f9e2d5e39e505c3a2.zip
- Added Multicast and Broadcast checks for route and next hop for static route command.
Diffstat (limited to 'templates/protocols/static')
-rw-r--r--templates/protocols/static/route/node.def2
-rw-r--r--templates/protocols/static/route/node.tag/next-hop/node.def1
-rw-r--r--templates/protocols/static/route6/node.def2
-rw-r--r--templates/protocols/static/route6/node.tag/next-hop/node.def2
4 files changed, 5 insertions, 2 deletions
diff --git a/templates/protocols/static/route/node.def b/templates/protocols/static/route/node.def
index 682ca944..ced516ea 100644
--- a/templates/protocols/static/route/node.def
+++ b/templates/protocols/static/route/node.def
@@ -1,7 +1,7 @@
tag:
type: ipv4net
help: Static route
-syntax:expression: exec "${vyatta_sbindir}/check_prefix_boundary $VAR(@)"
+syntax:expression: exec "${vyatta_sbindir}/check_prefix_boundary -4 $VAR(@)"
commit:expression: $VAR(./next-hop/) != "" || $VAR(./blackhole/) != ""; \
"Must add either a next-hop or blackhole for route $VAR(@)"
diff --git a/templates/protocols/static/route/node.tag/next-hop/node.def b/templates/protocols/static/route/node.tag/next-hop/node.def
index f5d5d417..89d00664 100644
--- a/templates/protocols/static/route/node.tag/next-hop/node.def
+++ b/templates/protocols/static/route/node.tag/next-hop/node.def
@@ -1,6 +1,7 @@
tag:
type: ipv4
help: Next-hop router [REQUIRED]
+syntax:expression: exec "${vyatta_sbindir}/check_next_hop -4 $VAR(@)"
end:
if [[ -z "$VAR(./disable)" ]]
then
diff --git a/templates/protocols/static/route6/node.def b/templates/protocols/static/route6/node.def
index de3f1cd8..bba42943 100644
--- a/templates/protocols/static/route6/node.def
+++ b/templates/protocols/static/route6/node.def
@@ -1,7 +1,7 @@
tag:
type: ipv6net
help: Static IPv6 route
-syntax:expression: exec "${vyatta_sbindir}/check_prefix_boundary $VAR(@)"
+syntax:expression: exec "${vyatta_sbindir}/check_prefix_boundary -6 $VAR(@)"
commit:expression: $VAR(./next-hop/) != "" || $VAR(./blackhole/) != ""; \
"Must add either a next-hop or blackhole for route $VAR(@)"
diff --git a/templates/protocols/static/route6/node.tag/next-hop/node.def b/templates/protocols/static/route6/node.tag/next-hop/node.def
index e3a668b7..82bc78a8 100644
--- a/templates/protocols/static/route6/node.tag/next-hop/node.def
+++ b/templates/protocols/static/route6/node.tag/next-hop/node.def
@@ -4,6 +4,8 @@ type: ipv6
help: Next-hop IPv6 router [REQUIRED]
+syntax:expression: exec "${vyatta_sbindir}/check_next_hop -6 $VAR(@)"
+
end:
if [[ -z "$VAR(./disable)" ]]
then