mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
ip batch support for mstp bridges + add support for multiple globs in a
single port expression + cleanup Ticket: CM-1438 Reviewed By: Testing Done: This has left some dead code in. cleanup comming in subsequent patches. ip batch support is not complete. It currently works only for mstpctl bridges. more coming ..
This commit is contained in:
@@ -31,7 +31,6 @@ class pickling():
|
||||
except:
|
||||
raise
|
||||
|
||||
|
||||
@classmethod
|
||||
def load(cls, filename):
|
||||
with open(filename, 'r') as f:
|
||||
@@ -40,17 +39,18 @@ class pickling():
|
||||
except EOFError: break
|
||||
except: raise
|
||||
|
||||
|
||||
|
||||
class stateManager():
|
||||
|
||||
state_file = '/run/network/ifstatenew'
|
||||
|
||||
state_dir = '/var/tmp/network/'
|
||||
state_filename = 'ifstatenew'
|
||||
|
||||
def __init__(self):
|
||||
self.ifaceobjdict = OrderedDict()
|
||||
self.logger = logging.getLogger('ifupdown.' +
|
||||
self.__class__.__name__)
|
||||
if not os.path.exists(self.state_dir):
|
||||
os.mkdir(self.state_dir)
|
||||
self.state_file = self.state_dir + self.state_filename
|
||||
|
||||
def save_ifaceobj(self, ifaceobj):
|
||||
if self.ifaceobjdict.get(ifaceobj.get_name()) is None:
|
||||
|
Reference in New Issue
Block a user