summaryrefslogtreecommitdiff
path: root/templates/interfaces/loopback/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/loopback/node.def')
-rw-r--r--templates/interfaces/loopback/node.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/interfaces/loopback/node.def b/templates/interfaces/loopback/node.def
new file mode 100644
index 0000000..50df935
--- /dev/null
+++ b/templates/interfaces/loopback/node.def
@@ -0,0 +1,8 @@
+tag:
+type: txt
+help: "loopback interface name"
+syntax: exec " \
+ if [ -z \"`ip addr | grep $(@) `\" ]; then \
+ echo loopback interface $(@) doesn\\'t exist on this system ; \
+ exit 1 ; \
+ fi ; "