Skip to content

[ixia/Keysight] Initialized user & pswd variables#1802

Closed
abhijit-dhar wants to merge 1 commit intosonic-net:masterfrom
abhijit-dhar:master
Closed

[ixia/Keysight] Initialized user & pswd variables#1802
abhijit-dhar wants to merge 1 commit intosonic-net:masterfrom
abhijit-dhar:master

Conversation

@abhijit-dhar
Copy link
Copy Markdown
Contributor

@abhijit-dhar abhijit-dhar commented Jun 22, 2020

[ixia/Keysight] Note that if these variables 'user' and 'pswd' are not initialized, they will encounter an exception after the following code fragment, when control does not enter if/else part (reason variable not defined).
if os_type == "eos":
:
elif os_type == "onyx":
:
I got this exception while adopting the fanouthosts fixture. Ixia chassis do not require user / pswd.

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Approach

What is the motivation for this PR?

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?

Documentation

[ixia/Keysight] Note that  if these variables 'user' and 'pswd' are not initialized, they will encounter an exception after the following code fragment, when control does not enter if/else part (reason variable not defined). 
if os_type == "eos":
    :
elif os_type == "onyx":
    :
I got this exception while adopting the fanouthosts fixture. Ixia chassis do not require user / pswd.
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jun 22, 2020

This pull request introduces 2 alerts when merging cf6a2cc into 8e946c6 - view on LGTM.com

new alerts:

  • 2 for Unused local variable

@abhijit-dhar
Copy link
Copy Markdown
Contributor Author

My file was older one. I saw a lot of changes has been made in this file, including this fixture

kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
[vlanmgr]Fix for STATE_DB port check logic (sonic-net#1980)

Update sonic-utilities submodule

434c2fb [sonic-package-manager] update FEATURE entries on upgrade (sonic-net#1803)
d1ca400 [sonic-package-manager] code style fixes and enhancements (sonic-net#1802)
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.

1 participant