Skip to content

Commit

Permalink
Merge branch 'devel' into revert-4882-oops-they-broke-it-again
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc authored Jan 20, 2025
2 parents 40abfc0 + ed5abca commit d53dea3
Show file tree
Hide file tree
Showing 13 changed files with 75 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.1
rev: v0.9.2
hooks:
# Run the linter.
- id: ruff
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3834,6 +3834,8 @@ interface Dps1
```eos
!
interface Ethernet1
!! testing multi line comment with |-
!! connection to dc1-spine1
traffic-policy input BLUE-C1-POLICY
traffic-policy output BLUE-C2-POLICY
description P2P_LINK_TO_DC1-SPINE1_Ethernet1
Expand Down Expand Up @@ -3913,6 +3915,8 @@ interface Ethernet1
!
interface Ethernet2
!! testing multi line comments with |
!! connection to server in pod02
description SRV-POD02_Eth1
switchport dot1q vlan tag disallowed
switchport trunk allowed vlan 110-111,210-211
Expand All @@ -3939,6 +3943,7 @@ interface Ethernet2
spanning-tree bpdufilter disable
!
interface Ethernet3
!! testing single line comment
description P2P_LINK_TO_DC1-SPINE2_Ethernet2
mtu 1500
switchport trunk native vlan 5
Expand Down Expand Up @@ -5090,6 +5095,8 @@ interface Port-Channel3
isis authentication key 0 <removed>
!
interface Port-Channel5
!! testing multi line comments with |-
!! applied to port-channel 5
description DC1_L2LEAF1_Po1
bgp session tracker ST2
switchport trunk allowed vlan 110,201
Expand Down Expand Up @@ -5210,6 +5217,8 @@ interface Port-Channel14
route-target import 00:00:01:02:03:05
!
interface Port-Channel15
!! testing multi line comments with |
!! applied to port-channel 15
traffic-policy input BLUE-C1-POLICY
traffic-policy output BLUE-C2-POLICY
description DC1_L2LEAF3_Po1
Expand All @@ -5227,6 +5236,7 @@ interface Port-Channel15
link tracking group EVPN_MH_ES2 upstream
!
interface Port-Channel16
!! testing single line comment
description DC1_L2LEAF4_Po1
switchport trunk native vlan 10
switchport dot1q vlan tag disallowed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,8 @@ interface Port-Channel3
isis authentication key 0 password
!
interface Port-Channel5
!! testing multi line comments with |-
!! applied to port-channel 5
description DC1_L2LEAF1_Po1
bgp session tracker ST2
switchport trunk allowed vlan 110,201
Expand Down Expand Up @@ -1774,6 +1776,8 @@ interface Port-Channel14
route-target import 00:00:01:02:03:05
!
interface Port-Channel15
!! testing multi line comments with |
!! applied to port-channel 15
traffic-policy input BLUE-C1-POLICY
traffic-policy output BLUE-C2-POLICY
description DC1_L2LEAF3_Po1
Expand All @@ -1791,6 +1795,7 @@ interface Port-Channel15
link tracking group EVPN_MH_ES2 upstream
!
interface Port-Channel16
!! testing single line comment
description DC1_L2LEAF4_Po1
switchport trunk native vlan 10
switchport dot1q vlan tag disallowed
Expand Down Expand Up @@ -2269,6 +2274,8 @@ interface Dps1
load-interval 42
!
interface Ethernet1
!! testing multi line comment with |-
!! connection to dc1-spine1
traffic-policy input BLUE-C1-POLICY
traffic-policy output BLUE-C2-POLICY
description P2P_LINK_TO_DC1-SPINE1_Ethernet1
Expand Down Expand Up @@ -2348,6 +2355,8 @@ interface Ethernet1

!
interface Ethernet2
!! testing multi line comments with |
!! connection to server in pod02
description SRV-POD02_Eth1
switchport dot1q vlan tag disallowed
switchport trunk allowed vlan 110-111,210-211
Expand All @@ -2374,6 +2383,7 @@ interface Ethernet2
spanning-tree bpdufilter disable
!
interface Ethernet3
!! testing single line comment
description P2P_LINK_TO_DC1-SPINE2_Ethernet2
mtu 1500
switchport trunk native vlan 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ ethernet_interfaces:
peer_interface: Ethernet1
peer_type: spine
description: P2P_LINK_TO_DC1-SPINE1_Ethernet1
comment: |-
testing multi line comment with |-
connection to dc1-spine1
speed: forced 100gfull
mtu: 1500
l2_mtu: 8000
Expand Down Expand Up @@ -161,6 +164,9 @@ ethernet_interfaces:
peer_interface: Eth1
peer_type: server
description: SRV-POD02_Eth1
comment: |
testing multi line comments with |
connection to server in pod02
tcp_mss_ceiling:
ipv4_segment_size: 70
direction: ingress
Expand Down Expand Up @@ -217,6 +223,7 @@ ethernet_interfaces:
peer_interface: Ethernet2
peer_type: spine
description: P2P_LINK_TO_DC1-SPINE2_Ethernet2
comment: testing single line comment
mtu: 1500
ip_address: 172.31.128.1/31
snmp_trap_link_change: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
port_channel_interfaces:
- name: Port-Channel5
description: DC1_L2LEAF1_Po1
comment: |-
testing multi line comments with |-
applied to port-channel 5
link_tracking_groups:
- name: EVPN_MH_ES1
direction: downstream
Expand Down Expand Up @@ -70,6 +73,9 @@ port_channel_interfaces:
destination_mac_address: forwardable

- name: Port-Channel15
comment: |
testing multi line comments with |
applied to port-channel 15
description: DC1_L2LEAF3_Po1
link_tracking_groups:
- name: EVPN_MH_ES2
Expand Down Expand Up @@ -111,6 +117,7 @@ port_channel_interfaces:
output: BLUE-C2-POLICY

- name: Port-Channel16
comment: testing single line comment
description: DC1_L2LEAF4_Po1
snmp_trap_link_change: true
mlag: 16
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
{% for ethernet_interface in ethernet_interfaces | arista.avd.natural_sort('name') %}
!
interface {{ ethernet_interface.name }}
{% if ethernet_interface.comment is arista.avd.defined %}
{% for comment_line in ethernet_interface.comment.splitlines() | arista.avd.default([]) %}
!! {{ comment_line }}
{% endfor %}
{% endif %}
{% if ethernet_interface.profile is arista.avd.defined %}
profile {{ ethernet_interface.profile }}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
{% for port_channel_interface in port_channel_interfaces | arista.avd.natural_sort('name') %}
!
interface {{ port_channel_interface.name }}
{% if port_channel_interface.comment is arista.avd.defined %}
{% for comment_line in port_channel_interface.comment.splitlines() | arista.avd.default([]) %}
!! {{ comment_line }}
{% endfor %}
{% endif %}
{% if port_channel_interface.profile is arista.avd.defined %}
profile {{ port_channel_interface.profile }}
{% endif %}
Expand Down
10 changes: 10 additions & 0 deletions python-avd/pyavd/_eos_cli_config_gen/schema/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ keys:
keys:
name:
type: str
comment:
type: str
description: Text comment added under ethernet interface.
description:
type: str
shutdown:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ keys:
keys:
name:
type: str
comment:
type: str
description: Text comment added under port-channel interface.
description:
type: str
profile:
Expand Down

0 comments on commit d53dea3

Please sign in to comment.