STORDIS / orca_nw_lib

gNMI python package for SONiC switch discovery and management.
Apache License 2.0
2 stars 3 forks source link

Update path for Port Channel configuration. #48

Closed kamalkrbh closed 1 month ago

kamalkrbh commented 7 months ago

In SONiC 4.2.0,

Using the path

https://{device_ip_list[0]}/restconf/data/sonic-portchannel:sonic-portchannel/PORTCHANNEL_MEMBER/PORTCHANNEL_MEMBER_LIST with the payload

req_body = { "sonic-portchannel:PORTCHANNEL_MEMBER_LIST": [ {"name": "PortChannel101", "ifname": "Ethernet56"}, {"name": "PortChannel101", "ifname": "Ethernet76"}, ] } It responds with 204 Http code. but only one member is added at the end. On further analysis, while adding portchannel member via CLI, I see that one of the interfaces is a VLAN member and can't be added to the PortChannel. REST or gNMI call should also fail in such case but they show a incorrect successful status.

kamalkrbh commented 7 months ago

Use the correct path recorded in log file.

rahul-1475 commented 2 months ago
kamalkrbh commented 2 months ago

@rahul-1475 Port channel notebook has been updated with the following cells. Add/Remove/Get Trunk Member VLAN Add/Remove/Get Access Member VLAN Please refer.

kamalkrbh commented 2 months ago

There are following observations :

rahul-1475 commented 2 months ago

orca_backend pr: https://github.com/STORDIS/orca_backend/pull/54 orca_nw_lib pr: https://github.com/STORDIS/orca_nw_lib/pull/85

kamalkrbh commented 1 month ago

@rahul-1475 , Some chages are requested on the PRs for backend.