Commit 49f6852f authored by Tomas Hlavacek's avatar Tomas Hlavacek

Fix corner case in sh bgp ipv4/6 uni neig listing.

Fix condition when the CiscoCommandShowBgpIPv46Select.decorateResult()
hits the end of the result array/file and the e index falls beyond the
end which causes exception.
parent 4bde9f22
......@@ -521,6 +521,8 @@ class CiscoCommandShowBgpIPv46Select(ulgmodel.TextCommand):
s=s-1
e=s+count
if(e >= len(lines)):
e=len(lines)-1
while(r.match(lines[e]) and e < (len(lines)-1)):
e=e+1
......
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