summaryrefslogtreecommitdiff
path: root/templates/interfaces/loopback
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/loopback')
-rw-r--r--templates/interfaces/loopback/node.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/interfaces/loopback/node.def b/templates/interfaces/loopback/node.def
index 828f70ec..6e4e2002 100644
--- a/templates/interfaces/loopback/node.def
+++ b/templates/interfaces/loopback/node.def
@@ -2,7 +2,9 @@ tag:
priority: 300
type: txt
help: Loopback interface name
-comp_help: Enter looback interface name (lo)
+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