1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

fix(interfaces): an interface a VM or a network uses is not deleted

A stopped bridge was deleted while a shut-off VM's network card or a
libvirt network named it; that VM or network then did not start.
Deleting an interface is now refused while any definition of a VM,
running or not, or a network names it, with their names.

A new bridge was offered a device a VM's macvtap card or a network
forwarding to it used; bridging it cut that VM off. Such devices are no
longer offered. A NAT or routed network's outgoing device counts as
used too.
This commit is contained in:
catborise 2026-11-12 15:53:37 +03:00
parent edc165cfc4
commit de249ebad7
7 changed files with 97 additions and 27 deletions

Binary file not shown.

View file

@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-11-12 12:50+0000\n"
"POT-Creation-Date: 2026-11-12 12:53+0000\n"
"PO-Revision-Date: 2020-11-04 12:00+0000\n"
"Last-Translator: catborise <muhammetalisag@gmail.com>, 2020\n"
"Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/tr/)\n"
@ -9789,7 +9789,7 @@ msgstr ""
"%(err)s; değişikliğin geri alınması da başarısız oldu, sunucunun "
"yapılandırması değişmiş olabilir: %(rollback_err)s"
#: vrtManager/interface.py:260
#: vrtManager/interface.py:263
#, python-format
msgid ""
"Interface %(iface)s is in use by the running VMs %(vms)s; shut them down or "
@ -9798,12 +9798,28 @@ msgstr ""
"%(iface)s arayüzünü çalışan %(vms)s VM'leri kullanıyor; önce onları kapatın "
"veya ağ kartlarını başka yere taşıyın"
#: vrtManager/interface.py:275
#: vrtManager/interface.py:281 vrtManager/virtsecrets.py:118
#, python-format
msgid "VMs %(names)s"
msgstr "%(names)s sanal makineleri"
#: vrtManager/interface.py:283
#, python-format
msgid "networks %(names)s"
msgstr "%(names)s ağları"
#: vrtManager/interface.py:285
#, python-format
msgid "Interface %(iface)s is used by %(named)s; remove it from them first"
msgstr ""
"%(iface)s arayüzü %(named)s tarafından kullanılıyor; önce onlardan kaldırın"
#: vrtManager/interface.py:296
#, python-format
msgid "Stop interface %(iface)s before deleting it"
msgstr "%(iface)s arabirimini silmeden önce durdurun"
#: vrtManager/interface.py:279
#: vrtManager/interface.py:301
#, python-format
msgid ""
"Bridge %(iface)s has addresses and several members: give the addresses to one"
@ -10251,11 +10267,6 @@ msgstr ""
msgid "Type the secret's value"
msgstr "Parolanın değerini yazın"
#: vrtManager/virtsecrets.py:118
#, python-format
msgid "VMs %(names)s"
msgstr "%(names)s sanal makineleri"
#: vrtManager/virtsecrets.py:120
#, python-format
msgid "pools %(names)s"

Binary file not shown.

View file

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-11-12 12:50+0000\n"
"POT-Creation-Date: 2026-11-12 12:53+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
@ -9217,19 +9217,34 @@ msgid ""
"changed: %(rollback_err)s"
msgstr "%(err)s;回滚更改也失败了,主机的配置可能已被更改:%(rollback_err)s"
#: vrtManager/interface.py:260
#: vrtManager/interface.py:263
#, python-format
msgid ""
"Interface %(iface)s is in use by the running VMs %(vms)s; shut them down or "
"move their network cards first"
msgstr "接口 %(iface)s 正被运行中的虚拟机 %(vms)s 使用;请先关闭它们或移走其网卡"
#: vrtManager/interface.py:275
#: vrtManager/interface.py:281 vrtManager/virtsecrets.py:118
#, python-format
msgid "VMs %(names)s"
msgstr "虚拟机 %(names)s"
#: vrtManager/interface.py:283
#, python-format
msgid "networks %(names)s"
msgstr "网络 %(names)s"
#: vrtManager/interface.py:285
#, python-format
msgid "Interface %(iface)s is used by %(named)s; remove it from them first"
msgstr "接口 %(iface)s 正被 %(named)s 使用;请先从中移除它"
#: vrtManager/interface.py:296
#, python-format
msgid "Stop interface %(iface)s before deleting it"
msgstr "删除接口 %(iface)s 前请先停止它"
#: vrtManager/interface.py:279
#: vrtManager/interface.py:301
#, python-format
msgid ""
"Bridge %(iface)s has addresses and several members: give the addresses to one"
@ -9648,11 +9663,6 @@ msgstr "Ceph 密钥是 base64 文本,即 `ceph auth get-key` 输出的内容"
msgid "Type the secret's value"
msgstr "请输入机密的值"
#: vrtManager/virtsecrets.py:118
#, python-format
msgid "VMs %(names)s"
msgstr "虚拟机 %(names)s"
#: vrtManager/virtsecrets.py:120
#, python-format
msgid "pools %(names)s"