NetworkManager ignores teaming device options such as validate_active or validate_inactive
Issue
When a teaming device is added via nmcli with options like validate_active=true or validate_inactive=true the resulting teamd binary is spawned by the nmcli without them.
#nmcli connection add type team con-name team0 ifname teamdev0 config '{"device": "teamdev0","link_watch": {"interval": 1000,"missed_max": 1,"name": "arp_ping","send_always": false,"source_host": "XXX.XXX.XXX.XXX","target_host": "XXX.XXX.XXX.XXX","validate_active": true,"validate_inactive": true},"ports": {"eth1": {"prio": 100,"sticky": true},"eth2": {"prio": 50}},"runner": {"name": "activebackup"}}' ip4 XXX.XXX.XXX.XXX
#nmcli connection add type team-slave con-name team0_eth1 ifname eth1 master teamdev0
#nmcli connection add type team-slave con-name team0_em2 ifname eth2 master teamdev0
# nmcli connection
NAME UUID TYPE DEVICE
team0 549890f1-9fb8-4b40-8cc0-55d631ea8c04 team teamdev0
team0_eth1 13503cf7-0a05-4ab0-aac6-84ea99da6527 ethernet eth1
team0_eth2 9518432c-7320-4327-8cf8-a13ddee6285b ethernet eth2
# cat /etc/sysconfig/network-scripts/ifcfg-team0
TEAM_CONFIG="{\"device\": \"teamdev0\", \"link_watch\": {\"name\": \"arp_ping\", \"interval\": 1000, \"missed_max\": 1, \"target_host\": \"XXX.XXX.XXX.XXX\", \"source_host\": \"XXX.XXX.XXX.XXX\", \"validate_active\": \"true\", \"validate_inactive\": \"true\"}, \"ports\": {\"eth2\": {\"prio\": 100, \"sticky\": true}, \"eth1\": {\"prio\": 50}}, \"runner\": {\"name\": \"activebackup\"}}"
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
IPADDR=XXX.XXX.XXX.XXX
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=team0
DEVICE=teamdev0
ONBOOT=yes
DEVICETYPE=Team
# ps -ef | grep teamd
root 24258 1841 0 09:42 ? 00:00:01 /usr/bin/teamd -o -n -U -D -N -t teamdev0 -c {"device": "teamdev0", "link_watch": {"name": "arp_ping", "interval": 1000, "missed_max": 1, "target_host": "XXX.XXX.XXX.XXX", "source_host": "XXX.XXX.XXX.XXX"}, "ports": {"eth2": {"prio": 100, "sticky": true}, "eth1": {"prio": 50}}, "runner": {"name": "activebackup"}}
Environment
NetworkManager-1.12.0-10.el7_6.x86_64 and higher
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.