From c7d0865455c9bbf078765b7a53811286cf3dfb8b Mon Sep 17 00:00:00 2001 From: jack9603301 Date: Sun, 13 Dec 2020 20:30:23 +0800 Subject: tunnel: T3030: Modify the command line to streamline configuration (support package type automatic detection) --- .../include/tunnel-local-remote-ip.xml.i | 37 ++++++++ .../include/tunnel-parameters-ip.xml.i | 49 ++++++++++ interface-definitions/interfaces-erspan.xml.in | 96 +------------------ interface-definitions/interfaces-tunnel.xml.in | 103 +-------------------- 4 files changed, 93 insertions(+), 192 deletions(-) create mode 100644 interface-definitions/include/tunnel-local-remote-ip.xml.i create mode 100644 interface-definitions/include/tunnel-parameters-ip.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/tunnel-local-remote-ip.xml.i b/interface-definitions/include/tunnel-local-remote-ip.xml.i new file mode 100644 index 000000000..85c20f482 --- /dev/null +++ b/interface-definitions/include/tunnel-local-remote-ip.xml.i @@ -0,0 +1,37 @@ + + + + Local IP address for this tunnel + + ipv4 + Local IPv4 address for this tunnel + + + ipv6 + Local IPv6 address for this tunnel + + + + + + + + + + + + Remote IP address for this tunnel + + ipv4 + Remote IPv4 address for this tunnel + + + ipv6 + Remote IPv6 address for this tunnel + + + + + + + diff --git a/interface-definitions/include/tunnel-parameters-ip.xml.i b/interface-definitions/include/tunnel-parameters-ip.xml.i new file mode 100644 index 000000000..c304bd3ff --- /dev/null +++ b/interface-definitions/include/tunnel-parameters-ip.xml.i @@ -0,0 +1,49 @@ + + + + IPv4 specific tunnel parameters + + + + + Time to live field + + 0-255 + Time to live (default 255) + + + + + TTL must be between 0 and 255 + + 255 + + + + Type of Service (TOS) + + 0-99 + Type of Service (TOS) + + + + + TOS must be between 0 and 99 + + inherit + + + + Tunnel key + + u32 + Tunnel key + + + + + key must be between 0-4294967295 + + + + diff --git a/interface-definitions/interfaces-erspan.xml.in b/interface-definitions/interfaces-erspan.xml.in index 6b98b0730..afc29a658 100644 --- a/interface-definitions/interfaces-erspan.xml.in +++ b/interface-definitions/interfaces-erspan.xml.in @@ -17,62 +17,23 @@ #include - #include #include #include - #include #include - #include - #include - - - Local IP address for this tunnel - - ipv4 - Local IPv4 address for this ERSPAN tunnel - - - ipv6 - Local IPv6 address for this tunnel [NOTICE: unavailable for mGRE tunnels] - - - - - - - - - - - - Remote IP address for this ERSPAN tunnel - - ipv4 - Remote IPv4 address for this tunnel - - - ipv6 - Remote IPv6 address for this tunnel - - - - - - - + #include - Encapsulation of this ERSPAN tunnel interface + Encapsulation of this tunnel interface erspan ip6erspan erspan - Encapsulated Remote SPAN over GRE and IPv4 + Generic Routing Encapsulation ip6erspan - Encapsulated Remote SPAN over GRE and IPv6 + Generic Routing Encapsulation bridge interface ^(erspan|ip6erspan)$ @@ -85,54 +46,7 @@ ERSPAN Tunnel parameters - - - IP specific ERSPAN tunnel parameters - - - - - Time to live field - - 0-255 - Time to live (default 255) - - - - - TTL must be between 0 and 255 - - 255 - - - - Type of Service (TOS) - - 0-99 - Type of Service (TOS) - - - - - TOS must be between 0 and 99 - - inherit - - - - ERSPAN Tunnel key - - 0-4294967295 - Tunnel key - - - - - key must be between 0-4294967295 - - - - + #include ERSPAN version number setting(default:1) diff --git a/interface-definitions/interfaces-tunnel.xml.in b/interface-definitions/interfaces-tunnel.xml.in index 7fa847ab0..279c05cca 100644 --- a/interface-definitions/interfaces-tunnel.xml.in +++ b/interface-definitions/interfaces-tunnel.xml.in @@ -27,42 +27,7 @@ #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 - - - - - - - + #include Physical Interface used for underlaying traffic @@ -175,71 +140,7 @@ Tunnel parameters - - - IPv4 specific tunnel parameters - - - - - Disable path MTU discovery - - - - - - Time to live (default: 0) - - 0 - Copy value from original IP header - - - 1-255 - Time to Live - - - - - TTL must be between 0 and 255 - - 0 - - - - Type of Service (default: 0) - - inherit - - - 0 - Copy value from original IP header - - - 1-99 - Type of Service (TOS) - - - - - TOS must be between 0 and 99 - - 0 - - - - Tunnel key - - u32 - Tunnel key - - - - - Key must be in range 0-4294967295 - - - - + #include IPv6 specific tunnel parameters -- cgit v1.2.3