Skip to content

[Ansible] Fix connection keyword precedence issue#2492

Merged
lolyu merged 1 commit intosonic-net:masterfrom
lolyu:fix_connection_switch_2387
Nov 10, 2020
Merged

[Ansible] Fix connection keyword precedence issue#2492
lolyu merged 1 commit intosonic-net:masterfrom
lolyu:fix_connection_switch_2387

Conversation

@lolyu
Copy link
Collaborator

@lolyu lolyu commented Nov 9, 2020

Description of PR

The connection keyword in playbook check_sw_vm_interfaces.yml has
lower precedence than the ansible_connection variable defined in
sonic group. Use task variable to shadow its counterparts in group
variable files.

Signed-off-by: Longxiang Lyu [email protected]

Summary:
Fixes #2387

Type of change

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

Approach

What is the motivation for this PR?

As the description.

How did you do it?

Use task variable to override the ansible_connection defined in sonic group variable files.

How did you verify/test it?

Any platform specific information?

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

Documentation

The `connection` keyword in playbook `check_sw_vm_interfaces.yml` has
lower precedence than the `ansible_connection` variable defined in
`sonic` group. Use task variable to shadow its counterparts in group
variable files.

Signed-off-by: Longxiang Lyu <[email protected]>
@lolyu lolyu requested a review from a team November 9, 2020 13:37
@lolyu lolyu merged commit 5e1b912 into sonic-net:master Nov 10, 2020
@lolyu lolyu deleted the fix_connection_switch_2387 branch November 10, 2020 01:31
@chiourung
Copy link

If this patch should be applied to all which use "connection: switch"?

@lolyu
Copy link
Collaborator Author

lolyu commented Nov 10, 2020

If this patch should be applied to all which use "connection: switch"?

Hi @chiourung, the other uses of connection: switch are almost for group fanout, the variable ansible_connection defined in sonic group variable should have no effect.

kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Update sonic-swss submodule pointer to include the following:
* 782a2ef Align watermark flow with port configuration ([sonic-net#2525](sonic-net/sonic-swss#2525))
* dca78d8 [Fdbsyncd] Bug Fix for remote MAC move to local MAC and Fix for Static MAC advertisement in EVPN. ([sonic-net#2521](sonic-net/sonic-swss#2521))
* 28aa309 [fpm] Fix FpmLink to read all netlink messages from FPM message ([sonic-net#2492](sonic-net/sonic-swss#2492))

Signed-off-by: dprital <[email protected]>
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.

Ansible action plugin "apswitch" would also use connection plugin "ssh" when multi_passwd_ssh is enable.

4 participants