diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2009-09-09 17:38:00 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2009-09-09 17:38:00 -0700 |
commit | d32ceb43ab64530c6eca81ec83fe4b374dd510d0 (patch) | |
tree | 842bbac0327b381495fc3e5290ff8f600e440ef9 /templates/interfaces/loopback | |
parent | 8d560c20d6b9799b48b8c442581a25114bb16d78 (diff) | |
download | vyatta-cfg-d32ceb43ab64530c6eca81ec83fe4b374dd510d0.tar.gz vyatta-cfg-d32ceb43ab64530c6eca81ec83fe4b374dd510d0.zip |
Bugfix 4700, 4269: Fix set and commit-time checks for ethernet vif addresses too
Also restore "--valid-addr" flag to vyatta-interfaces.pl since it is used outside
this package.
Diffstat (limited to 'templates/interfaces/loopback')
-rw-r--r-- | templates/interfaces/loopback/node.tag/address/node.def | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/interfaces/loopback/node.tag/address/node.def b/templates/interfaces/loopback/node.tag/address/node.def index 29e8973..76c2e76 100644 --- a/templates/interfaces/loopback/node.tag/address/node.def +++ b/templates/interfaces/loopback/node.tag/address/node.def @@ -1,7 +1,10 @@ multi: + type: txt + help: Set an IP address for this interface -syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $VAR(@) --dev $VAR(../@)"; \ + +syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr-set $VAR(@) --dev $VAR(../@)"; \ "Invalid IP address/prefix [$VAR(@)] for interface $VAR(../@)" create:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $VAR(@) --dev $VAR(../@)"; \ |