diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2007-12-18 11:11:29 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2007-12-18 11:11:29 -0800 |
commit | 7966b8cf00e08548447e551a3fcfde40aa06cc59 (patch) | |
tree | de2e3bb70a5720a18fad3eb19e9d1d9e672c634e /templates | |
parent | f536748a2ffdf1c9c9803f816eb15d3a9c8afa1e (diff) | |
download | vyatta-cfg-7966b8cf00e08548447e551a3fcfde40aa06cc59.tar.gz vyatta-cfg-7966b8cf00e08548447e551a3fcfde40aa06cc59.zip |
Add ability to set ipv6 address on loopback but not dhcp.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interfaces/loopback/node.tag/address/node.def | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/interfaces/loopback/node.tag/address/node.def b/templates/interfaces/loopback/node.tag/address/node.def index e597676..6cef105 100644 --- a/templates/interfaces/loopback/node.tag/address/node.def +++ b/templates/interfaces/loopback/node.tag/address/node.def @@ -1,6 +1,6 @@ multi: -type: ipv4net +type: txt help: "Set IPv4 address and prefix for this interface" -# TODO make sure 127.0.0.0/8 not in here. -update: "sudo ip addr add $(@) dev $(../@)"; "Error setting address $(@) on dev $(../@)" -delete: "sudo ip addr del $(@) dev $(../@)"; "Error deleting address $(@) on dev $(../@)" +syntax: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $(@) --dev $(../@)" +update: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $(@) --dev $(../@)"; "Error setting address $(@) on dev $(../@)" +delete: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $(@) --dev $(../@)"; "Error deleting address $(@) on dev $(../@)" |