From 577ae00d0c7329bea8102fcf75de82cb188b4fb8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 22 Feb 2021 17:35:27 +0100 Subject: xml: tunnel: erspan: make individual parameter nodes reusable VXLAN will get tos, ttl and flowlabel options thus make individual parameter settings reusable by splitting tunnel-parameters-ip.xml.i into individual files. --- .../include/interface-parameters-flowlabel.xml.i | 16 ++++++++ .../include/interface-parameters-key.xml.i | 15 +++++++ .../include/interface-parameters-tos.xml.i | 16 ++++++++ .../include/interface-parameters-ttl.xml.i | 20 ++++++++++ .../include/tunnel-parameters-ip.xml.i | 46 ---------------------- interface-definitions/interfaces-erspan.xml.in | 4 +- interface-definitions/interfaces-tunnel.xml.in | 19 ++------- 7 files changed, 74 insertions(+), 62 deletions(-) create mode 100644 interface-definitions/include/interface-parameters-flowlabel.xml.i create mode 100644 interface-definitions/include/interface-parameters-key.xml.i create mode 100644 interface-definitions/include/interface-parameters-tos.xml.i create mode 100644 interface-definitions/include/interface-parameters-ttl.xml.i delete mode 100644 interface-definitions/include/tunnel-parameters-ip.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/interface-parameters-flowlabel.xml.i b/interface-definitions/include/interface-parameters-flowlabel.xml.i new file mode 100644 index 000000000..ae65c27c9 --- /dev/null +++ b/interface-definitions/include/interface-parameters-flowlabel.xml.i @@ -0,0 +1,16 @@ + + + + Specifies the flow label to use in outgoing packets + + 0x0-0x0FFFFF + Tunnel key, 'inherit' or hex value + + + ^((0x){0,1}(0?[0-9A-Fa-f]{1,5})|inherit)$ + + Must be 'inherit' or a number + + inherit + + diff --git a/interface-definitions/include/interface-parameters-key.xml.i b/interface-definitions/include/interface-parameters-key.xml.i new file mode 100644 index 000000000..e918ff0e8 --- /dev/null +++ b/interface-definitions/include/interface-parameters-key.xml.i @@ -0,0 +1,15 @@ + + + + Tunnel key + + u32 + Tunnel key + + + + + key must be between 0-4294967295 + + + diff --git a/interface-definitions/include/interface-parameters-tos.xml.i b/interface-definitions/include/interface-parameters-tos.xml.i new file mode 100644 index 000000000..ebb537bed --- /dev/null +++ b/interface-definitions/include/interface-parameters-tos.xml.i @@ -0,0 +1,16 @@ + + + + Specifies TOS value to use in outgoing packets + + 0-99 + Type of Service (TOS) + + + + + TOS must be between 0 and 99 + + inherit + + diff --git a/interface-definitions/include/interface-parameters-ttl.xml.i b/interface-definitions/include/interface-parameters-ttl.xml.i new file mode 100644 index 000000000..a6a6f163f --- /dev/null +++ b/interface-definitions/include/interface-parameters-ttl.xml.i @@ -0,0 +1,20 @@ + + + + Specifies TTL value to use in outgoing packets (default: 0) + + 0 + Copy value from original IP header + + + 1-255 + Time to Live + + + + + TTL must be between 0 and 255 + + 0 + + diff --git a/interface-definitions/include/tunnel-parameters-ip.xml.i b/interface-definitions/include/tunnel-parameters-ip.xml.i deleted file mode 100644 index 0a667d199..000000000 --- a/interface-definitions/include/tunnel-parameters-ip.xml.i +++ /dev/null @@ -1,46 +0,0 @@ - - - - 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 (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 8a4bfea2b..e36a64d3a 100644 --- a/interface-definitions/interfaces-erspan.xml.in +++ b/interface-definitions/interfaces-erspan.xml.in @@ -51,7 +51,9 @@ IPv4 specific tunnel parameters - #include + #include + #include + #include diff --git a/interface-definitions/interfaces-tunnel.xml.in b/interface-definitions/interfaces-tunnel.xml.in index 45573a826..7a97980a2 100644 --- a/interface-definitions/interfaces-tunnel.xml.in +++ b/interface-definitions/interfaces-tunnel.xml.in @@ -151,7 +151,9 @@ - #include + #include + #include + #include @@ -173,20 +175,7 @@ 4 - - - 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 - - inherit - + #include Hoplimit -- cgit v1.2.3