From 4ef110fd2c501b718344c72d495ad7e16d2bd465 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 30 Dec 2023 23:25:20 +0100 Subject: T5474: establish common file name pattern for XML conf mode commands We will use _ as CLI level divider. The XML definition filename and also the Python helper should match the CLI node. Example: set interfaces ethernet -> interfaces_ethernet.xml.in set interfaces bond -> interfaces_bond.xml.in set service dhcp-server -> service_dhcp-server-xml.in --- interface-definitions/interfaces_tunnel.xml.in | 281 +++++++++++++++++++++++++ 1 file changed, 281 insertions(+) create mode 100644 interface-definitions/interfaces_tunnel.xml.in (limited to 'interface-definitions/interfaces_tunnel.xml.in') diff --git a/interface-definitions/interfaces_tunnel.xml.in b/interface-definitions/interfaces_tunnel.xml.in new file mode 100644 index 000000000..99d9b34c6 --- /dev/null +++ b/interface-definitions/interfaces_tunnel.xml.in @@ -0,0 +1,281 @@ + + + + + + + Tunnel interface + 380 + + tun[0-9]+ + + tunnel interface must be named tunN + + tunN + Tunnel interface name + + + + #include + #include + #include + #include + #include + + 1476 + + #include + #include + #include + #include + #include + + + 6rd network prefix + + ipv6 + IPv6 address and prefix length + + + + + + + + + 6rd relay prefix + + ipv4net + IPv4 prefix of interface for 6rd + + + + + + + + + Encapsulation of this tunnel interface + + erspan gre gretap ip6erspan ip6gre ip6gretap ip6ip6 ipip ipip6 sit + + + erspan + Encapsulated Remote Switched Port Analyzer + + + gre + Generic Routing Encapsulation (network layer) + + + gretap + Generic Routing Encapsulation (datalink layer) + + + ip6erspan + Encapsulated Remote Switched Port Analyzer over IPv6 + + + ip6gre + GRE over IPv6 (network layer) + + + ip6gretap + GRE over IPv6 (datalink layer) + + + ip6ip6 + IPv6 in IPv6 encapsulation + + + ipip + IPv4 in IPv4 encapsulation + + + ipip6 + IPv4 in IP6 encapsulation + + + sit + Simple Internet Transition (IPv6 in IPv4) + + + (erspan|gre|gretap|ip6erspan|ip6gre|ip6gretap|ip6ip6|ipip|ipip6|sit) + + Invalid encapsulation, must be one of: erspan, gre, gretap, ip6erspan, ip6gre, ip6gretap, ipip, sit, ipip6 or ip6ip6 + + + #include + + + Enable multicast operation over tunnel + + + + + + Tunnel parameters + + + + + ERSPAN tunnel parameters + + + + + Mirrored traffic direction + + ingress egress + + + ingress + Mirror ingress traffic + + + egress + Mirror egress traffic + + + (ingress|egress) + + + + + + Unique identifier of an ERSPAN engine within a system + + u32:0-1048575 + Unique identifier of an ERSPAN engine + + + + + + + + + ERSPAN version 1 index field + + u32:0-63 + Platform-depedent field for specifying port number and direction + + + + + + + + + Protocol version + + 1 2 + + + 1 + ERSPAN Type II + + + 2 + ERSPAN Type III + + + + + + 1 + + + + + + IPv4-specific tunnel parameters + + + + + Disable path MTU discovery + + + + + + Ignore the DF (don't fragment) bit + + + + #include + #include + #include + + 64 + + + + + + IPv6-specific tunnel parameters + + + + + Set fixed encapsulation limit + + none + + + u32:0-255 + Encapsulation limit + + + none + Disable encapsulation limit + + + (none) + + + Tunnel encaplimit must be 0-255 or none + + 4 + + #include + + + Hoplimit + + u32:0-255 + Hop limit + + + + + hop limit must be between 0-255 + + 64 + + + + 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 + + inherit + + + + + + #include + #include + + + + + -- cgit v1.2.3