utils_net: Replace dhclient with dhcpcd#4079
utils_net: Replace dhclient with dhcpcd#4079chloerh wants to merge 1 commit intoavocado-framework:masterfrom
Conversation
| cmd = ( | ||
| 'tmux -c "ip link set {1} nomaster; ip link delete {0}; pkill dhclient; ' | ||
| 'sleep 5; dhclient {1}"'.format(linux_bridge_name, iface_name) | ||
| 'tmux -c "ip link set {1} nomaster; ip link delete {0}; dhcpcd -k {1}; ' |
There was a problem hiding this comment.
”dhcpcd -k“ could be better, release process for all interfaces.
There was a problem hiding this comment.
After discussion and research, we found if without $interface specified, it needs dhcpcd.service by manually started. And "dhcpcd -k" makes the serivce stopped, so need restart it again.
Furthermore, "dhcpcd $interface" can do simultaneous operation on different interfaces without the " already running - exiting" obstacles as "dhclient" cmd.
So using dhcpcd with $interface specified is a good usage choice. Let's keep it.
Thanks haijiao.
|
Update result (1/5) type_specific.local.virtual_network.connectivity_check.bridge_interface.linux_br.default: STARTED |
ca95094 to
ce56723
Compare
Signed-off-by: Haijiao Zhao <haizhao@redhat.com>
|
@chloerh hi haijiao , could this be megred? |
Test result: