Skip to content

[GCU] Add ethernet interface tests#5257

Merged
isabelmsft merged 4 commits intosonic-net:masterfrom
isabelmsft:interface_2
Mar 17, 2022
Merged

[GCU] Add ethernet interface tests#5257
isabelmsft merged 4 commits intosonic-net:masterfrom
isabelmsft:interface_2

Conversation

@isabelmsft
Copy link
Contributor

Description of PR

Summary:
Add ethernet interface config updater tests

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

End to End test support for Generic Updater apply-patch
Update relevant ethernet interface configs

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

t0, t1

Documentation

@isabelmsft isabelmsft requested a review from a team as a code owner March 1, 2022 04:33
for line in status_data:
if "Ethernet0" in line:
ethernet0_status = line.strip()
status = re.split(r" {2,}", ethernet0_status)[field_index]
Copy link
Contributor

@qiluo-msft qiluo-msft Mar 16, 2022

Choose a reason for hiding this comment

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

split(r" {2,}"

str.split() is good enough? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"Type" property has value with more than one word (eg "QSFP+ or later with SFP-8636 or SFF-8436"), but the different properties are always separated by 2+ spaces. So regex split based on 2+ spaces in between characters

@isabelmsft isabelmsft merged commit 4af21db into sonic-net:master Mar 17, 2022
@isabelmsft
Copy link
Contributor Author

For replace lanes test, opened new issue sonic-net/sonic-utilities#2263

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.

4 participants