Commit ec22bc16 authored by Dmitry Lukhtionov's avatar Dmitry Lukhtionov
Browse files

Merge branch 'iskratel/voip' into 'microservices'

Update Iskratel.VOIP profile

See merge request !245
parents 075e29e9 89f44086
Pipeline #2863 passed with stage
in 44 seconds
......@@ -17,6 +17,7 @@ class Profile(BaseProfile):
name = "Iskratel.VOIP"
# Iskratel do not have "enable_super" command
# pattern_unprivileged_prompt = r"^\S+?>"
pattern_username = r"^user id :"
pattern_prompt = r"^=>"
pattern_more = r"^Press any key to continue or Esc to stop scrolling."
pattern_syntax_error = \
......
......@@ -21,11 +21,11 @@ class Script(BaseScript):
rx_iface = re.compile(
r"^(?P<ifname>\S+?\d+) information:\s*\n"
r"^\s*(?P<flags>.+)\n", re.MULTILINE)
r"^\s*(?P<flags>.+)\n", re.MULTILINE)
rx_mac = re.compile(
r"^\s*MAC address (?P<mac>\S+)", re.MULTILINE)
r"^\s*MAC address (?P<mac>\S+)", re.MULTILINE)
rx_vlan = re.compile(
r"^\s*VLAN ID\s+(?P<vlan_id>\d+)", re.MULTILINE)
r"^\s*VLAN ID\s+(?P<vlan_id>\d+)", re.MULTILINE)
rx_ip = re.compile(
r"^\s*IP address (?P<ip>\S+) \(primary\), mask (?P<mask>\S+\d+)?",
re.MULTILINE)
......
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