diff options
Diffstat (limited to 'templates/clear/vrrp/master')
5 files changed, 11 insertions, 0 deletions
diff --git a/templates/clear/vrrp/master/interface/node.def b/templates/clear/vrrp/master/interface/node.def new file mode 100644 index 0000000..0a4ecc9 --- /dev/null +++ b/templates/clear/vrrp/master/interface/node.def @@ -0,0 +1 @@ +help: Clear VRRP master for a specific interface diff --git a/templates/clear/vrrp/master/interface/node.tag/group/node.def b/templates/clear/vrrp/master/interface/node.tag/group/node.def new file mode 100644 index 0000000..215ee00 --- /dev/null +++ b/templates/clear/vrrp/master/interface/node.tag/group/node.def @@ -0,0 +1 @@ +help: clear VRRP master for specified interface and group diff --git a/templates/clear/vrrp/master/interface/node.tag/group/node.tag/node.def b/templates/clear/vrrp/master/interface/node.tag/group/node.tag/node.def new file mode 100644 index 0000000..71a1591 --- /dev/null +++ b/templates/clear/vrrp/master/interface/node.tag/group/node.tag/node.def @@ -0,0 +1,3 @@ +help: clear VRRP master for specified interface and group +allowed: echo -n '<VRRP_GROUP>' +run: sudo /opt/vyatta/bin/sudo-users/vyatta-clear-vrrp.pl --vrrp-action clear_master --intf "$5" --group "$7" diff --git a/templates/clear/vrrp/master/interface/node.tag/node.def b/templates/clear/vrrp/master/interface/node.tag/node.def new file mode 100644 index 0000000..a9caa52 --- /dev/null +++ b/templates/clear/vrrp/master/interface/node.tag/node.def @@ -0,0 +1,5 @@ +help: Show VRRP information for specified interface +allowed: local -a array ; + array=( /sys/class/net/eth* ) ; + echo -n ${array[@]##*/} + diff --git a/templates/clear/vrrp/master/node.def b/templates/clear/vrrp/master/node.def new file mode 100644 index 0000000..a5950d6 --- /dev/null +++ b/templates/clear/vrrp/master/node.def @@ -0,0 +1 @@ +help: Clear VRRP master |