diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2008-01-11 16:44:32 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2008-01-11 16:44:32 -0800 |
commit | d96ba6cb41ca96daa620751e92ed98518fc2a7da (patch) | |
tree | 234ab41798d76269b0bce47ad3f48fdfb34b246a /templates | |
parent | 0313fc7f352887f6404eb55225f5f819ad56dc0d (diff) | |
download | vyatta-cfg-system-d96ba6cb41ca96daa620751e92ed98518fc2a7da.tar.gz vyatta-cfg-system-d96ba6cb41ca96daa620751e92ed98518fc2a7da.zip |
Allow ip address to be configured on bridge interface
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interfaces/bridge/node.def | 4 | ||||
-rw-r--r-- | templates/interfaces/bridge/node.tag/address/node.def | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/templates/interfaces/bridge/node.def b/templates/interfaces/bridge/node.def index d85c9afc..d44c7216 100644 --- a/templates/interfaces/bridge/node.def +++ b/templates/interfaces/bridge/node.def @@ -1,7 +1,7 @@ tag: type: txt -help: "Enter bridge interface name (br0 - br9)" +help: "Configure a bridge interface" syntax: $(@) in "br0", "br1", "br2", "br3", "br4", "br5", "br6", "br7", "br8", "br9" ; "Must be (br0 - br9)" create: "sudo brctl addbr $(@)" delete: "sudo brctl delbr $(@)" - +#comp_help: "Enter bridge interface name (br0 - br9)" diff --git a/templates/interfaces/bridge/node.tag/address/node.def b/templates/interfaces/bridge/node.tag/address/node.def new file mode 100644 index 00000000..6cef105c --- /dev/null +++ b/templates/interfaces/bridge/node.tag/address/node.def @@ -0,0 +1,6 @@ +multi: +type: txt +help: "Set IPv4 address and prefix for this interface" +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 $(../@)" |