Skip to content

Commit a3d30eb

Browse files
committed
test/infamy: minor, whitespace only
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 99c87d0 commit a3d30eb

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

test/infamy/env.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ def get_password(self, node):
117117
return self.ptop.get_password(node)
118118

119119
def is_reachable(self, node, port):
120-
ip = neigh.ll6ping(port)
121-
if not ip:
122-
return False
120+
ip = neigh.ll6ping(port)
121+
if not ip:
122+
return False
123123

124-
return util.is_reachable(ip, self, self.get_password(node))
124+
return util.is_reachable(ip, self, self.get_password(node))
125125

126-
def attach(self, node, port="mgmt", protocol=None, test_reset=True, username = None, password = None):
126+
def attach(self, node, port="mgmt", protocol=None, test_reset=True, username=None, password=None):
127127
"""Attach to node on port using protocol."""
128128

129129
name = node
@@ -133,7 +133,6 @@ def attach(self, node, port="mgmt", protocol=None, test_reset=True, username = N
133133
else:
134134
mapping = None
135135

136-
137136
# Precedence:
138137
# 1. Caller specifies `protocol`
139138
# 2. User specifies `-t` when executing test
@@ -159,8 +158,10 @@ def attach(self, node, port="mgmt", protocol=None, test_reset=True, username = N
159158

160159
if protocol == "netconf":
161160
dev = netconf.Device(name,
162-
location=netconf.Location(cport, mgmtip,
163-
username,password),
161+
location=netconf.Location(cport,
162+
mgmtip,
163+
username,
164+
password),
164165
mapping=mapping,
165166
yangdir=self.args.yangdir)
166167
if test_reset:

0 commit comments

Comments
 (0)