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):
if(e >= len(lines)):
while(r.match(lines[e]) and e < (len(lines)-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