File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 6060
6161napalm /fix_script.sh
6262test /unit /ios /* .conf
63-
63+ test /unit /test_devices.py
64+ test /unit /test_devices.pyc
Original file line number Diff line number Diff line change @@ -335,8 +335,8 @@ def generate_vrf_query(vrf_name):
335335 this_neighbor ['is_enabled' ] = True
336336 try :
337337 this_neighbor ['description' ] = unicode (neighbor .find ('Description' ).text )
338- except :
339- pass
338+ except AttributeError :
339+ this_neighbor [ 'description' ] = u''
340340
341341 this_neighbor ['is_enabled' ] = str (neighbor .find ('ConnectionAdminStatus' ).text ) is "1"
342342
@@ -378,7 +378,7 @@ def generate_vrf_query(vrf_name):
378378
379379 try :
380380 neighbor_ip = unicode (neighbor .find ('Naming/NeighborAddress/IPV4Address' ).text )
381- except :
381+ except AttributeError :
382382 neighbor_ip = unicode (neighbor .find ('Naming/NeighborAddress/IPV6Address' ).text )
383383
384384 neighbors [neighbor_ip ] = this_neighbor
@@ -576,8 +576,6 @@ def get_lldp_neighbors(self):
576576
577577 # init result dict
578578 lldp = {}
579-
580- # fetch sh ip bgp output
581579 sh_lldp = self .device .show_lldp_neighbors ().splitlines ()[5 :- 3 ]
582580
583581 for n in sh_lldp :
You can’t perform that action at this time.
0 commit comments