summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-24 14:42:27 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-24 14:42:46 +0100
commit64aea7815d4a1c40bbee1b3b5917c38fd394bbbc (patch)
treed9dfba319e1310d56f0a6e815501870fc87167b4 /templates
parentb6f36faf4ab23f1d0285c3154024ae637189c6f7 (diff)
downloadvyatta-cfg-quagga-64aea7815d4a1c40bbee1b3b5917c38fd394bbbc.tar.gz
vyatta-cfg-quagga-64aea7815d4a1c40bbee1b3b5917c38fd394bbbc.zip
ospfv3: T3244: migrate to vyos-1x
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/ospfv3/area/node.def6
-rw-r--r--templates/protocols/ospfv3/area/node.tag/export-list/node.def8
-rw-r--r--templates/protocols/ospfv3/area/node.tag/import-list/node.def8
-rw-r--r--templates/protocols/ospfv3/area/node.tag/interface/node.def11
-rw-r--r--templates/protocols/ospfv3/area/node.tag/range/node.def20
-rw-r--r--templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def7
-rw-r--r--templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def7
-rw-r--r--templates/protocols/ospfv3/distance/global/node.def13
-rw-r--r--templates/protocols/ospfv3/distance/node.def1
-rw-r--r--templates/protocols/ospfv3/distance/ospfv3/external/node.def4
-rw-r--r--templates/protocols/ospfv3/distance/ospfv3/inter-area/node.def4
-rw-r--r--templates/protocols/ospfv3/distance/ospfv3/intra-area/node.def4
-rw-r--r--templates/protocols/ospfv3/distance/ospfv3/node.def22
-rw-r--r--templates/protocols/ospfv3/node.def16
-rw-r--r--templates/protocols/ospfv3/parameters/node.def1
-rw-r--r--templates/protocols/ospfv3/parameters/router-id/node.def2
-rw-r--r--templates/protocols/ospfv3/redistribute/bgp/node.def13
-rw-r--r--templates/protocols/ospfv3/redistribute/bgp/route-map/node.def4
-rw-r--r--templates/protocols/ospfv3/redistribute/connected/node.def13
-rw-r--r--templates/protocols/ospfv3/redistribute/connected/route-map/node.def3
-rw-r--r--templates/protocols/ospfv3/redistribute/kernel/node.def13
-rw-r--r--templates/protocols/ospfv3/redistribute/kernel/route-map/node.def3
-rw-r--r--templates/protocols/ospfv3/redistribute/node.def1
-rw-r--r--templates/protocols/ospfv3/redistribute/ripng/node.def13
-rw-r--r--templates/protocols/ospfv3/redistribute/ripng/route-map/node.def3
-rw-r--r--templates/protocols/ospfv3/redistribute/static/node.def13
-rw-r--r--templates/protocols/ospfv3/redistribute/static/route-map/node.def3
-rw-r--r--templates/protocols/ospfv3/route-map/node.def8
28 files changed, 0 insertions, 224 deletions
diff --git a/templates/protocols/ospfv3/area/node.def b/templates/protocols/ospfv3/area/node.def
deleted file mode 100644
index 56e42038..00000000
--- a/templates/protocols/ospfv3/area/node.def
+++ /dev/null
@@ -1,6 +0,0 @@
-tag:
-type: txt
-help: OSPFv3 Area
-syntax:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-ospfv3-area $VAR(@)"; "Invalid OSFPv3 area \"$VAR(@)\" "
-val_help: u32; OSPFv3 area in decimal notation
-val_help: ipv4; OSPFv3 area in dotted decimal notation
diff --git a/templates/protocols/ospfv3/area/node.tag/export-list/node.def b/templates/protocols/ospfv3/area/node.tag/export-list/node.def
deleted file mode 100644
index a27ca264..00000000
--- a/templates/protocols/ospfv3/area/node.tag/export-list/node.def
+++ /dev/null
@@ -1,8 +0,0 @@
-type: txt
-help: Name of export-list
-create:expression: "vtysh -c \"configure terminal\" \
- -c \"router ospf6 \" \
- -c \"area $VAR(../@) export-list $VAR(@) \"; "
-delete:expression: "vtysh -c \"configure terminal\" \
- -c \"router ospf6 \" \
- -c \"no area $VAR(../@) export-list $VAR(@) \"; "
diff --git a/templates/protocols/ospfv3/area/node.tag/import-list/node.def b/templates/protocols/ospfv3/area/node.tag/import-list/node.def
deleted file mode 100644
index cc689ab2..00000000
--- a/templates/protocols/ospfv3/area/node.tag/import-list/node.def
+++ /dev/null
@@ -1,8 +0,0 @@
-type: txt
-help: Name of import-list
-create:expression: "vtysh -c \"configure terminal\" \
- -c \"router ospf6 \" \
- -c \"area $VAR(../@) import-list $VAR(@) \"; "
-delete:expression: "vtysh -c \"configure terminal\" \
- -c \"router ospf6 \" \
- -c \"no area $VAR(../@) import-list $VAR(@) \"; "
diff --git a/templates/protocols/ospfv3/area/node.tag/interface/node.def b/templates/protocols/ospfv3/area/node.tag/interface/node.def
deleted file mode 100644
index 046b78d6..00000000
--- a/templates/protocols/ospfv3/area/node.tag/interface/node.def
+++ /dev/null
@@ -1,11 +0,0 @@
-multi:
-type: txt
-help: OSPFv3 area interface
-
-create: vtysh -c "configure terminal" -c "router ospf6" \
- -c "interface $VAR(@) area $VAR(../@)"
-
-delete: vtysh -c "configure terminal" -c "router ospf6" \
- -c "no interface $VAR(@) area $VAR(../@)"
-
-allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
diff --git a/templates/protocols/ospfv3/area/node.tag/range/node.def b/templates/protocols/ospfv3/area/node.tag/range/node.def
deleted file mode 100644
index de886a72..00000000
--- a/templates/protocols/ospfv3/area/node.tag/range/node.def
+++ /dev/null
@@ -1,20 +0,0 @@
-tag:
-type: ipv6net
-help: Specify IPv6 prefix (border routers only)
-syntax:expression: exec "ipaddrcheck --verbose --is-ipv6-net $VAR(@)"
-
-delete: touch /tmp/ospf6-range.$PPID
-
-end: if [ -f /tmp/ospf6-range.$PPID ]; then
- vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "no area $VAR(../@) range $VAR(@)";
- rm /tmp/ospf6-range.$PPID;
- else
- vtysh --noerror -c "configure terminal" \
- -c "router ospf6" \
- -c "no area $VAR(../@) range $VAR(@)";
- vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "area $VAR(../@) range $VAR(@)";
- fi;
diff --git a/templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def b/templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def
deleted file mode 100644
index 81be1db0..00000000
--- a/templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def
+++ /dev/null
@@ -1,7 +0,0 @@
-help: Advertise this range
-create:expression: "vtysh -c \"configure terminal\" \
- -c \"router ospf6\" \
- -c \"area $VAR(../../@) range $VAR(../@) advertise\"; "
-delete:expression: "vtysh -c \"configure terminal\" \
- -c \"router ospf6\" \
- -c \"no area $VAR(../../@) range $VAR(../@) advertise\"; "
diff --git a/templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def b/templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def
deleted file mode 100644
index d0a74ecd..00000000
--- a/templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def
+++ /dev/null
@@ -1,7 +0,0 @@
-help: Do not advertise this range
-create:expression: "vtysh -c \"configure terminal\" \
- -c \"router ospf6\" \
- -c \"area $VAR(../../@) range $VAR(../@) not-advertise\"; "
-delete:expression: "vtysh -c \"configure terminal\" \
- -c \"router ospf6\" \
- -c \"no area $VAR(../../@) range $VAR(../@) not-advertise\"; "
diff --git a/templates/protocols/ospfv3/distance/global/node.def b/templates/protocols/ospfv3/distance/global/node.def
deleted file mode 100644
index cc44d9cc..00000000
--- a/templates/protocols/ospfv3/distance/global/node.def
+++ /dev/null
@@ -1,13 +0,0 @@
-type: u32
-help: OSPFv3 administrative distance
-val_help: u32:1-255; Administrative distance
-
-syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
-
-update:expression: "vtysh -c \"configure terminal\" \
- -c \"router ospf6\" \
- -c \"distance $VAR(@) \"; "
-
-delete:expression: "vtysh -c \"configure terminal\" \
- -c \"router ospf6\" \
- -c \"no distance $VAR(@) \"; "
diff --git a/templates/protocols/ospfv3/distance/node.def b/templates/protocols/ospfv3/distance/node.def
deleted file mode 100644
index 97a8c1c4..00000000
--- a/templates/protocols/ospfv3/distance/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Administrative distance
diff --git a/templates/protocols/ospfv3/distance/ospfv3/external/node.def b/templates/protocols/ospfv3/distance/ospfv3/external/node.def
deleted file mode 100644
index 32ba607e..00000000
--- a/templates/protocols/ospfv3/distance/ospfv3/external/node.def
+++ /dev/null
@@ -1,4 +0,0 @@
-type: u32
-help: Distance for external routes
-syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
-val_help: u32: 1-255; Distance for external routes
diff --git a/templates/protocols/ospfv3/distance/ospfv3/inter-area/node.def b/templates/protocols/ospfv3/distance/ospfv3/inter-area/node.def
deleted file mode 100644
index 496a4cf6..00000000
--- a/templates/protocols/ospfv3/distance/ospfv3/inter-area/node.def
+++ /dev/null
@@ -1,4 +0,0 @@
-type: u32
-help: Distance for inter-area routes
-syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
-val_help: u32:1-255; Distance for inter-area routes
diff --git a/templates/protocols/ospfv3/distance/ospfv3/intra-area/node.def b/templates/protocols/ospfv3/distance/ospfv3/intra-area/node.def
deleted file mode 100644
index 7db14c3b..00000000
--- a/templates/protocols/ospfv3/distance/ospfv3/intra-area/node.def
+++ /dev/null
@@ -1,4 +0,0 @@
-type: u32
-help: Distance for intra-area routes
-syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
-val_help: u32:1-255; Distance for intra-area routes
diff --git a/templates/protocols/ospfv3/distance/ospfv3/node.def b/templates/protocols/ospfv3/distance/ospfv3/node.def
deleted file mode 100644
index 4878c95d..00000000
--- a/templates/protocols/ospfv3/distance/ospfv3/node.def
+++ /dev/null
@@ -1,22 +0,0 @@
-help: OSPFv3 administrative distance
-delete:expression: "touch /tmp/ospfv3-distance.$PPID"
-end:expression: "\
- if [ -f \"/tmp/ospfv3-distance.$PPID\" ]; then \
- vtysh -c \"configure terminal\" \
- -c \"router ospf6\" \
- -c \"no distance ospf6\"; \
- rm /tmp/ospfv3-distance.$PPID; \
- else \
- if [ -n \"$VAR(./intra-area/@)\" ]; then \
- PARM=\"intra-area $VAR(./intra-area/@)\"; \
- fi; \
- if [ -n \"$VAR(./inter-area/@)\" ]; then \
- PARM=\"$PARM inter-area $VAR(./inter-area/@)\"; \
- fi; \
- if [ -n \"$VAR(./external/@)\" ]; then \
- PARM=\"$PARM external $VAR(./external/@)\"; \
- fi; \
- vtysh -c \"configure terminal\" \
- -c \"router ospf6\" \
- -c \"no distance ospf6\" -c \"distance ospf $PARM\"; \
- fi; "
diff --git a/templates/protocols/ospfv3/node.def b/templates/protocols/ospfv3/node.def
deleted file mode 100644
index e7d11d96..00000000
--- a/templates/protocols/ospfv3/node.def
+++ /dev/null
@@ -1,16 +0,0 @@
-priority: 640
-help: IPv6 Open Shortest Path First protocol (OSPFv3) parameters
-begin: if [ "$COMMIT_ACTION" != DELETE ]; then
- if [ -n "$VAR(parameters/router-id/@)" ]; then
- vtysh -c "configure terminal" -c "router ospf6" \
- -c "router-id $VAR(parameters/router-id/@)"
- else
- vtysh -c "configure terminal" -c "router ospf6" \
- -c "no router-id"
- fi
- vtysh -d ospf6d -c 'sh run' > /opt/vyatta/etc/quagga/ospf6d.conf
- fi
-end: if [ "$COMMIT_ACTION" == DELETE ]; then
- vtysh -c "configure terminal" -c "router ospf6" -c "no router-id"
- vtysh -c "configure terminal" -c "no router ospf6"
- fi
diff --git a/templates/protocols/ospfv3/parameters/node.def b/templates/protocols/ospfv3/parameters/node.def
deleted file mode 100644
index 11fda8f8..00000000
--- a/templates/protocols/ospfv3/parameters/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: OSPFv3 specific parameters
diff --git a/templates/protocols/ospfv3/parameters/router-id/node.def b/templates/protocols/ospfv3/parameters/router-id/node.def
deleted file mode 100644
index 659cccf1..00000000
--- a/templates/protocols/ospfv3/parameters/router-id/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-type: ipv4
-help: Router identifier
diff --git a/templates/protocols/ospfv3/redistribute/bgp/node.def b/templates/protocols/ospfv3/redistribute/bgp/node.def
deleted file mode 100644
index 3541a9a4..00000000
--- a/templates/protocols/ospfv3/redistribute/bgp/node.def
+++ /dev/null
@@ -1,13 +0,0 @@
-help: Redistribute bgp routes
-
-end: vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "no redistribute bgp";
- if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then
- if [ -n "$VAR(./route-map/@)" ]; then
- COND="route-map $VAR(./route-map/@)";
- fi;
- vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "redistribute bgp $COND";
- fi;
diff --git a/templates/protocols/ospfv3/redistribute/bgp/route-map/node.def b/templates/protocols/ospfv3/redistribute/bgp/route-map/node.def
deleted file mode 100644
index a56f5668..00000000
--- a/templates/protocols/ospfv3/redistribute/bgp/route-map/node.def
+++ /dev/null
@@ -1,4 +0,0 @@
-type: txt
-help: Route map reference
-commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist"
-
diff --git a/templates/protocols/ospfv3/redistribute/connected/node.def b/templates/protocols/ospfv3/redistribute/connected/node.def
deleted file mode 100644
index d9b43cb0..00000000
--- a/templates/protocols/ospfv3/redistribute/connected/node.def
+++ /dev/null
@@ -1,13 +0,0 @@
-help: Redistribute connected routes
-
-end: vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "no redistribute connected";
- if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then
- if [ -n "$VAR(./route-map/@)" ]; then
- COND="route-map $VAR(./route-map/@)";
- fi;
- vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "redistribute connected $COND";
- fi;
diff --git a/templates/protocols/ospfv3/redistribute/connected/route-map/node.def b/templates/protocols/ospfv3/redistribute/connected/route-map/node.def
deleted file mode 100644
index f2c6f7c2..00000000
--- a/templates/protocols/ospfv3/redistribute/connected/route-map/node.def
+++ /dev/null
@@ -1,3 +0,0 @@
-type: txt
-help: Route map reference
-commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist"
diff --git a/templates/protocols/ospfv3/redistribute/kernel/node.def b/templates/protocols/ospfv3/redistribute/kernel/node.def
deleted file mode 100644
index 78fe7d36..00000000
--- a/templates/protocols/ospfv3/redistribute/kernel/node.def
+++ /dev/null
@@ -1,13 +0,0 @@
-help: Redistribute kernel routes
-
-end: vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "no redistribute kernel";
- if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then
- if [ -n "$VAR(./route-map/@)" ]; then
- COND="route-map $VAR(./route-map/@)";
- fi;
- vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "redistribute kernel $COND";
- fi;
diff --git a/templates/protocols/ospfv3/redistribute/kernel/route-map/node.def b/templates/protocols/ospfv3/redistribute/kernel/route-map/node.def
deleted file mode 100644
index f2c6f7c2..00000000
--- a/templates/protocols/ospfv3/redistribute/kernel/route-map/node.def
+++ /dev/null
@@ -1,3 +0,0 @@
-type: txt
-help: Route map reference
-commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist"
diff --git a/templates/protocols/ospfv3/redistribute/node.def b/templates/protocols/ospfv3/redistribute/node.def
deleted file mode 100644
index 00eefa88..00000000
--- a/templates/protocols/ospfv3/redistribute/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Redistribute information from another routing protocol
diff --git a/templates/protocols/ospfv3/redistribute/ripng/node.def b/templates/protocols/ospfv3/redistribute/ripng/node.def
deleted file mode 100644
index f418999a..00000000
--- a/templates/protocols/ospfv3/redistribute/ripng/node.def
+++ /dev/null
@@ -1,13 +0,0 @@
-help: Redistribute RIPNG routes
-
-end: vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "no redistribute ripng";
- if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then
- if [ -n "$VAR(./route-map/@)" ]; then
- COND="route-map $VAR(./route-map/@)";
- fi;
- vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "redistribute ripng $COND";
- fi;
diff --git a/templates/protocols/ospfv3/redistribute/ripng/route-map/node.def b/templates/protocols/ospfv3/redistribute/ripng/route-map/node.def
deleted file mode 100644
index f2c6f7c2..00000000
--- a/templates/protocols/ospfv3/redistribute/ripng/route-map/node.def
+++ /dev/null
@@ -1,3 +0,0 @@
-type: txt
-help: Route map reference
-commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist"
diff --git a/templates/protocols/ospfv3/redistribute/static/node.def b/templates/protocols/ospfv3/redistribute/static/node.def
deleted file mode 100644
index d82d5f05..00000000
--- a/templates/protocols/ospfv3/redistribute/static/node.def
+++ /dev/null
@@ -1,13 +0,0 @@
-help: Redistribute static routes
-
-end: vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "no redistribute static";
- if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then
- if [ -n "$VAR(./route-map/@)" ]; then
- COND="route-map $VAR(./route-map/@)";
- fi;
- vtysh -c "configure terminal" \
- -c "router ospf6" \
- -c "redistribute static $COND";
- fi;
diff --git a/templates/protocols/ospfv3/redistribute/static/route-map/node.def b/templates/protocols/ospfv3/redistribute/static/route-map/node.def
deleted file mode 100644
index f2c6f7c2..00000000
--- a/templates/protocols/ospfv3/redistribute/static/route-map/node.def
+++ /dev/null
@@ -1,3 +0,0 @@
-type: txt
-help: Route map reference
-commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist"
diff --git a/templates/protocols/ospfv3/route-map/node.def b/templates/protocols/ospfv3/route-map/node.def
deleted file mode 100644
index ce84d55a..00000000
--- a/templates/protocols/ospfv3/route-map/node.def
+++ /dev/null
@@ -1,8 +0,0 @@
-type: txt
-help: Filter routes installed in local route map
-allowed: local -a params
- params=$( /opt/vyatta/sbin/vyatta-policy.pl --list-policy route-map )
- echo -n ${params[@]##*/}
-commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist"
-create:expression: "vtysh -c \"configure terminal\" -c \"ipv6 protocol ospf6 route-map $VAR(@)\" "
-delete:expression: "vtysh -c \"configure terminal\" -c \"no ipv6 protocol ospf6\" "