From 983c23fdcb8204238220a26a279d718cd6dff821 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger 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/input/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/interfaces/input') diff --git a/templates/interfaces/input/node.def b/templates/interfaces/input/node.def index 8aadec8a..06b00c97 100644 --- a/templates/interfaces/input/node.def +++ b/templates/interfaces/input/node.def @@ -2,7 +2,7 @@ tag: priority: 310 # before real devices that redirect type: txt help: Input functional block (IFB) interface name -comp_help: Enter input functional block interface name (ifb0 - ifb999) +val_help: ; Input functional block interface name syntax:expression: pattern $VAR(@) "^ifb[0-9]+$" ; "name must be (ifb0-ifb999)" -- cgit v1.2.3