Skip to content
Snippets Groups Projects
Commit 220cf0a9 authored by Erik Reid's avatar Erik Reid
Browse files

change if condition because of warning

parent 3d7534f4
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,7 @@ def list_bgp_routes(netconf_config): ...@@ -172,7 +172,7 @@ def list_bgp_routes(netconf_config):
name = r.find('name') name = r.find('name')
description = r.find('description') description = r.find('description')
local_as = r.find('local-as') local_as = r.find('local-as')
if local_as: if local_as is not None:
local_as = local_as.find('as-number') local_as = local_as.find('as-number')
peer_as = r.find('peer-as') peer_as = r.find('peer-as')
yield { yield {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment