From 29d0baa9446494fee73125af4546fe2c30e1c9d8 Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Thu, 17 Mar 2016 11:12:28 +0100 Subject: [PATCH] qubes/vm/mix/net: By default MAC is constant MAC address was one place, where qid was leaked to the VM. Different MAC addresses are not needed, since we do routing, not switching. --- qubes/vm/mix/net.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qubes/vm/mix/net.py b/qubes/vm/mix/net.py index c27b8fa9..6d16d4ff 100644 --- a/qubes/vm/mix/net.py +++ b/qubes/vm/mix/net.py @@ -36,11 +36,7 @@ import qubes.exc class NetVMMixin(object): mac = qubes.property('mac', type=str, - default=(lambda self: - self.template.mac if self.hvm - and hasattr(self, 'template') - and self.template is not None - else '00:16:3E:5E:6C:{:02X}'.format(self.qid)), + default='00:16:3E:5E:6C:00', ls_width=17, doc='MAC address of the NIC emulated inside VM')