ALT Linux Bugzilla
– Attachment 6463 Details for
Bug 31668
Не перезапускает контейнер, если в контейнере в NETDEV есть 802.1q интерфейс
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
безусловный ifup для интерфейсов из NETDEV
vzdump-vlan-netdev-up.diff (text/plain), 850 bytes, created by
Sergey Y. Afonin
on 2015-12-28 19:07:39 MSK
(
hide
)
Description:
безусловный ifup для интерфейсов из NETDEV
Filename:
MIME Type:
Creator:
Sergey Y. Afonin
Created:
2015-12-28 19:07:39 MSK
Size:
850 bytes
patch
obsolete
>--- vzdump.bak 2010-11-25 04:44:49.000000000 +0300 >+++ vzdump 2015-12-28 17:05:07.317340049 +0400 >@@ -717,6 +717,19 @@ > debugmsg ('info', "final sync $dir to $tmpdir", \*LOG); > run_command (\*LOG, $synccmd); > >+ # attempt to up NETDEVs (802.1q interfaces can be exists) >+ # https://forum.openvz.org/index.php?t=msg&th=9865&goto=43129&S=86b58eb6f1cf262d5dd563aabe3df093#msg_43129 >+ my $conffile = "$vzconf->{confdir}/${opt_vpsid}.conf"; >+ my @ifaces_cfg=`cat $conffile | grep "^NETDEV="`; >+ foreach my $iface_str (@ifaces_cfg) { >+ $iface_str =~ s/NETDEV=//; >+ $iface_str =~ s/\"//g; >+ my @ifaces = split /\s/, $iface_str; >+ foreach my $iface (@ifaces) { >+ system ("ifup $iface"); >+ } >+ } >+ > if ($stopve eq 'stop') { > debugmsg ('info', "restarting vps", \*LOG); > run_command (\*LOG, "$vzctl start $vpsid");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31668
: 6463