diff options
Diffstat (limited to 'templates/interfaces')
-rw-r--r-- | templates/interfaces/bridge/node.tag/igmp-snooping/node.def | 1 | ||||
-rw-r--r-- | templates/interfaces/bridge/node.tag/igmp-snooping/querier/node.def | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/templates/interfaces/bridge/node.tag/igmp-snooping/node.def b/templates/interfaces/bridge/node.tag/igmp-snooping/node.def new file mode 100644 index 00000000..13471e47 --- /dev/null +++ b/templates/interfaces/bridge/node.tag/igmp-snooping/node.def @@ -0,0 +1 @@ +help: IGMP snooping settings diff --git a/templates/interfaces/bridge/node.tag/igmp-snooping/querier/node.def b/templates/interfaces/bridge/node.tag/igmp-snooping/querier/node.def new file mode 100644 index 00000000..d1fdf034 --- /dev/null +++ b/templates/interfaces/bridge/node.tag/igmp-snooping/querier/node.def @@ -0,0 +1,21 @@ +type: txt + +help: Enable of disable IGMP querier + +val_help: enable; Enable IGMP querier +val_help: disable; Disable IGMP querier + +default: "disable" + +syntax:expression: $VAR(@) in "enable", "disable"; "querier option value must be enable or disable" + +update: + if [ x$VAR(@) == xenable ]; then + sudo sh -c "echo 1 > /sys/devices/virtual/net/$VAR(../../@)/bridge/multicast_querier" + else + sudo sh -c "echo 0 > /sys/devices/virtual/net/$VAR(../../@)/bridge/multicast_querier" + fi + +delete: + sudo sh -c "echo 0 > /sys/devices/virtual/net/$VAR(../../@)/bridge/multicast_querier" + |