2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-27 19:37:57 +00:00

Ignore current channel if current channel is disabled

A fluke can cause current channel to be 1 when we are wanting 8.
This commit is contained in:
Jarrod Johnson 2019-09-06 13:31:14 -04:00
parent 8e071a2568
commit de8292f6dd

View File

@ -149,6 +149,9 @@ class NodeHandler(generic.NodeHandler):
raise exc.NotImplementedException('IPv6 remote config TODO')
currnet = wc.grab_json_response('/api/settings/network')
for net in currnet:
if net['channel_number'] == self.channel and net['lan_enable'] == 0:
# ignore false indication and switch to 8 (dedicated)
self.channel = 8
if net['channel_number'] == self.channel:
# we have found the interface to potentially manipulate
if net['ipv4_address'] != newip: