mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
networkinterfaces: make auto alias of allow-auto
The commit make the auto_ifaces container pointing to the allow_classes['auto'] list. (since it's a mutable object, we get the same instance)
This commit is contained in:
@ -53,7 +53,6 @@ class networkInterfaces():
|
|||||||
Raises:
|
Raises:
|
||||||
AttributeError, KeyError """
|
AttributeError, KeyError """
|
||||||
|
|
||||||
self.auto_ifaces = []
|
|
||||||
self.callbacks = {}
|
self.callbacks = {}
|
||||||
self.auto_all = False
|
self.auto_all = False
|
||||||
self.raw = raw
|
self.raw = raw
|
||||||
@ -62,7 +61,9 @@ class networkInterfaces():
|
|||||||
self.callbacks = {'iface_found' : None,
|
self.callbacks = {'iface_found' : None,
|
||||||
'validateifaceattr' : None,
|
'validateifaceattr' : None,
|
||||||
'validateifaceobj' : None}
|
'validateifaceobj' : None}
|
||||||
self.allow_classes = {}
|
self.allow_classes = {'auto': []}
|
||||||
|
# auto is only an aliases of allow-auto
|
||||||
|
self.auto_ifaces = self.allow_classes['auto']
|
||||||
self.interfacesfile = interfacesfile
|
self.interfacesfile = interfacesfile
|
||||||
self.interfacesfileiobuf = interfacesfileiobuf
|
self.interfacesfileiobuf = interfacesfileiobuf
|
||||||
self.interfacesfileformat = interfacesfileformat
|
self.interfacesfileformat = interfacesfileformat
|
||||||
|
Reference in New Issue
Block a user