summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-09-09 17:30:34 +0200
committerDaniil Baturin <daniil@baturin.org>2014-09-09 17:30:34 +0200
commit6dc672059a7ff70b1464f5bb28953be410cdc68d (patch)
treed7a51413a0f9aa25f5af44feb26955c31e614b47
parentd186a399184811b75786b820103aec43722c8a74 (diff)
downloadvyatta-cfg-system-6dc672059a7ff70b1464f5bb28953be410cdc68d.tar.gz
vyatta-cfg-system-6dc672059a7ff70b1464f5bb28953be410cdc68d.zip
Bug #306: add option to enable private VLAN proxy ARP on an interface.
(aka /proc/sys/net/ipv4/conf/$intf/proxy_arp_pvlan). Patch contributed by Shane Short.
-rw-r--r--templates/interfaces/bonding/node.tag/ip/proxy-arp-pvlan/node.def3
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/proxy-arp-pvlan/node.def3
-rw-r--r--templates/interfaces/pseudo-ethernet/node.tag/ip/proxy-arp-pvlan/node.def3
3 files changed, 9 insertions, 0 deletions
diff --git a/templates/interfaces/bonding/node.tag/ip/proxy-arp-pvlan/node.def b/templates/interfaces/bonding/node.tag/ip/proxy-arp-pvlan/node.def
new file mode 100644
index 00000000..a6cf9494
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/ip/proxy-arp-pvlan/node.def
@@ -0,0 +1,3 @@
+help: Enable private VLAN proxy ARP on this interface
+create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../@)/proxy_arp_pvlan\" "
+delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../@)/proxy_arp_pvlan\" "
diff --git a/templates/interfaces/ethernet/node.tag/ip/proxy-arp-pvlan/node.def b/templates/interfaces/ethernet/node.tag/ip/proxy-arp-pvlan/node.def
new file mode 100644
index 00000000..a6cf9494
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/proxy-arp-pvlan/node.def
@@ -0,0 +1,3 @@
+help: Enable private VLAN proxy ARP on this interface
+create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../@)/proxy_arp_pvlan\" "
+delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../@)/proxy_arp_pvlan\" "
diff --git a/templates/interfaces/pseudo-ethernet/node.tag/ip/proxy-arp-pvlan/node.def b/templates/interfaces/pseudo-ethernet/node.tag/ip/proxy-arp-pvlan/node.def
new file mode 100644
index 00000000..a6cf9494
--- /dev/null
+++ b/templates/interfaces/pseudo-ethernet/node.tag/ip/proxy-arp-pvlan/node.def
@@ -0,0 +1,3 @@
+help: Enable private VLAN proxy ARP on this interface
+create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../@)/proxy_arp_pvlan\" "
+delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../@)/proxy_arp_pvlan\" "