Skip to content

Add variables for fanout creds and fix FanoutHost shutdown/no_shutdown issue#1805

Merged
yxieca merged 1 commit intosonic-net:masterfrom
wangxin:fanout-network-creds
Jun 23, 2020
Merged

Add variables for fanout creds and fix FanoutHost shutdown/no_shutdown issue#1805
yxieca merged 1 commit intosonic-net:masterfrom
wangxin:fanout-network-creds

Conversation

@wangxin
Copy link
Copy Markdown
Collaborator

@wangxin wangxin commented Jun 23, 2020

Description of PR

Summary:
Fixes # (issue)
PR #1742 introduced two sets of fanout variables as credentials for accessing
the fanout network cli and linux shell. This change explicitly define the variables
in ansible/group_vars/fanout/secrets.yml.

After this PR is merged, please remember to update the credentials in
ansible/group_vars/fanout/secrets.yml file to the actual values of your
lab configuration.

Another change in this PR is to fix the issue of getting results of
FanoutHost shutdown and no_shutdown methods. The results
are directly returned by inner function call. It's unnecessary and
wrong to get results using dictionary key self.hostname.

Type of change

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

Approach

What is the motivation for this PR?

Explicitly define variables introduced by #1742 in ansible/group_vars/fanout/secrets.yml and fix issue in FanoutHost shutdown/no_shutdown methods.

How did you do it?

  • Explicitly define variables fanout_network_user, fanout_network_password, fanout_shell_user and fanout_shell_password in ansible/group_vars/fanout/secrets.yml.
  • Directly return the inner function call result. Do not get value using dictionary key self.hostname.

How did you verify/test it?

  • Test run the methods of FanouHost
  • Test run calling ansible modules based on network_cli and linux shell.

Any platform specific information?

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

Documentation

…n issue

PR #1742 introduced two sets of fanout variables as credentials for accessing
the fanout network cli and linux shell. This change explicitly define the variables
in ansible/group_vars/fanout/secrets.yml.

After this PR is merged, please remember to update the credentials in
ansible/group_vars/fanout/secrets.yml file to the actual values of your
lab configuration.

Another change in this PR is to fix the issue of getting results of
FanoutHost shutdown and no_shutdown methods. The results
are directly returned by inner function call. It's unnecessary and
wrong to get results using dictionary `key self.hostname`.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
@wangxin wangxin requested review from tahmed-dev and yxieca June 23, 2020 04:58
@yxieca yxieca merged commit 6025ffb into sonic-net:master Jun 23, 2020
@wangxin wangxin deleted the fanout-network-creds branch June 28, 2020 10:29
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
25f7c79 [sonic-package-manager] remove make_python_identifier (sonic-net#1801)
84a7602 [sonic-package-manager] stop service explicitelly before uninstalling package (sonic-net#1805)
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