Commit 737c5772 authored by bee26's avatar bee26
Browse files

Merge branch 'snr_prompt' into 'master'

Fix NAG.SNR profile

See merge request noc/noc!6259
parents a092d2d0 a8d4f25c
......@@ -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
......
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