diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-05-14 17:20:33 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-05-14 17:20:33 -0700 |
commit | 9a9cd83c97e61606f3ee1a5a3fb94a8a823ce22c (patch) | |
tree | b73463cfc01b065ed13ec5fbe0940a4467135d8e /templates-cfg/service/nat | |
parent | 2a020f1259717ff3759f03c087665796f71383a3 (diff) | |
download | vyatta-nat-9a9cd83c97e61606f3ee1a5a3fb94a8a823ce22c.tar.gz vyatta-nat-9a9cd83c97e61606f3ee1a5a3fb94a8a823ce22c.zip |
use "existing-interfaces" for enumeration
Diffstat (limited to 'templates-cfg/service/nat')
-rw-r--r-- | templates-cfg/service/nat/rule/node.tag/inbound-interface/node.def | 2 | ||||
-rw-r--r-- | templates-cfg/service/nat/rule/node.tag/outbound-interface/node.def | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates-cfg/service/nat/rule/node.tag/inbound-interface/node.def b/templates-cfg/service/nat/rule/node.tag/inbound-interface/node.def index ffd4d5a..a33360b 100644 --- a/templates-cfg/service/nat/rule/node.tag/inbound-interface/node.def +++ b/templates-cfg/service/nat/rule/node.tag/inbound-interface/node.def @@ -1,6 +1,6 @@ type: txt help: Set inbound interface of NAT traffic -allowed: ls /sys/class/net 2>/dev/null +enumeration: existing-interfaces comp_help:Enter a network interface name, for example, "eth0" commit:expression: exec " intf_array=($(awk '$1 ~ /:/ { print $1 }' /proc/net/dev)) diff --git a/templates-cfg/service/nat/rule/node.tag/outbound-interface/node.def b/templates-cfg/service/nat/rule/node.tag/outbound-interface/node.def index 1bfe558..4b13094 100644 --- a/templates-cfg/service/nat/rule/node.tag/outbound-interface/node.def +++ b/templates-cfg/service/nat/rule/node.tag/outbound-interface/node.def @@ -1,6 +1,6 @@ type: txt help: Set outbound interface for NAT traffic -allowed: ls /sys/class/net 2>/dev/null +enumeration: existing-interfaces comp_help:Enter a network interface name, for example, "eth0" commit:expression: exec " intf_array=($(awk '$1 ~ /:/ { print $1 }' /proc/net/dev)) |