We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 012cd8a commit 0f0610fCopy full SHA for 0f0610f
nets/8r-1c-out-band-isis/isis8d.py
@@ -249,6 +249,11 @@ def remove_nodes_from_etc_hosts(net):
249
for host in net.hosts:
250
# Remove all the nodes from /etc/hosts
251
etc_hosts.remove_all_matching(name=str(host))
252
+ # Remove entries related to the management network
253
+ # These entries are in the form *.m (e.g. r1.m, controller.m)
254
+ # therefore they are not removed during the previous loop
255
+ for host in net.hosts:
256
+ etc_hosts.remove_all_matching(name='%s.m' % host)
257
# Write changes to /etc/hosts
258
etc_hosts.write()
259
0 commit comments