accessed the mac class with the correct function

This commit is contained in:
Dominique Roux 2020-01-29 17:04:59 +01:00
parent cbcaf63650
commit 5969d3b13d

View file

@ -82,7 +82,7 @@ class VM(object):
self.mac=MAC(self.config) self.mac=MAC(self.config)
self.mac.create() self.mac.create()
self.vm['mac'] = self.mac self.vm['mac'] = self.mac
self.vm['ifname'] = "uc{}".format(self.mac.to_str_format()) self.vm['ifname'] = "uc{}".format(self.mac.__repr__())
# FIXME: TODO: turn this into a string and THEN # FIXME: TODO: turn this into a string and THEN
# .split() it later -- easier for using .format() # .split() it later -- easier for using .format()