netdev-linux: maintain original device's state
It is important to maintain the original state when
the device already exists in the system.
@@ -851,6 +851,7 @@ netdev_linux_construct_tap(struct netdev *netdev_)
}
/* Create tap device. */
+ get_flags(&netdev->up, &netdev->ifi_flags);
ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
ovs_strzcpy(ifr.ifr_name, name, sizeof ifr.ifr_name);
if (ioctl(netdev->tap_fd, TUNSETIFF, &ifr) == -1) {
