From f9d7bd0aa961f45983c497f8d706edf308950eab Mon Sep 17 00:00:00 2001 From: Kirk Byers Date: Wed, 11 Jan 2017 17:59:39 -0800 Subject: [PATCH] Fix iteritems for py3 --- napalm_fortios/fortios.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napalm_fortios/fortios.py b/napalm_fortios/fortios.py index 968278d..9787095 100644 --- a/napalm_fortios/fortios.py +++ b/napalm_fortios/fortios.py @@ -328,7 +328,7 @@ def get_bgp_neighbors(self): self.device.load_config('router bgp') - for neighbor, parameters in neighbors.iteritems(): + for neighbor, parameters in neighbors.items(): logger.debug('NEW PEER') neigh_conf = self.device.running_config['router bgp']['neighbor']['{}'.format(neighbor)] @@ -358,7 +358,7 @@ def get_bgp_neighbors(self): x = detail_output.index(' for address family: {} unicast'.format(family)) block = detail_output[x:] - for term, fortiname in terms.iteritems(): + for term, fortiname in terms.items(): text = self._search_line_in_lines('%s prefixes' % fortiname, block) t = [int(s) for s in text.split() if s.isdigit()][0] neighbor_dict['address_family'][family][term] = t