-
Notifications
You must be signed in to change notification settings - Fork 3
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
Port-Group speed updates and Interface valid-speeds issue. #67 #71
Conversation
other pull request: |
pyproject.toml
Outdated
@@ -1,5 +1,5 @@ | |||
[tool.poetry] | |||
version = "1.3.15" | |||
version = "1.3.16" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rahul-1475, Version should be +1.
version = "1.3.16" | |
version = "1.3.17" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed orca_nw_lib version to 1.3.17
orca_nw_lib/portgroup.py
Outdated
@@ -81,7 +81,7 @@ def get_port_group_members(device_ip: str, group_id): | |||
op_dict.append(mem_if.__properties__) | |||
return op_dict | |||
|
|||
def get_port_group_of_interface(device_ip: str, if_name:str): | |||
def get_port_group_of_interface(device_ip: str, group_id:str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rahul-1475 , The purpose of this function is to know the port group of a given interface. So input parameters has to be interface name instead fix has to be in the body of the function where DB function get_port_group_of_if_from_db should be called.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- changed code get to use function get_port_group_of_if_from_db to port group name by interface.
- created api to get prot group name by interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a look on above comments in the files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rahul-1475 , Please have a look at merge conflicts.
Fixes #67
issue:
If port group speed is set to 25G , all interface in the port-group are updated to have the speed 25G, but the valid speeds and adv-speed set is still 1G and 10G which is not correct.
The correct behaviour would be if port-group speed is updated, after receving the port-group update via gNMI subscription make an additional gnmi get to update the valid_speeds field for interface at sonic-port:sonic-port/PORT/PORT_LIST={interface_name}.
Write test case for above.
Fixes: