From 44f766a7880e9264487e62f4aacc9f4f635219ed Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 5 Apr 2021 23:23:14 +0200 Subject: tunnel: T3030: move erspan type into regular tunnel interface Instead of having a dedicated ERSPAN interface type, rather move the specifics into "interface tunnel". A migrator is not needed as there is yet no LTS release with this feature and this is considered experimental. --- interface-definitions/interfaces-erspan.xml.in | 114 ------------------------- interface-definitions/interfaces-tunnel.xml.in | 89 ++++++++++++++++++- 2 files changed, 86 insertions(+), 117 deletions(-) delete mode 100644 interface-definitions/interfaces-erspan.xml.in (limited to 'interface-definitions') diff --git a/interface-definitions/interfaces-erspan.xml.in b/interface-definitions/interfaces-erspan.xml.in deleted file mode 100644 index 769899415..000000000 --- a/interface-definitions/interfaces-erspan.xml.in +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - Encapsulated Remote SPAN over GRE and IPv4/IPv6 Tunnel Interface - 310 - - ^ersp[0-9]+$ - - ERSPAN tunnel interface must be named erspN - - erspN - ERSPAN Tunnel interface name - - - - #include - #include - #include - #include - #include - #include - - - Encapsulation of this tunnel interface - - erspan ip6erspan - - - erspan - Generic Routing Encapsulation - - - ip6erspan - Generic Routing Encapsulation bridge interface - - - ^(erspan|ip6erspan)$ - - Invalid encapsulation, must be one of: erspan, ip6erspan - - - - - ERSPAN Tunnel parameters - - - - - IPv4 specific tunnel parameters - - - #include - #include - #include - - - - - ERSPAN version number setting(default:1) - - - - The version number of ERSPAN must be 1 or 2 - - 1 - - - - Specifies mirrored traffic direction - - ingress egress - - - ingress - Mirror ingress direction - - - egress - Mirror egress direction - - - ^(ingress|egress)$ - - The mirror direction of ERSPAN must be ingress or egress - - - - - an unique identifier of an ERSPAN v2 engine within a system - - - - ERSPAN hwid must be a number(range:0-1048575) - - - - - specifies the ERSPAN v1 index field - - - - ERSPAN idx must be a number(range:0-63) - - - - - - - - - diff --git a/interface-definitions/interfaces-tunnel.xml.in b/interface-definitions/interfaces-tunnel.xml.in index e3aad2719..e4bdcb3d7 100644 --- a/interface-definitions/interfaces-tunnel.xml.in +++ b/interface-definitions/interfaces-tunnel.xml.in @@ -80,8 +80,12 @@ Encapsulation of this tunnel interface - gre gretap ip6gre ip6gretap ip6ip6 ipip ipip6 sit + erspan gre gretap ip6erspan ip6gre ip6gretap ip6ip6 ipip ipip6 sit + + erspan + Encapsulated Remote Switched Port Analyzer + gre Generic Routing Encapsulation @@ -90,6 +94,10 @@ gretap Generic Routing Encapsulation (virtual L2 tunnel) + + ip6erspan + Encapsulated Remote Switched Port Analyzer over IPv6 network + ip6gre GRE over IPv6 network @@ -115,9 +123,9 @@ Simple Internet Transition encapsulation - ^(gre|gretap|ip6gre|ip6gretap|ip6ip6|ipip|ipip6|sit)$ + ^(erspan|gre|gretap|ip6erspan|ip6gre|ip6gretap|ip6ip6|ipip|ipip6|sit)$ - Invalid encapsulation, must be one of: gre, gretap, ip6gre, ip6gretap, ipip, sit, ipip6 or ip6ip6 + Invalid encapsulation, must be one of: erspan, gre, gretap, ip6erspan, ip6gre, ip6gretap, ipip, sit, ipip6 or ip6ip6 @@ -145,6 +153,81 @@ Tunnel parameters + + + ERSPAN Tunnel parameters + + + + + + + Specifify ERSPAN version 1 index field + + 0-63 + Platform-depedent field for specifying port number and direction + + + + + + + + + Protocol version + + 1 + ERSPAN Type II + + + + + + + 1 + + + IPv4 specific tunnel parameters -- cgit v1.2.3