diff options
Diffstat (limited to 'templates/interfaces/bridge')
7 files changed, 23 insertions, 5 deletions
diff --git a/templates/interfaces/bridge/node.tag/aging/node.def b/templates/interfaces/bridge/node.tag/aging/node.def index 3431f28e..533a8ed5 100644 --- a/templates/interfaces/bridge/node.tag/aging/node.def +++ b/templates/interfaces/bridge/node.tag/aging/node.def @@ -2,4 +2,6 @@ type: u32 help: Set the number of seconds a MAC address will be kept in the forwarding database default: 300 update:expression: "sudo brctl setageing $VAR(../@) $VAR(@)" -delete:expression: "sudo brctl setageing $VAR(../@) $VAR(@)" +delete:expression: "sudo brctl setageing $VAR(../@) 300" +comp_help: possible completions: + <number> Set the number of seconds for ageing (default 300) diff --git a/templates/interfaces/bridge/node.tag/disable/node.def b/templates/interfaces/bridge/node.tag/disable/node.def index d9d4883e..3aa26012 100644 --- a/templates/interfaces/bridge/node.tag/disable/node.def +++ b/templates/interfaces/bridge/node.tag/disable/node.def @@ -6,3 +6,6 @@ update:expression: "if [ x$VAR(@) == xtrue ]; then \ else \ sudo ip link set $VAR(../@) up; \ fi; " +comp_help: possible completions: + true Disable the bridge interface + false Enable the bridge interface (default) diff --git a/templates/interfaces/bridge/node.tag/forwarding-delay/node.def b/templates/interfaces/bridge/node.tag/forwarding-delay/node.def index 3bf3cdda..528fdb02 100644 --- a/templates/interfaces/bridge/node.tag/forwarding-delay/node.def +++ b/templates/interfaces/bridge/node.tag/forwarding-delay/node.def @@ -2,4 +2,6 @@ type: u32 help: Set the forwarding delay default: 15 update:expression: "sudo brctl setfd $VAR(../@) $VAR(@)" -delete:expression: "sudo brctl setfd $VAR(../@) $VAR(@)" +delete:expression: "sudo brctl setfd $VAR(../@) 15" +comp_help: possible completions: + <number> Set the folwarding delay (default 15) diff --git a/templates/interfaces/bridge/node.tag/hello-time/node.def b/templates/interfaces/bridge/node.tag/hello-time/node.def index 8128a16d..19324a65 100644 --- a/templates/interfaces/bridge/node.tag/hello-time/node.def +++ b/templates/interfaces/bridge/node.tag/hello-time/node.def @@ -2,4 +2,7 @@ type: u32 help: Set the hello packet advertisment interval default: 2 update:expression: "sudo brctl sethello $VAR(../@) $VAR(@)" -delete:expression: "sudo brctl sethello $VAR(../@) $VAR(@)" +delete:expression: "sudo brctl sethello $VAR(../@) 2" +comp_help: possible completions: + <number> Set the hello packet advertisment interval (default 2) + diff --git a/templates/interfaces/bridge/node.tag/max-age/node.def b/templates/interfaces/bridge/node.tag/max-age/node.def index 1c245ed5..ddfdf129 100644 --- a/templates/interfaces/bridge/node.tag/max-age/node.def +++ b/templates/interfaces/bridge/node.tag/max-age/node.def @@ -2,4 +2,7 @@ type: u32 help: Set the interval at which neighbor bridges are removed default: 20 update:expression: "sudo brctl setmaxage $VAR(../@) $VAR(@)" -delete:expression: "sudo brctl setmaxage $VAR(../@) $VAR(@)" +delete:expression: "sudo brctl setmaxage $VAR(../@) 20" +comp_help: possible completions: + <number> Set the max age (default 20) + diff --git a/templates/interfaces/bridge/node.tag/priority/node.def b/templates/interfaces/bridge/node.tag/priority/node.def index f2876989..ed8f4ef7 100644 --- a/templates/interfaces/bridge/node.tag/priority/node.def +++ b/templates/interfaces/bridge/node.tag/priority/node.def @@ -2,4 +2,6 @@ type: u32 help: Set the priority for this bridge default: 0 update:expression: "sudo brctl setbridgeprio $VAR(../@) $VAR(@)" -delete:expression: "sudo brctl setbridgeprio $VAR(../@) $VAR(@)" +default:expression: "sudo brctl setbridgeprio $VAR(../@) 0" +comp_help: possible completions: + <number> Set bridge priority (default 0) diff --git a/templates/interfaces/bridge/node.tag/stp/node.def b/templates/interfaces/bridge/node.tag/stp/node.def index 88f6c32b..bcad194a 100644 --- a/templates/interfaces/bridge/node.tag/stp/node.def +++ b/templates/interfaces/bridge/node.tag/stp/node.def @@ -7,3 +7,6 @@ update:expression: "if [ x$VAR(@) == xtrue ]; then \ sudo brctl stp $VAR(../@) off; \ fi; " delete:expression: "sudo brctl stp $VAR(../@) off" +comp_help: possible completions: + true Enable Spanning Tree Protocol + false Disable Spanning Tree Protocol (default false) |