From 1b2b777227ed2645c68b5ab05931beafff9ccf5d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 21 Jul 2010 13:55:27 -0700 Subject: Add completion for text fields with limited values For all nodes that do 'syntax:expression: $VAR(@) in' add allowed tag to show possible values --- templates/interfaces/tunnel/node.tag/encapsulation/node.def | 1 + templates/interfaces/tunnel/node.tag/multicast/node.def | 1 + 2 files changed, 2 insertions(+) (limited to 'templates/interfaces/tunnel') diff --git a/templates/interfaces/tunnel/node.tag/encapsulation/node.def b/templates/interfaces/tunnel/node.tag/encapsulation/node.def index edbc3ae1..651e79b8 100644 --- a/templates/interfaces/tunnel/node.tag/encapsulation/node.def +++ b/templates/interfaces/tunnel/node.tag/encapsulation/node.def @@ -2,6 +2,7 @@ type: txt help: Encapsulation of this tunnel interface [REQUIRED] syntax:expression: $VAR(@) in "ipip", "gre", "sit", "gre-bridge"; "Must be (ipip, gre, gre-bridge, sit)" +allowed: echo gre gre-bridge ipip sit create:expression: "true" update:expression: "false" ; \ diff --git a/templates/interfaces/tunnel/node.tag/multicast/node.def b/templates/interfaces/tunnel/node.tag/multicast/node.def index 911a4e88..9f675b0e 100644 --- a/templates/interfaces/tunnel/node.tag/multicast/node.def +++ b/templates/interfaces/tunnel/node.tag/multicast/node.def @@ -3,6 +3,7 @@ help: Multicast operation over tunnel default: "disable" val_help: enable; Enable Multicast val_help: disable; Disable Multicast (default) +allowed: echo enable disable syntax:expression: $VAR(@) in "enable", "disable"; \ "Must be 'disable' or 'enable'" -- cgit v1.2.3