Added Virtual DNS display to VM settings

fixes QubesOS/qubes-issues#5050
This commit is contained in:
Marta Marczykowska-Górecka 2019-05-29 22:24:24 +02:00
parent 492b8705b6
commit 7e17d23003
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B
2 changed files with 16 additions and 0 deletions

View File

@ -442,6 +442,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
self.ip_label.setText(self.vm.ip or "none")
self.netmask_label.setText(self.vm.visible_netmask or "none")
self.gateway_label.setText(self.vm.visible_gateway or "none")
dns_list = getattr(self.vm, 'dns', ['10.139.1.1', '10.139.1.2'])
self.dns_label.setText(", ".join(dns_list))
else:
self.networking_groupbox.setEnabled(False)

View File

@ -261,6 +261,20 @@
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_23">
<property name="text">
<string>Virtual DNS:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="dns_label">
<property name="text">
<string>---</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>