asa config check
This commit is contained in:
parent
a9492bfbe7
commit
ded6d274c6
@ -365,6 +365,11 @@ class AsaConfig(Config):
|
||||
self.config = '\n'.join(shrun)
|
||||
self.extra['iproute']['content'] = '\n'.join(iproute)
|
||||
|
||||
def is_bad_config(self):
|
||||
super().is_bad_config()
|
||||
if not re.search(': end', self.config):
|
||||
return "does not contain ': end'."
|
||||
return False
|
||||
|
||||
def setup_logging(hostname, logfile, loglevel):
|
||||
handler = logging.FileHandler(logfile, 'a')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user