Commit 02c017a8 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'noc-981' into 'master'

noc/noc#981 Fix Cisco.ASA pattern_username match to Last login message.

See merge request noc/noc!2004
parents c8fe4a5e 68f9d241
......@@ -7,8 +7,8 @@
# Copyright (C) 2007-2009 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
"""
"""
# NOC modules
from noc.core.profile.base import BaseProfile
......@@ -17,6 +17,7 @@ class Profile(BaseProfile):
pattern_more = "^<--- More --->"
pattern_unprivileged_prompt = r"^\S+?>"
pattern_syntax_error = r"% Invalid input detected at|% Ambiguous command:|% Incomplete command."
pattern_username = r"^\s*([Uu]ser ?[Nn]ame|[Ll]ogin): ?" # Fix for exclude "...Last login: 10:48:33 MS..." match
command_super = "enable"
command_enter_config = "configure terminal"
command_leave_config = "end"
......
Supports Markdown
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