Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portchannel member is deleted if it is added to vlan #340

Closed
pkmarimuthu opened this issue Mar 13, 2019 · 7 comments
Closed

Portchannel member is deleted if it is added to vlan #340

pkmarimuthu opened this issue Mar 13, 2019 · 7 comments

Comments

@pkmarimuthu
Copy link

pkmarimuthu commented Mar 13, 2019

#1
admin@sonic:~$ teamshow
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected
No. Team Dev Protocol Ports


31 PortChannel31 LACP(A)(Up) Ethernet16(S) Ethernet104(S) <---------------------------------------
admin@sonic:~$

admin@sonic:$ sudo config vlan member add 501 hundredGigE5
admin@sonic:
$ sudo config vlan member add 501 hundredGigE27

admin@sonic:~$ show interfaces portchannel
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected
No. Team Dev Protocol Ports


31 PortChannel31 LACP(A)(Dw) N/A <----PO deleted after adding VLAN to PO member
admin@sonic:~$
Is this expected > if so, what is right config?

Additional info:
admin@sonic:~$ show version
SONiC Software Version: SONiC.HEAD.843-cacff75
Distribution: Debian 9.6
Kernel: 4.9.0-8-amd64
Build commit: cacff75
Build date: Sun Jan 20 11:12:54 UTC 2019
Built by: johnar@jenkins-worker-3

Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-syncd-brcm HEAD.843-cacff75 31a552c06bb1 359MB
docker-syncd-brcm latest 31a552c06bb1 359MB
docker-orchagent-brcm HEAD.843-cacff75 65cfb87e2212 284MB
docker-orchagent-brcm latest 65cfb87e2212 284MB
docker-lldp-sv2 HEAD.843-cacff75 8f1c07fc7bf1 272MB
docker-lldp-sv2 latest 8f1c07fc7bf1 272MB
docker-dhcp-relay HEAD.843-cacff75 15466ff7f5fd 254MB
docker-dhcp-relay latest 15466ff7f5fd 254MB
docker-database HEAD.843-cacff75 2b887b855c05 253MB
docker-database latest 2b887b855c05 253MB
docker-teamd HEAD.843-cacff75 afb0ace8c33a 272MB
docker-teamd latest afb0ace8c33a 272MB
docker-snmp-sv2 HEAD.843-cacff75 40650256060b 292MB
docker-snmp-sv2 latest 40650256060b 292MB
docker-router-advertiser HEAD.843-cacff75 132a3d62f028 250MB
docker-router-advertiser latest 132a3d62f028 250MB
docker-platform-monitor HEAD.843-cacff75 c40042c50b9e 284MB
docker-platform-monitor latest c40042c50b9e 284MB
docker-fpm-quagga HEAD.843-cacff75 42ee52e16ccb 279MB
docker-fpm-quagga latest 42ee52e16ccb 279MB

admin@sonic:~$ show platform sys
TlvInfo Header:
Id String: TlvInfo
Version: 1
Total Length: 168
TLV Name Code Len Value

Manufacture Date 0x25 19 12/28/2017 14:54:31
Label Revision 0x27 4 R02E
Platform Name 0x28 27 x86_64-accton_as7712_32x-r0
ONIE Version 0x29 13 2016.08.00.03
Manufacturer 0x2B 6 Accton
Manufacture Country 0x2C 2 TW
Diag Version 0x2E 7 0.0.5.4
Serial Number 0x23 14 771232X1752023
Part Number 0x22 13 FP3ZZ7632014A
Product Name 0x21 15 7712-32X-O-AC-F
Vendor Name 0x2D 8 Edgecore
Base MAC Address 0x24 6 3C:2C:99:2E:DB:75
MAC Addresses 0x2A 2 256
CRC-32 0xFE 4 0x8266DEE8
(checksum valid)
admin@sonic:~$

@pkmarimuthu pkmarimuthu changed the title Portchannel member is deleted if it is added as vlan member Portchannel member is deleted if it is added to vlan Mar 13, 2019
@jipanyang
Copy link
Contributor

A port can't be the member of portchannel and vlan at the same time. It has to be taken out of portchannel explicitly before being put into vlan

image

@pkmarimuthu
Copy link
Author

Basically, I wanted to create port channel and add the port channel to VLAN but don't see any option to add port channel to vlan so added member of port channel into VLAN.
How do we add port channel as member of VLAN then ?

@chaitanc
Copy link

chaitanc commented Mar 14, 2019 via email

@pkmarimuthu
Copy link
Author

First thing what I did was what you have suggested now but we could not add port channel to VLAN
as "vlan member add vid " accepts only "ethernet intf" , not "portchannel"
Because of this only, I tried to add member of Port Channel to member of VLAN. This method is also failing and this is what descripted in original report...

"admin@sonic:/etc/sonic$ sudo config vlan member add 501 Portchannel31
Invalid interface Portchannel31
Usage: config vlan member add [OPTIONS] <interface_name>
Error: 'interface_name' is None! <---
admin@sonic:/etc/sonic$

Coming back to same question: How do we add port channel as member of VLAN?/

@pkmarimuthu
Copy link
Author

You can use same as adding physical port as member of VLAN. See below For VLAN operation on normal interfaces: ========================== config vlan add 100 config vlan member add 100 Ethernet1 config vlan member add 100 Ethernet2 Creating PortChannel and added members to it: ============================== config portchannel add PortChannel001 config portchannel member add PortChannel001 Ethernet3 config portchannel member add PortChannel001 Ethernet4 Adding Portchannel to existing vlan : ======================= config vlan member add 100 PortChannel001 Regards, Chaitanya Vella

On Thu, Mar 14, 2019 at 3:48 AM pkmarimuthu @.***> wrote: Basically, I wanted to create port channel and add the port channel to VLAN but don't see any option to add port channel to vlan so added member of port channel into VLAN. How do we add port channel as member of VLAN then ? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#340 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ATC06fgL6TqNMiwtGDzs0TQSHc-04sCIks5vWXkrgaJpZM4bsZ-n .
-- Regards, Chaitanya Vella

Any update ?

@jangidrk
Copy link

Hi Mari,
could you try this?
"admin@sonic:/etc/sonic$ sudo config vlan member add 501 PortChannel31

@pkmarimuthu
Copy link
Author

PortChannel -case sensitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants