Closed 18660155632 closed 3 years ago
Files identified in the description: None
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @alcamie101 @nerzhul click here for bot help
As far as I can see the mode is not used for configuring teaming devices. Red Hat documentation show that json format can be used to specify the configuration for the team.
I am considering implementing something like the sample below and then use team_config
in json format in nmcli.py
. Would you add checking for team_config
parameters or just let nmcli validate it? What do you think?
- name: Add an Team connection with static IP configuration
community.general.nmcli:
conn_name: team2
ifname: team2
type: team
ip4: 192.0.2.100/24
gw4: 192.0.2.1
state: present
autoconnect: yes
team_config:
runner:
name: activebackup
hwaddr_policy: by_active
link_watch:
name: ethtool
@felixfontein what are your thoughts?
@omula I personally prefer strict validation, but I know that others do not want that. Since I'm not maintaining and using that module, my preferences are not that important :)
Summary
I want to create a connection of type team, mode is active-backup. But the setting does not take effect
Issue Type
Bug Report
Component Name
nmcli
Ansible Version
Configuration
OS / Environment
No response
Steps To Reproduce
Expected Results
No response
Actual Results