|
|
@ -91,6 +91,7 @@ class EosConfigMixin(object):
|
|
|
|
self.abort_config(session)
|
|
|
|
self.abort_config(session)
|
|
|
|
diff = None
|
|
|
|
diff = None
|
|
|
|
raise
|
|
|
|
raise
|
|
|
|
|
|
|
|
|
|
|
|
return diff
|
|
|
|
return diff
|
|
|
|
|
|
|
|
|
|
|
|
def save_config(self):
|
|
|
|
def save_config(self):
|
|
|
@ -103,9 +104,12 @@ class EosConfigMixin(object):
|
|
|
|
|
|
|
|
|
|
|
|
if isinstance(self, Eapi):
|
|
|
|
if isinstance(self, Eapi):
|
|
|
|
response = self.execute(commands, output='text')
|
|
|
|
response = self.execute(commands, output='text')
|
|
|
|
|
|
|
|
response[-2] = response[-2].get('output').strip()
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
response = self.execute(commands)
|
|
|
|
response = self.execute(commands)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return response[-2]
|
|
|
|
return response[-2]
|
|
|
|
|
|
|
|
|
|
|
|
def commit_config(self, session):
|
|
|
|
def commit_config(self, session):
|
|
|
|