From 33bc923f3f629fb7c9dfc268e7bde667b34166ce Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Sun, 22 Mar 2020 11:35:49 +0000 Subject: tunnel: T2028: move interface tunnel to XML/Python This patch migrates the "interface tunnel" section to xml/python --- .../include/interface-mtu-64-8024.xml.i | 13 + interface-definitions/interfaces-tunnel.xml.in | 289 +++++++++++++++++++++ 2 files changed, 302 insertions(+) create mode 100644 interface-definitions/include/interface-mtu-64-8024.xml.i create mode 100644 interface-definitions/interfaces-tunnel.xml.in (limited to 'interface-definitions') diff --git a/interface-definitions/include/interface-mtu-64-8024.xml.i b/interface-definitions/include/interface-mtu-64-8024.xml.i new file mode 100644 index 000000000..e917c816f --- /dev/null +++ b/interface-definitions/include/interface-mtu-64-8024.xml.i @@ -0,0 +1,13 @@ + + + Maximum Transmission Unit (MTU) + + 64-8024 + Maximum Transmission Unit + + + + + MTU must be between 64 and 8024 + + diff --git a/interface-definitions/interfaces-tunnel.xml.in b/interface-definitions/interfaces-tunnel.xml.in new file mode 100644 index 000000000..848d6a1c7 --- /dev/null +++ b/interface-definitions/interfaces-tunnel.xml.in @@ -0,0 +1,289 @@ + + + + + + + Tunnel interface + 380 + + tun[0-9]+$ + + tunnel interface must be named tunN + + tunN + Tunnel interface name + + + + + #include + #include + #include + #include + #include + + + + Local IP address for this tunnel + + ipv4 + Local IPv4 address for this tunnel + + + ipv6 + Local IPv6 address for this tunnel [NOTICE: unavailable for mGRE tunnels] + + + + + + + + + + + + + + Remote IP address for this tunnel + + ipv4 + Remote IPv4 address for this tunnel + + + ipv6 + Remote IPv6 address for this tunnel + + + + + + + + + + + 6rd network prefix + + ipv6 + IPv6 address and prefix length + + + + + + + + + + 6rd relay prefix + + ipv4net + IPv4 prefix of interface for 6rd + + + + + + + + + + dhcp interface + + interface + DHCP interface that supplies the local IP address for this tunnel + + + + + + (en|eth|br|bond|gnv|vxlan|wg|tun)[0-9]+ + + + + + + + Ignore link state changes + + gre gre-bridge ipip sit ipip6 ip6ip6 ip6gre + + + gre-bridge + Generic Routing Encapsulation bridge interface + + + ipip + IP in IP encapsulation + + + sit + Simple Internet Transition encapsulation + + + ipip6 + IP in IP6 encapsulation + + + ip6ip6 + IP6 in IP6 encapsulation + + + ip6gre + GRE over IPv6 network + + + (gre|gre-bridge|ipip|sit|ipip6|ip6ip6|ip6gre) + + Must be one of 'gre' 'gre-bridge' 'ipip' 'sit' 'ipip6' 'ip6ip6' 'ip6gre' + + + + + + Multicast operation over tunnel + + enable disable + + + enable + Enable Multicast + + + disable + Disable Multicast (default) + + + (enable|disable) + + Must be 'disable' or 'enable' + + + + + + Tunnel parameters + + + + + + IPv4 specific tunnel parameters + + + + + Time to live field + + 0-255 + Time to live (default 255) + + + + + TTL must be between 0 and 255 + + + + + + Type of Service (TOS) + + 0-99 + Type of Service (TOS) + + + + + TOS must be between 0 and 99 + + + + + + Tunnel key + + 0-4294967295 + Tunnel key + + + + + key must be between 0-4294967295 + + + + + + + + IPv6 specific tunnel parameters + + + + + + Encaplimit field + + 0-255 + Encaplimit (default 4) + + + + + key must be between 0-255 + + + + + + Flowlabel + + 0x0-0x0FFFFF + Tunnel key, 'inherit' or hex value + + + (0x){0,1}(0?[0-9A-Fa-f]{1,5}) + + Must be 'inherit' or a number + + + + + + Hoplimit + + 0-255 + Hoplimit (default 64) + + + + + hoplimit must be between 0-255 + + + + + + Traffic class (Tclass) + + 0x0-0x0FFFFF + Traffic class, 'inherit' or hex value + + + (0x){0,1}(0?[0-9A-Fa-f]{1,2}) + + Must be 'inherit' or a number + + + + + + + + + + + -- cgit v1.2.3