Add backward compatibility

parent f5b7a523
...@@ -1029,6 +1029,11 @@ class Config: ...@@ -1029,6 +1029,11 @@ class Config:
if getattr(self, parameter, None) is None: if getattr(self, parameter, None) is None:
setattr(self, parameter, None) setattr(self, parameter, None)
# Backward compatibility
if not getattr(self, "interface_name", None) \
and getattr(self, "bridge_name", None):
setattr(self, "interface_name", self.bridge_name)
# Set defaults lately # Set defaults lately
if self.alter_network is None: if self.alter_network is None:
self.alter_network = 'True' self.alter_network = 'True'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment