summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-21 18:31:57 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-21 18:31:57 +0200
commit31a1002387d14b79149df9061fc87213bb698e61 (patch)
tree1e5385a24fad78e08d3c1d51be060b35cfd7085f /templates
parent9c6d11b6f61910f36f8f36009ae1ef371ac99d10 (diff)
downloadvyatta-cfg-system-31a1002387d14b79149df9061fc87213bb698e61.tar.gz
vyatta-cfg-system-31a1002387d14b79149df9061fc87213bb698e61.zip
loopback: T1601: rewrite using XML/Python definitions
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/loopback/node.def11
-rw-r--r--templates/interfaces/loopback/node.tag/address/node.def11
-rw-r--r--templates/interfaces/loopback/node.tag/description/node.def8
3 files changed, 0 insertions, 30 deletions
diff --git a/templates/interfaces/loopback/node.def b/templates/interfaces/loopback/node.def
deleted file mode 100644
index 69778aad..00000000
--- a/templates/interfaces/loopback/node.def
+++ /dev/null
@@ -1,11 +0,0 @@
-tag:
-priority: 300
-type: txt
-help: Loopback interface name
-syntax:expression: pattern $VAR(@) "^lo$" ; "name must be lo"
-val_help: lo: Loopback interface name
-
-syntax:expression: exec \
- "/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --check=loopback"
-allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=loopback
-create: sudo ip link set $VAR(@) up
diff --git a/templates/interfaces/loopback/node.tag/address/node.def b/templates/interfaces/loopback/node.tag/address/node.def
deleted file mode 100644
index 98788814..00000000
--- a/templates/interfaces/loopback/node.tag/address/node.def
+++ /dev/null
@@ -1,11 +0,0 @@
-multi:
-type: ipv4net,ipv6net
-val_help: ipv4net; IPv4 address and prefix length
-val_help: ipv6net; IPv6 address and prefix length
-help: IP address
-
-syntax:expression: exec "/opt/vyatta/sbin/valid_address $VAR(@)"
-
-create: sudo /opt/vyatta/sbin/vyatta-address add $VAR(../@) $VAR(@)
-
-delete: sudo /opt/vyatta/sbin/vyatta-address delete $VAR(../@) $VAR(@)
diff --git a/templates/interfaces/loopback/node.tag/description/node.def b/templates/interfaces/loopback/node.tag/description/node.def
deleted file mode 100644
index c6d2789d..00000000
--- a/templates/interfaces/loopback/node.tag/description/node.def
+++ /dev/null
@@ -1,8 +0,0 @@
-type: txt
-help: Description
-
-syntax:expression: pattern $VAR(@) "^.{1,256}$" \
- ; "interface description is too long (limit 256 characters)"
-
-update: sudo sh -c "echo \"$VAR(@)\" >/sys/class/net/$VAR(../@)/ifalias"
-delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../@)/ifalias"