summaryrefslogtreecommitdiff
path: root/interface-definitions/include
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-10-17 09:58:53 +0000
committersever-sever <v.gletenko@vyos.io>2020-10-17 12:52:09 +0000
commit2e436854d91e3adb7ac1bb24c64ec7189eb21bee (patch)
tree63b6552bbb66d61f117eaf47530e9b040ad4cfd2 /interface-definitions/include
parentaa844567456504c5026a9c49d5c4cf590c7cf08b (diff)
downloadvyos-1x-2e436854d91e3adb7ac1bb24c64ec7189eb21bee.tar.gz
vyos-1x-2e436854d91e3adb7ac1bb24c64ec7189eb21bee.zip
sysctl-forwarding: T752: Add disable forwarding for ipv4
Diffstat (limited to 'interface-definitions/include')
-rw-r--r--interface-definitions/include/interface-disable-forwarding.xml.i8
-rw-r--r--interface-definitions/include/interface-ipv4.xml.i1
-rw-r--r--interface-definitions/include/vif.xml.i1
3 files changed, 10 insertions, 0 deletions
diff --git a/interface-definitions/include/interface-disable-forwarding.xml.i b/interface-definitions/include/interface-disable-forwarding.xml.i
new file mode 100644
index 000000000..7cbb726ec
--- /dev/null
+++ b/interface-definitions/include/interface-disable-forwarding.xml.i
@@ -0,0 +1,8 @@
+<!-- included start from interface-disable-forwarding.xml.i -->
+<leafNode name="disable-forwarding">
+ <properties>
+ <help>Disable IPv4 forwarding on this interface</help>
+ <valueless/>
+ </properties>
+</leafNode>
+<!-- included end -->
diff --git a/interface-definitions/include/interface-ipv4.xml.i b/interface-definitions/include/interface-ipv4.xml.i
index 551059247..66842ab9b 100644
--- a/interface-definitions/include/interface-ipv4.xml.i
+++ b/interface-definitions/include/interface-ipv4.xml.i
@@ -5,6 +5,7 @@
</properties>
<children>
#include <include/interface-disable-arp-filter.xml.i>
+ #include <include/interface-disable-forwarding.xml.i>
#include <include/interface-enable-arp-accept.xml.i>
#include <include/interface-enable-arp-announce.xml.i>
#include <include/interface-enable-arp-ignore.xml.i>
diff --git a/interface-definitions/include/vif.xml.i b/interface-definitions/include/vif.xml.i
index 15c453fcc..a0f7c0bc8 100644
--- a/interface-definitions/include/vif.xml.i
+++ b/interface-definitions/include/vif.xml.i
@@ -47,6 +47,7 @@
<children>
#include <include/interface-arp-cache-timeout.xml.i>
#include <include/interface-disable-arp-filter.xml.i>
+ #include <include/interface-disable-forwarding.xml.i>
#include <include/interface-enable-arp-accept.xml.i>
#include <include/interface-enable-arp-announce.xml.i>
#include <include/interface-enable-arp-ignore.xml.i>