Skip to content

Commit

Permalink
Merge pull request #109 from GGabriele/master
Browse files Browse the repository at this point in the history
Fixed typo
  • Loading branch information
dbarrosop committed Dec 7, 2015
2 parents 2480c46 + 2d3fdd2 commit 19dce75
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions napalm/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def __init__(self, hostname, username, password, timeout=60):
self.username = username
self.password = password
self.timeout = timeout
self.first_touch = True
self.candidate_config = None
self.candidate_config_commands = None
self.device = None

def open(self):
Expand Down Expand Up @@ -77,7 +80,6 @@ def load_merge_candidate(self, filename=None, config=None):
commands.append(line.strip())

self.candidate_config = commands
self.first_touch = False

def compare_config(self):
if self.candidate_config is not None:
Expand Down Expand Up @@ -115,10 +117,12 @@ def commit_config(self):
commands_dict[command] = "changed"
prompt = self.device.find_prompt()
index += 1
self.first_touch = False
except:
self.rollback()
self.first_touch = False

def get_lldp_neighbors(device):
def get_lldp_neighbors(self):
command = 'show lldp neighbors | begin Device ID'
lldp = {}

Expand Down

0 comments on commit 19dce75

Please sign in to comment.