From 3b8413522e8fd33f0dcbb55f8a33c650b3651ba0 Mon Sep 17 00:00:00 2001 From: bee26 Date: Wed, 27 Apr 2022 08:39:54 +0000 Subject: [PATCH] Merge branch 'snr_prompt' into 'master' Fix NAG.SNR profile See merge request noc/noc!6259 (cherry picked from commit 737c5772642df786693a39f900793a2cbe27eae9) a8d4f25c Fix NAG.SNR profile --- sa/profiles/NAG/SNR/profile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sa/profiles/NAG/SNR/profile.py b/sa/profiles/NAG/SNR/profile.py index 3cdfcc69b0..1f12c9e880 100644 --- a/sa/profiles/NAG/SNR/profile.py +++ b/sa/profiles/NAG/SNR/profile.py @@ -2,7 +2,7 @@ # Vendor: NAG # OS: SNR # --------------------------------------------------------------------- -# Copyright (C) 2007-2020 The NOC Project +# Copyright (C) 2007-2022 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- @@ -38,6 +38,8 @@ class Profile(BaseProfile): match = self.rx_pager.search(c) if match: script.cli("\x01\x0bterminal length 0", ignore_errors=True) + elif "% Unrecognized command" in c: # Return to normal prompt + script.cli("", ignore_errors=True) INTERFACE_TYPES = { "Ethe": "physical", # Ethernet -- GitLab