diff options
-rw-r--r-- | templates/clear/arp/address/node.def | 1 | ||||
-rw-r--r-- | templates/clear/arp/address/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/clear/arp/interface/node.def | 1 | ||||
-rw-r--r-- | templates/clear/arp/interface/node.tag/node.def | 5 | ||||
-rw-r--r-- | templates/clear/arp/node.def | 1 |
5 files changed, 11 insertions, 0 deletions
diff --git a/templates/clear/arp/address/node.def b/templates/clear/arp/address/node.def new file mode 100644 index 0000000..149cf76 --- /dev/null +++ b/templates/clear/arp/address/node.def @@ -0,0 +1 @@ +help: Clear ARP cache for address diff --git a/templates/clear/arp/address/node.tag/node.def b/templates/clear/arp/address/node.tag/node.def new file mode 100644 index 0000000..a25ad1f --- /dev/null +++ b/templates/clear/arp/address/node.tag/node.def @@ -0,0 +1,3 @@ +help: Clear ARP cache for address +allowed: echo -n '<ip_address>' +run: sudo ip neigh flush to $4 diff --git a/templates/clear/arp/interface/node.def b/templates/clear/arp/interface/node.def new file mode 100644 index 0000000..9dbcaff --- /dev/null +++ b/templates/clear/arp/interface/node.def @@ -0,0 +1 @@ +help: Clear ARP cache for interface diff --git a/templates/clear/arp/interface/node.tag/node.def b/templates/clear/arp/interface/node.tag/node.def new file mode 100644 index 0000000..d948ba2 --- /dev/null +++ b/templates/clear/arp/interface/node.tag/node.def @@ -0,0 +1,5 @@ +help: Clear ARP cache for interface +allowed: local -a array ; + array=( /sys/class/net/{eth,vmnet}* ) ; + echo -n ${array[@]##*/} +run: sudo ip neigh flush dev $4 diff --git a/templates/clear/arp/node.def b/templates/clear/arp/node.def new file mode 100644 index 0000000..08b3f7a --- /dev/null +++ b/templates/clear/arp/node.def @@ -0,0 +1 @@ +help: Clear Address Resolution Protocol cache |