Good day,
I have some cases where I'd like to disconnect the VM(and some cases LXC)'s network interface, and after a while reconnect.
Okay, I can do it with 1,2,3,4<doubleCLick>5,6,7,8,[OK] clicks, (Rinse repeat to enable) but I'm looking for something I can script.
the `pvesh` method has the problem, that you need to: (a) fetch the -net interface's config, (b)find/append/change/remove the link_down=[01] option, and (c) write out the config.
The problem there is (a) & (b) as it seems the only way not to break the vlantag/bridge//MAC settings, is to follow the above
Anything I've missed?
I have some cases where I'd like to disconnect the VM(and some cases LXC)'s network interface, and after a while reconnect.
Okay, I can do it with 1,2,3,4<doubleCLick>5,6,7,8,[OK] clicks, (Rinse repeat to enable) but I'm looking for something I can script.
the `pvesh` method has the problem, that you need to: (a) fetch the -net interface's config, (b)find/append/change/remove the link_down=[01] option, and (c) write out the config.
The problem there is (a) & (b) as it seems the only way not to break the vlantag/bridge//MAC settings, is to follow the above
Anything I've missed?