From 410ac0dac8400aae1523a51184726ff7606dc5fd Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 3 Jan 2020 16:26:42 +0100 Subject: ifconfig: T1939: provide abstraction for interface "ip" option Provide an XML/Python abstraction to * ip disable-arp-filter * ip enable-arp-accept * ip enable-arp-announce * ip enable-arp-ignore The old implementation can co-exist until the last interfaces have been migrated. --- interface-definitions/include/interface-disable-arp-filter.xml.i | 6 ++++++ interface-definitions/include/interface-enable-arp-accept.xml.i | 6 ++++++ interface-definitions/include/interface-enable-arp-announce.xml.i | 6 ++++++ interface-definitions/include/interface-enable-arp-ignore.xml.i | 6 ++++++ interface-definitions/include/vif-s.xml.i | 8 ++++++++ interface-definitions/include/vif.xml.i | 4 ++++ 6 files changed, 36 insertions(+) create mode 100644 interface-definitions/include/interface-disable-arp-filter.xml.i create mode 100644 interface-definitions/include/interface-enable-arp-accept.xml.i create mode 100644 interface-definitions/include/interface-enable-arp-announce.xml.i create mode 100644 interface-definitions/include/interface-enable-arp-ignore.xml.i (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/interface-disable-arp-filter.xml.i b/interface-definitions/include/interface-disable-arp-filter.xml.i new file mode 100644 index 000000000..ec3f51b2d --- /dev/null +++ b/interface-definitions/include/interface-disable-arp-filter.xml.i @@ -0,0 +1,6 @@ + + + Disable ARP filter on this interface + + + diff --git a/interface-definitions/include/interface-enable-arp-accept.xml.i b/interface-definitions/include/interface-enable-arp-accept.xml.i new file mode 100644 index 000000000..69f26b322 --- /dev/null +++ b/interface-definitions/include/interface-enable-arp-accept.xml.i @@ -0,0 +1,6 @@ + + + Enable ARP accept on this interface + + + diff --git a/interface-definitions/include/interface-enable-arp-announce.xml.i b/interface-definitions/include/interface-enable-arp-announce.xml.i new file mode 100644 index 000000000..8d51874c1 --- /dev/null +++ b/interface-definitions/include/interface-enable-arp-announce.xml.i @@ -0,0 +1,6 @@ + + + Enable ARP announce on this interface + + + diff --git a/interface-definitions/include/interface-enable-arp-ignore.xml.i b/interface-definitions/include/interface-enable-arp-ignore.xml.i new file mode 100644 index 000000000..9adc0f17e --- /dev/null +++ b/interface-definitions/include/interface-enable-arp-ignore.xml.i @@ -0,0 +1,6 @@ + + + Enable ARP ignore on this interface + + + diff --git a/interface-definitions/include/vif-s.xml.i b/interface-definitions/include/vif-s.xml.i index cb0943162..2120aa32d 100644 --- a/interface-definitions/include/vif-s.xml.i +++ b/interface-definitions/include/vif-s.xml.i @@ -32,6 +32,14 @@ Ethertype must be 0x88A8 or 0x8100 + + + #include + #include + #include + #include + + #include #include diff --git a/interface-definitions/include/vif.xml.i b/interface-definitions/include/vif.xml.i index 7c8a29a93..85e901852 100644 --- a/interface-definitions/include/vif.xml.i +++ b/interface-definitions/include/vif.xml.i @@ -43,6 +43,10 @@ #include + #include + #include + #include + #include #include -- cgit v1.2.3