summaryrefslogtreecommitdiff
path: root/templates/protocols/static/route6
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-05 22:56:01 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-05 22:56:01 +0100
commit7640413d9dcb66d8a78148edca150fadaef1f60d (patch)
tree420ce7e6bdec0cbc9786371be881980eccd94f00 /templates/protocols/static/route6
parent3265bf37a79b5231ce738948decb44e63b0647d7 (diff)
downloadvyatta-cfg-quagga-7640413d9dcb66d8a78148edca150fadaef1f60d.tar.gz
vyatta-cfg-quagga-7640413d9dcb66d8a78148edca150fadaef1f60d.zip
T2450: migrate vrf and static routes to vyos-1x
Diffstat (limited to 'templates/protocols/static/route6')
-rw-r--r--templates/protocols/static/route6/node.def7
-rw-r--r--templates/protocols/static/route6/node.tag/blackhole/distance/node.def4
-rw-r--r--templates/protocols/static/route6/node.tag/blackhole/node.def15
-rw-r--r--templates/protocols/static/route6/node.tag/next-hop/node.def49
-rw-r--r--templates/protocols/static/route6/node.tag/next-hop/node.tag/disable/node.def1
-rw-r--r--templates/protocols/static/route6/node.tag/next-hop/node.tag/distance/node.def4
-rw-r--r--templates/protocols/static/route6/node.tag/next-hop/node.tag/interface/node.def6
-rw-r--r--templates/protocols/static/route6/node.tag/next-hop/node.tag/next-hop-vrf/node.def6
8 files changed, 0 insertions, 92 deletions
diff --git a/templates/protocols/static/route6/node.def b/templates/protocols/static/route6/node.def
deleted file mode 100644
index 597578a4..00000000
--- a/templates/protocols/static/route6/node.def
+++ /dev/null
@@ -1,7 +0,0 @@
-tag:
-type: ipv6net
-help: Static IPv6 route
-syntax:expression: exec "ipaddrcheck --verbose --is-ipv6-net $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/blackhole/distance/node.def b/templates/protocols/static/route6/node.tag/blackhole/distance/node.def
deleted file mode 100644
index 61abcc65..00000000
--- a/templates/protocols/static/route6/node.tag/blackhole/distance/node.def
+++ /dev/null
@@ -1,4 +0,0 @@
-type: u32
-help: Distance value for this route
-syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between (1-255)"
-val_help: u32:1-255; Distance for this route
diff --git a/templates/protocols/static/route6/node.tag/blackhole/node.def b/templates/protocols/static/route6/node.tag/blackhole/node.def
deleted file mode 100644
index 87a259d1..00000000
--- a/templates/protocols/static/route6/node.tag/blackhole/node.def
+++ /dev/null
@@ -1,15 +0,0 @@
-help: Silently discard pkts when matched
-end: if [ ${COMMIT_ACTION} = 'DELETE' ]; then
- if ! ${vyatta_sbindir}/vyatta-next-hop-check $VAR(../@) ipv6 address; then
- exit 1;
- fi
-
- vtysh -c "configure terminal" \
- -c "no ipv6 route $VAR(../@) Null0";
- else
- if [ -n "$VAR(./distance/@)" ]; then
- DIST="$VAR(./distance/@)";
- fi;
- vtysh -c "configure terminal" \
- -c "ipv6 route $VAR(../@) Null0 $DIST";
- fi;
diff --git a/templates/protocols/static/route6/node.tag/next-hop/node.def b/templates/protocols/static/route6/node.tag/next-hop/node.def
deleted file mode 100644
index 35a98a9f..00000000
--- a/templates/protocols/static/route6/node.tag/next-hop/node.def
+++ /dev/null
@@ -1,49 +0,0 @@
-tag:
-type: ipv6
-help: Next-hop IPv6 router [REQUIRED]
-end:
- if [[ -z "$VAR(./disable)" ]]
- then
- if [[ ${COMMIT_ACTION} = 'DELETE' ]]
- then
- if ! ${vyatta_sbindir}/vyatta-next-hop-check $VAR(../@) ipv6 address; then
- exit 1;
- fi
- if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \
- "$VAR(../@)" "$VAR(@)"
- then
- quagga_conf=`vtysh -c "show running-config" | \
- grep "^ipv6 route $VAR(../@) $VAR(@)"`
- ifname=`echo $quagga_conf | awk '{print $5}'`
-
- vtysh -c "configure terminal" \
- -c "no ipv6 route $VAR(../@) $VAR(@) $ifname"
- fi
- else
- if [[ -n "$VAR(./distance/@)" ]]; then
- DIST="$VAR(./distance/@)"
- fi
-
- if [[ -n "$VAR(./interface/@)" ]]; then
- INTERFACE="$VAR(./interface/@)"
- fi
-
- if [[ -n "$VAR(./next-hop-vrf/@)" ]]; then
- if [ -z "$VAR(./interface/@)" ]; then
- echo "VRF route-leaking requires a next-hop interface to be set in the destination VRF"
- exit 1
- fi
- NEXTHOP_VRF="nexthop-vrf $VAR(./next-hop-vrf/@)"
- fi
-
- vtysh -c "configure terminal" \
- -c "ipv6 route $VAR(../@) $VAR(@) $INTERFACE $NEXTHOP_VRF $DIST";
- fi
- else
- if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \
- "$VAR(../@)" "$VAR(@)"
- then
- vtysh -c "configure terminal" \
- -c "no ipv6 route $VAR(../@) $VAR(@)"
- fi
- fi
diff --git a/templates/protocols/static/route6/node.tag/next-hop/node.tag/disable/node.def b/templates/protocols/static/route6/node.tag/next-hop/node.tag/disable/node.def
deleted file mode 100644
index a71e3c24..00000000
--- a/templates/protocols/static/route6/node.tag/next-hop/node.tag/disable/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Disable IPv6 next-hop static route
diff --git a/templates/protocols/static/route6/node.tag/next-hop/node.tag/distance/node.def b/templates/protocols/static/route6/node.tag/next-hop/node.tag/distance/node.def
deleted file mode 100644
index 61abcc65..00000000
--- a/templates/protocols/static/route6/node.tag/next-hop/node.tag/distance/node.def
+++ /dev/null
@@ -1,4 +0,0 @@
-type: u32
-help: Distance value for this route
-syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between (1-255)"
-val_help: u32:1-255; Distance for this route
diff --git a/templates/protocols/static/route6/node.tag/next-hop/node.tag/interface/node.def b/templates/protocols/static/route6/node.tag/next-hop/node.tag/interface/node.def
deleted file mode 100644
index c8479a63..00000000
--- a/templates/protocols/static/route6/node.tag/next-hop/node.tag/interface/node.def
+++ /dev/null
@@ -1,6 +0,0 @@
-type: txt
-help: IPv6 gateway interface name
-# show all current interface
-# but syntax accepts any interface since it may exist later (ppp etc)
-allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
-
diff --git a/templates/protocols/static/route6/node.tag/next-hop/node.tag/next-hop-vrf/node.def b/templates/protocols/static/route6/node.tag/next-hop/node.tag/next-hop-vrf/node.def
deleted file mode 100644
index 45d1a5c1..00000000
--- a/templates/protocols/static/route6/node.tag/next-hop/node.tag/next-hop-vrf/node.def
+++ /dev/null
@@ -1,6 +0,0 @@
-type: txt
-help: VRF to leak route
-allowed: local -a params
- eval "params=($(cli-shell-api listNodes vrf name))"
- echo -n "${params[@]}"
-val_help: <vrf> ; Name of VRF to leak to