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

Port-Group speed updates and Interface valid-speeds issue. #67 #71

Merged
merged 4 commits into from
Jul 5, 2024

Conversation

rahul-1475
Copy link
Collaborator

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:

  • Added interface discovery on speed update.
  • Added test cases to validate. valid speeds update.

@rahul-1475
Copy link
Collaborator Author

other pull request:

STORDIS/orca_backend#42

pyproject.toml Outdated
@@ -1,5 +1,5 @@
[tool.poetry]
version = "1.3.15"
version = "1.3.16"
Copy link
Contributor

@kamalkrbh kamalkrbh Jul 3, 2024

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.

Suggested change
version = "1.3.16"
version = "1.3.17"

Copy link
Collaborator Author

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

@@ -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):
Copy link
Contributor

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.

Copy link
Collaborator Author

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

@kamalkrbh kamalkrbh self-assigned this Jul 3, 2024
Copy link
Contributor

@kamalkrbh kamalkrbh left a 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.

Copy link
Contributor

@kamalkrbh kamalkrbh left a 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.

@kamalkrbh kamalkrbh merged commit f2b3447 into STORDIS:main Jul 5, 2024
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

Successfully merging this pull request may close these issues.

Port-Group speed updates and Interface valid-speeds issue.
2 participants