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/pseudo-ethernet/node.def | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'templates/interfaces/pseudo-ethernet')

diff --git a/templates/interfaces/pseudo-ethernet/node.def b/templates/interfaces/pseudo-ethernet/node.def
index b0c00a27..2d2da19f 100644
--- a/templates/interfaces/pseudo-ethernet/node.def
+++ b/templates/interfaces/pseudo-ethernet/node.def
@@ -2,7 +2,8 @@ tag:
 priority: 390
 type: txt
 help: Pseudo Ethernet device name
-comp_help: Enter Pseudo Ethernet interface name (peth0 - peth999)
+val_help: <pethN>; Pseudo Ethernet interface name
+
 syntax:expression: pattern $VAR(@) "^peth[0-9]+$" \
          ; "name must be (peth0-peth999)"
 commit:expression: $VAR(link) != "" 
-- 
cgit v1.2.3