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

Add space before extra arguments for renumber_topo and restart_ptf #3558

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

wangxin
Copy link
Collaborator

@wangxin wangxin commented May 31, 2021

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?

In the testbed-cli.sh tool, extra arguments can be passed to the playbook for
renumber_topo and restart_ptf. However, there is no whitespace before the
extra arguments $@. Then the extra arguments will be part of value of ansible
variable ptf_ipv6. This command works:
./testbed-cli.sh restart-ptf <testbed_name> password.txt

This command will fail:
./testbed-cli.sh restart-ptf <testbed_name> password.txt -vv

The last "-vv" will be appended to value of ansible variable ptf_ipv6.

How did you do it?

The fix is just to add a white space before $@.

How did you verify/test it?

Any platform specific information?

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

Documentation

In the testbed-cli.sh tool, extra arguments can be passed to the playbook for
renumber_topo and restart_ptf. However, there is no whitespace before the
extra arguments `$@`. Then the extra arguments will be part of value of ansible
variable `ptf_ipv6`. This command works:
  ./testbed-cli.sh restart-ptf <testbed_name> password.txt

  This command will fail:
  ./testbed-cli.sh restart-ptf <testbed_name> password.txt -vv

The last "-vv" will be appended to value of ansible variable `ptf_ipv6`.

The fix is just to add a white space before `$@`.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
@wangxin wangxin requested a review from lolyu May 31, 2021 14:10
@wangxin wangxin requested a review from a team as a code owner May 31, 2021 14:10
@wangxin
Copy link
Collaborator Author

wangxin commented Jun 1, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@wangxin wangxin merged commit 79b9e47 into sonic-net:master Jun 1, 2021
@wangxin wangxin deleted the extra-args branch September 9, 2021 08:08
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
…onic-net#3558)

In the testbed-cli.sh tool, extra arguments can be passed to the playbook for
renumber_topo and restart_ptf. However, there is no whitespace before the
extra arguments `$@`. Then the extra arguments will be part of value of ansible
variable `ptf_ipv6`. This command works:
  ./testbed-cli.sh restart-ptf <testbed_name> password.txt

  This command will fail:
  ./testbed-cli.sh restart-ptf <testbed_name> password.txt -vv

The last "-vv" will be appended to value of ansible variable `ptf_ipv6`.

The fix is just to add a white space before `$@`.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
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.

2 participants