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

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

diff --git a/templates/interfaces/bonding/node.def b/templates/interfaces/bonding/node.def
index d541b422..211140da 100644
--- a/templates/interfaces/bonding/node.def
+++ b/templates/interfaces/bonding/node.def
@@ -2,9 +2,10 @@ tag:
 priority: 315
 type: txt
 help: Bonding interface name
-comp_help: Enter bonding interface name (bond0 - bond99)
+val_help: <bondN>; Bonding interface name 
 syntax:expression: pattern $VAR(@) "^bond[0-9]+$" \
          ; "bonding must be (bond0-bond99)"
+
 begin: if [ ! -f /sys/class/net/bonding_masters ]; then
            sudo modprobe bonding max_bonds=0 miimon=250
        fi
-- 
cgit v1.2.3

