Skip to content

Commit

Permalink
Fix test-case for protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed Jul 22, 2024
1 parent 5a41481 commit bb0d566
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ interface Ethernet1
switchport tap mpls pop all
switchport tap encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 source 1.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0000 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0001 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0010 strip
switchport tool mpls pop all
switchport tool encapsulation vn-tag strip
switchport tool encapsulation dot1br strip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@ interface Port-Channel100
switchport tap mpls pop all
switchport tap encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 source 1.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0000 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0010 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0001 strip
switchport tool mpls pop all
switchport tool encapsulation vn-tag strip
switchport tool encapsulation dot1br strip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ interface Ethernet1
switchport tap mpls pop all
switchport tap encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 source 1.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0000 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0001 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0010 strip
switchport tool mpls pop all
switchport tool encapsulation vn-tag strip
switchport tool encapsulation dot1br strip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ interface Port-Channel100
switchport tap mpls pop all
switchport tap encapsulation gre strip
switchport tap encapsulation gre destination 1.1.1.1 source 1.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0000 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0000 strip
switchport tap encapsulation gre protocol 0x0010 strip
switchport tap encapsulation gre destination 2.1.1.2 protocol 0x0001 strip
switchport tool mpls pop all
switchport tool encapsulation vn-tag strip
switchport tool encapsulation dot1br strip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ ethernet_interfaces:
source: 1.1.1.2
protocol: "0x0000"
- strip: true
protocol: "0x0000"
protocol: "0x0001"
- strip: true
destination: 2.1.1.2
protocol: "0x0000"
protocol: "0x0010"
tool:
mpls_pop_all: true
encapsulation:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ port_channel_interfaces:
source: 1.1.1.2
protocol: "0x0000"
- strip: true
protocol: "0x0000"
protocol: "0x0010"
- strip: true
destination: 2.1.1.2
protocol: "0x0000"
protocol: "0x0001"
tool:
mpls_pop_all: true
encapsulation:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;strip</samp>](## "ethernet_interfaces.[].switchport.tap.encapsulation.gre.[].strip") | Boolean | Required | | | Strip GRE encapsulation header. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;destination</samp>](## "ethernet_interfaces.[].switchport.tap.encapsulation.gre.[].destination") | String | | | | Destination IP address of tunnel packets. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;source</samp>](## "ethernet_interfaces.[].switchport.tap.encapsulation.gre.[].source") | String | | | | Source IP address of tunnel packets. Applied only when destination is defined. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocol</samp>](## "ethernet_interfaces.[].switchport.tap.encapsulation.gre.[].protocol") | String | | | | Protocol type in GRE header.<br>Protocol range: 0x0000-0xFFFF |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocol</samp>](## "ethernet_interfaces.[].switchport.tap.encapsulation.gre.[].protocol") | String | | | | Protocol type in GRE header.<br>Protocol range: 0x0000-0xFFFF. It should be unique. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tool</samp>](## "ethernet_interfaces.[].switchport.tool") | Dictionary | | | | In tool mode, the interface operates as a tool port.<br>Tool ports replicate traffic received by tap ports. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mpls_pop_all</samp>](## "ethernet_interfaces.[].switchport.tool.mpls_pop_all") | Boolean | | | | Pop all MPLS labels. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;encapsulation</samp>](## "ethernet_interfaces.[].switchport.tool.encapsulation") | Dictionary | | | | |
Expand Down Expand Up @@ -1265,7 +1265,7 @@
source: <str>

# Protocol type in GRE header.
# Protocol range: 0x0000-0xFFFF
# Protocol range: 0x0000-0xFFFF. It should be unique.
protocol: <str>

# In tool mode, the interface operates as a tool port.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;strip</samp>](## "port_channel_interfaces.[].switchport.tap.encapsulation.gre.[].strip") | Boolean | Required | | | Strip GRE encapsulation header. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;destination</samp>](## "port_channel_interfaces.[].switchport.tap.encapsulation.gre.[].destination") | String | | | | Destination IP address of tunnel packets. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;source</samp>](## "port_channel_interfaces.[].switchport.tap.encapsulation.gre.[].source") | String | | | | Source IP address of tunnel packets. Applied only when destination is defined. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocol</samp>](## "port_channel_interfaces.[].switchport.tap.encapsulation.gre.[].protocol") | String | | | | Protocol type in GRE header.<br>Protocol range: 0x0000-0xFFFF |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocol</samp>](## "port_channel_interfaces.[].switchport.tap.encapsulation.gre.[].protocol") | String | | | | Protocol type in GRE header.<br>Protocol range: 0x0000-0xFFFF. It should be unique. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;feature_header_length</samp>](## "port_channel_interfaces.[].switchport.tap.encapsulation.gre.[].feature_header_length") | Integer | | | Min: 1<br>Max: 16 | Feature header length in bytes. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tool</samp>](## "port_channel_interfaces.[].switchport.tool") | Dictionary | | | | In tool mode, the interface operates as a tool port.<br>Tool ports replicate traffic received by tap ports. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mpls_pop_all</samp>](## "port_channel_interfaces.[].switchport.tool.mpls_pop_all") | Boolean | | | | Pop all MPLS labels. |
Expand Down Expand Up @@ -820,7 +820,7 @@
source: <str>

# Protocol type in GRE header.
# Protocol range: 0x0000-0xFFFF
# Protocol range: 0x0000-0xFFFF. It should be unique.
protocol: <str>

# Feature header length in bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5883,7 +5883,7 @@
},
"protocol": {
"type": "string",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF. It should be unique.",
"title": "Protocol"
}
},
Expand Down Expand Up @@ -16284,7 +16284,7 @@
},
"protocol": {
"type": "string",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF. It should be unique.",
"title": "Protocol"
},
"feature_header_length": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3553,7 +3553,7 @@ keys:
type: str
description: 'Protocol type in GRE header.

Protocol range: 0x0000-0xFFFF'
Protocol range: 0x0000-0xFFFF. It should be unique.'
tool:
description: 'In tool mode, the interface operates as a tool port.

Expand Down Expand Up @@ -9622,7 +9622,7 @@ keys:
type: str
description: 'Protocol type in GRE header.

Protocol range: 0x0000-0xFFFF'
Protocol range: 0x0000-0xFFFF. It should be unique.'
feature_header_length:
description: Feature header length in bytes.
type: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ keys:
type: str
description: |-
Protocol type in GRE header.
Protocol range: 0x0000-0xFFFF
Protocol range: 0x0000-0xFFFF. It should be unique.
tool:
description: |-
In tool mode, the interface operates as a tool port.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -946,11 +946,11 @@ keys:
source:
description: Source IP address of tunnel packets. Applied only when destination is defined.
type: str
protocol:
protocol:
type: str
description: |-
Protocol type in GRE header.
Protocol range: 0x0000-0xFFFF
Protocol range: 0x0000-0xFFFF. It should be unique.
feature_header_length:
description: Feature header length in bytes.
type: int
Expand Down
14 changes: 7 additions & 7 deletions python-avd/pyavd/_eos_designs/schema/eos_designs.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11414,7 +11414,7 @@
},
"protocol": {
"type": "string",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF. It should be unique.",
"title": "Protocol"
}
},
Expand Down Expand Up @@ -14611,7 +14611,7 @@
},
"protocol": {
"type": "string",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF. It should be unique.",
"title": "Protocol"
},
"feature_header_length": {
Expand Down Expand Up @@ -17838,7 +17838,7 @@
},
"protocol": {
"type": "string",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF. It should be unique.",
"title": "Protocol"
}
},
Expand Down Expand Up @@ -24694,7 +24694,7 @@
},
"protocol": {
"type": "string",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF. It should be unique.",
"title": "Protocol"
}
},
Expand Down Expand Up @@ -35095,7 +35095,7 @@
},
"protocol": {
"type": "string",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF. It should be unique.",
"title": "Protocol"
},
"feature_header_length": {
Expand Down Expand Up @@ -54043,7 +54043,7 @@
},
"protocol": {
"type": "string",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF. It should be unique.",
"title": "Protocol"
},
"feature_header_length": {
Expand Down Expand Up @@ -57270,7 +57270,7 @@
},
"protocol": {
"type": "string",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF",
"description": "Protocol type in GRE header.\nProtocol range: 0x0000-0xFFFF. It should be unique.",
"title": "Protocol"
}
},
Expand Down

0 comments on commit bb0d566

Please sign in to comment.