From d96ba6cb41ca96daa620751e92ed98518fc2a7da Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Fri, 11 Jan 2008 16:44:32 -0800 Subject: Allow ip address to be configured on bridge interface --- templates/interfaces/bridge/node.def | 4 ++-- templates/interfaces/bridge/node.tag/address/node.def | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 templates/interfaces/bridge/node.tag/address/node.def 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 $(../@)" -- cgit v1.2.3