From 6dc672059a7ff70b1464f5bb28953be410cdc68d Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 9 Sep 2014 17:30:34 +0200 Subject: 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. --- templates/interfaces/bonding/node.tag/ip/proxy-arp-pvlan/node.def | 3 +++ templates/interfaces/ethernet/node.tag/ip/proxy-arp-pvlan/node.def | 3 +++ .../interfaces/pseudo-ethernet/node.tag/ip/proxy-arp-pvlan/node.def | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 templates/interfaces/bonding/node.tag/ip/proxy-arp-pvlan/node.def create mode 100644 templates/interfaces/ethernet/node.tag/ip/proxy-arp-pvlan/node.def create mode 100644 templates/interfaces/pseudo-ethernet/node.tag/ip/proxy-arp-pvlan/node.def (limited to 'templates') 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\" " -- cgit v1.2.3