Skip to content

Prevent Portchannel Overlap for Internal and External Portchannel#4576

Merged
abdosi merged 16 commits intosonic-net:masterfrom
abdosi:chassis-pkt
Oct 28, 2021
Merged

Prevent Portchannel Overlap for Internal and External Portchannel#4576
abdosi merged 16 commits intosonic-net:masterfrom
abdosi:chassis-pkt

Conversation

@abdosi
Copy link
Contributor

@abdosi abdosi commented Oct 27, 2021

What I did:-
Avoid Overlap of External and Internal PortChannel. This can happen when we have many port-channel interfaces in case of t2 topo.

How I did:-

External Port Channel will be 4 digit and Internal Port-Channel will be 2 digit.

@abdosi abdosi requested a review from a team as a code owner October 27, 2021 23:46
Copy link
Contributor

@SuvarnaMeenakshi SuvarnaMeenakshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PortChannel interface name in the below section also needs to be updated.

{%- set acl_intfs = [] -%}
{% if card_type is not defined or card_type != 'supervisor' %}
{%- for index in range(vms_number) %}
{% if vms[index] in vm_asic_ifnames and vm_asic_ifnames[vms[index]][0].split('-')[1] == asic_name %}
{% if 'port-channel' in vm_topo_config['vm'][vms[index]]['ip_intf'][0]|lower %}
{% set a_intf = 'PortChannel' + ((index+1) |string).zfill(2) %}
{{- acl_intfs.append(a_intf) -}}

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@abdosi
Copy link
Contributor Author

abdosi commented Oct 28, 2021

@SuvarnaMeenakshi Thanks for catching that. Updated.

Copy link
Contributor

@SuvarnaMeenakshi SuvarnaMeenakshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@abdosi abdosi merged commit 700d8f7 into sonic-net:master Oct 28, 2021
@abdosi abdosi deleted the chassis-pkt branch October 28, 2021 16:53
@abdosi abdosi added the chassis label Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants