Skip to content

Commit

Permalink
Fixing the bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed Aug 21, 2024
1 parent dd6f6d1 commit d03e741
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ sFlow is disabled.
| Ethernet1 | both | 43 | 30 | - | - | - | True |
| Ethernet1 | in | 10 | 24 | - | - | - | - |
| Ethernet1 | in | 23 | 45 | - | - | - | True |
| Ethernet1 | in | 37 | 49 | - | - | - | - |
| Ethernet1 | in | 37 | 49 | 56 | - | - | - |
| Ethernet1 | out | 10 | 45 | - | 34 | - | - |
| Ethernet1 | out | 34 | 50 | - | - | - | - |
| Ethernet1 | out | 45 | True | - | - | - | True |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ interface Ethernet50
| Port-Channel100 | both | 43 | 30 | - | - | - | True |
| Port-Channel100 | in | 23 | 45 | - | - | - | True |
| Port-Channel100 | in | 34 | 23 | - | - | - | - |
| Port-Channel100 | in | 37 | 49 | - | - | - | - |
| Port-Channel100 | in | 37 | 49 | - | 56 | - | - |
| Port-Channel100 | out | 10 | 45 | - | 34 | - | - |
| Port-Channel100 | out | 34 | 50 | - | - | - | - |
| Port-Channel100 | out | 45 | True | - | - | - | True |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@
{% for ethernet_interface in ethernet_interfaces | arista.avd.natural_sort('name') %}
{% if ethernet_interface.switchport.vlan_translations is arista.avd.defined %}
{% for vlan_translation in ethernet_interface.switchport.vlan_translations.direction_both | arista.avd.natural_sort('from') %}
| {{ ethernet_interface.name }} | both | {{ vlan_translation.from }} | {{ vlan_translation.to | arista.avd.default('-') }} | {{ vlan_translation.inner_vlan_from | arista.avd.default('-') }} | - | {{ vlan_translation.network | arista.avd.default('-') }} | {{ vlan_translation.dot1q_tunnel | arista.avd.default('-') }} |
| {{ ethernet_interface.name }} | both | {{ vlan_translation.from }} | {{ vlan_translation.to }} | {{ vlan_translation.inner_vlan_from | arista.avd.default('-') }} | - | {{ vlan_translation.network | arista.avd.default('-') }} | {{ vlan_translation.dot1q_tunnel | arista.avd.default('-') }} |
{% endfor %}
{% for vlan_translation in ethernet_interface.switchport.vlan_translations.direction_in | arista.avd.natural_sort('from') %}
| {{ ethernet_interface.name }} | in | {{ vlan_translation.from }} | {{ vlan_translation.to | arista.avd.default('-') }} | - | {{ vlan_translation.inner_vlan_to | arista.avd.default('-') }} | {{ vlan_translation.network | arista.avd.default('-') }} | {{ vlan_translation.dot1q_tunnel | arista.avd.default('-') }} |
| {{ ethernet_interface.name }} | in | {{ vlan_translation.from }} | {{ vlan_translation.to }} | {{ vlan_translation.inner_vlan_from | arista.avd.default('-') }} | - | {{ vlan_translation.network | arista.avd.default('-') }} | {{ vlan_translation.dot1q_tunnel | arista.avd.default('-') }} |
{% endfor %}
{% for vlan_translation in ethernet_interface.switchport.vlan_translations.direction_out | arista.avd.natural_sort('from') %}
{% set to_vlan_id = vlan_translation.dot1q_tunnel.all | arista.avd.default( vlan_translation.dot1q_tunnel.to, vlan_translation.to, "-") %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@
{% for port_channel_interface in port_channel_interfaces | arista.avd.natural_sort('name') %}
{% if port_channel_interface.switchport.vlan_translations is arista.avd.defined %}
{% for vlan_translation in port_channel_interface.switchport.vlan_translations.direction_both | arista.avd.natural_sort('from') %}
| {{ port_channel_interface.name }} | both | {{ vlan_translation.from }} | {{ vlan_translation.to | arista.avd.default('-') }} | {{ vlan_translation.inner_vlan_from | arista.avd.default('-') }} | - | {{ vlan_translation.network | arista.avd.default('-') }} | {{ vlan_translation.dot1q_tunnel | arista.avd.default('-') }} |
| {{ port_channel_interface.name }} | both | {{ vlan_translation.from }} | {{ vlan_translation.to }} | {{ vlan_translation.inner_vlan_from | arista.avd.default('-') }} | - | {{ vlan_translation.network | arista.avd.default('-') }} | {{ vlan_translation.dot1q_tunnel | arista.avd.default('-') }} |
{% endfor %}
{% for vlan_translation in port_channel_interface.switchport.vlan_translations.direction_in | arista.avd.natural_sort('from') %}
| {{ port_channel_interface.name }} | in | {{ vlan_translation.from }} | {{ vlan_translation.to | arista.avd.default('-') }} | - | {{ vlan_translation.inner_vlan_to | arista.avd.default('-') }} | {{ vlan_translation.network | arista.avd.default('-') }} | {{ vlan_translation.dot1q_tunnel | arista.avd.default('-') }} |
| {{ port_channel_interface.name }} | in | {{ vlan_translation.from }} | {{ vlan_translation.to }} | - | {{ vlan_translation.inner_vlan_from | arista.avd.default('-') }} | {{ vlan_translation.network | arista.avd.default('-') }} | {{ vlan_translation.dot1q_tunnel | arista.avd.default('-') }} |
{% endfor %}
{% for vlan_translation in port_channel_interface.switchport.vlan_translations.direction_out | arista.avd.natural_sort('from') %}
{% set to_vlan_id = vlan_translation.dot1q_tunnel.all | arista.avd.default( vlan_translation.dot1q_tunnel.to, vlan_translation.to, "-") %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,42 +205,38 @@ interface {{ ethernet_interface.name }}
{% endif %}
{% for vlan_translation in ethernet_interface.switchport.vlan_translations.direction_both | arista.avd.natural_sort('from') %}
{% set vlan_translation_both_cli = 'switchport vlan translation' %}
{% if vlan_translation.from is arista.avd.defined and vlan_translation.to is arista.avd.defined %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' ' ~ vlan_translation.from %}
{% if vlan_translation.dot1q_tunnel is arista.avd.defined(true) %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' dot1q-tunnel' %}
{% elif vlan_translation.inner_vlan_from is arista.avd.defined %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' inner ' ~ vlan_translation.inner_vlan_from %}
{% if vlan_translation.network is arista.avd.defined(true) %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' network' %}
{% endif %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' ' ~ vlan_translation.from %}
{% if vlan_translation.dot1q_tunnel is arista.avd.defined(true) %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' dot1q-tunnel' %}
{% elif vlan_translation.inner_vlan_from is arista.avd.defined %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' inner ' ~ vlan_translation.inner_vlan_from %}
{% if vlan_translation.network is arista.avd.defined(true) %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' network' %}
{% endif %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' ' ~ vlan_translation.to %}
{{ vlan_translation_both_cli }}
{% endif %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' ' ~ vlan_translation.to %}
{{ vlan_translation_both_cli }}
{% endfor %}
{% if ethernet_interface.switchport.vlan_translations.direction_in is arista.avd.defined %}
{% for vlan_translation in ethernet_interface.switchport.vlan_translations.direction_in %}
{% if vlan_translation.from is arista.avd.defined and vlan_translation.to is arista.avd.defined %}
{% set vlan_translation_in_cli = 'switchport vlan translation in ' ~ vlan_translation.from %}
{% if vlan_translation.dot1q_tunnel is arista.avd.defined(true) %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ ' dot1q-tunnel' %}
{% elif vlan_translation.inner_vlan_from is arista.avd.defined %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ ' inner ' ~ vlan_translation.inner_vlan_from %}
{% endif %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ " " ~ vlan_translation.to %}
{{ vlan_translation_in_cli }}
{% set vlan_translation_in_cli = 'switchport vlan translation in ' ~ vlan_translation.from %}
{% if vlan_translation.dot1q_tunnel is arista.avd.defined(true) %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ ' dot1q-tunnel' %}
{% elif vlan_translation.inner_vlan_from is arista.avd.defined %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ ' inner ' ~ vlan_translation.inner_vlan_from %}
{% endif %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ " " ~ vlan_translation.to %}
{{ vlan_translation_in_cli }}
{% endfor %}
{% endif %}
{% if ethernet_interface.switchport.vlan_translations.direction_out is arista.avd.defined %}
{% for vlan_translation in ethernet_interface.switchport.vlan_translations.direction_out %}
{% if vlan_translation.from is arista.avd.defined and vlan_translation.to is arista.avd.defined %}
{% if vlan_translation.to is arista.avd.defined %}
{% set vlan_translation_out_cli = 'switchport vlan translation out ' ~ vlan_translation.from ~ ' ' ~ vlan_translation.to %}
{% if vlan_translation.inner_vlan_to is arista.avd.defined %}
{% set vlan_translation_out_cli = vlan_translation_out_cli ~ ' inner ' ~ vlan_translation.inner_vlan_to %}
{% endif %}
{% elif vlan_translation.from is arista.avd.defined and vlan_translation.dot1q_tunnel is arista.avd.defined %}
{% elif vlan_translation.dot1q_tunnel is arista.avd.defined %}
{% set vlan_translation_out_cli = 'switchport vlan translation out ' ~ vlan_translation.from %}
{% if vlan_translation.dot1q_tunnel.all is arista.avd.defined(true) %}
{% set vlan_translation_out_cli = vlan_translation_out_cli ~ ' dot1q-tunnel all' %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,43 +153,38 @@ interface {{ port_channel_interface.name }}
{% endif %}
{% for vlan_translation in port_channel_interface.switchport.vlan_translations.direction_both | arista.avd.natural_sort('from') %}
{% set vlan_translation_both_cli = 'switchport vlan translation' %}
{% if vlan_translation.from is arista.avd.defined and vlan_translation.to is arista.avd.defined %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' ' ~ vlan_translation.from %}
{% if vlan_translation.dot1q_tunnel is arista.avd.defined(true) %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' dot1q-tunnel' %}
{% elif vlan_translation.inner_vlan_from is arista.avd.defined %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' inner ' ~ vlan_translation.inner_vlan_from %}
{% if vlan_translation.network is arista.avd.defined(true) %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' network' %}
{% endif %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' ' ~ vlan_translation.from %}
{% if vlan_translation.dot1q_tunnel is arista.avd.defined(true) %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' dot1q-tunnel' %}
{% elif vlan_translation.inner_vlan_from is arista.avd.defined %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' inner ' ~ vlan_translation.inner_vlan_from %}
{% if vlan_translation.network is arista.avd.defined(true) %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' network' %}
{% endif %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' ' ~ vlan_translation.to %}
{{ vlan_translation_both_cli }}
{% endif %}
{% set vlan_translation_both_cli = vlan_translation_both_cli ~ ' ' ~ vlan_translation.to %}
{{ vlan_translation_both_cli }}
{% endfor %}
{% if port_channel_interface.switchport.vlan_translations.direction_in is arista.avd.defined %}
{% for vlan_translation in port_channel_interface.switchport.vlan_translations.direction_in %}
{% set vlan_translation_in_cli = 'switchport vlan translation in' %}
{% if vlan_translation.from is arista.avd.defined and vlan_translation.to is arista.avd.defined %}
{% set vlan_translation_in_cli = 'switchport vlan translation in ' ~ vlan_translation.from %}
{% if vlan_translation.dot1q_tunnel is arista.avd.defined(true) %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ ' dot1q-tunnel' %}
{% elif vlan_translation.inner_vlan_from is arista.avd.defined %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ ' inner ' ~ vlan_translation.inner_vlan_from %}
{% endif %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ " " ~ vlan_translation.to %}
{{ vlan_translation_in_cli }}
{% set vlan_translation_in_cli = 'switchport vlan translation in ' ~ vlan_translation.from %}
{% if vlan_translation.dot1q_tunnel is arista.avd.defined(true) %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ ' dot1q-tunnel' %}
{% elif vlan_translation.inner_vlan_from is arista.avd.defined %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ ' inner ' ~ vlan_translation.inner_vlan_from %}
{% endif %}
{% set vlan_translation_in_cli = vlan_translation_in_cli ~ " " ~ vlan_translation.to %}
{{ vlan_translation_in_cli }}
{% endfor %}
{% endif %}
{% if port_channel_interface.switchport.vlan_translations.direction_out is arista.avd.defined %}
{% for vlan_translation in port_channel_interface.switchport.vlan_translations.direction_out %}
{% if vlan_translation.from is arista.avd.defined and vlan_translation.to is arista.avd.defined %}
{% if vlan_translation.to is arista.avd.defined %}
{% set vlan_translation_out_cli = 'switchport vlan translation out ' ~ vlan_translation.from ~ ' ' ~ vlan_translation.to %}
{% if vlan_translation.inner_vlan_to is arista.avd.defined %}
{% set vlan_translation_out_cli = vlan_translation_out_cli ~ ' inner ' ~ vlan_translation.inner_vlan_to %}
{% endif %}
{% elif vlan_translation.from is arista.avd.defined and vlan_translation.dot1q_tunnel is arista.avd.defined %}
{% elif vlan_translation.dot1q_tunnel is arista.avd.defined %}
{% set vlan_translation_out_cli = 'switchport vlan translation out ' ~ vlan_translation.from %}
{% if vlan_translation.dot1q_tunnel.all is arista.avd.defined(true) %}
{% set vlan_translation_out_cli = vlan_translation_out_cli ~ ' dot1q-tunnel all' %}
Expand Down

0 comments on commit d03e741

Please sign in to comment.