From 983c23fdcb8204238220a26a279d718cd6dff821 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen.hemminger@vyatta.com>
Date: Tue, 20 Jul 2010 09:50:31 -0700
Subject: Use val_help: for interface name help

Use common method for formatting CLI style help when
entering interface name.

Move loopback name syntax check into CLI expression to
avoid overhead of perl here.
---
 templates/interfaces/loopback/node.def | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'templates/interfaces/loopback/node.def')

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
-- 
cgit v1.2.3

