Commit 73aacd92 authored by Tomas Hlavacek's avatar Tomas Hlavacek

Add logout command to the pexpect session.

Issue logout when the command finished and result is written.
parent 12f5f516
......@@ -79,6 +79,8 @@ regex_sh_bgp_uni_origline_best = re.compile(REGEX_SH_BGP_UNI_ORIGLINE_BEST)
COMMAND_NAME_GRAPH4 = 'Graph - show bgp ipv4 unicast <IP subnet>'
COMMAND_NAME_GRAPH6 = 'Graph - show bgp ipv6 unicast <IP subnet>'
def cisco_parse_sh_bgp_uni(lines,prependas):
def split_ases(ases):
return str.split(ases)
......@@ -846,3 +848,5 @@ class CiscoRouter(ulgmodel.RemoteRouter):
return r
Markdown is supported
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