Commit 408163c4 authored by Marco Mariani's avatar Marco Mariani

cygwin: netmask patch from slapos-core-format.patch

parent 684687a5
...@@ -844,7 +844,7 @@ class Interface(object): ...@@ -844,7 +844,7 @@ class Interface(object):
def addIPv4LocalAddress(self, addr=None): def addIPv4LocalAddress(self, addr=None):
"""Adds local IPv4 address in ipv4_local_network""" """Adds local IPv4 address in ipv4_local_network"""
netmask = '255.255.255.254' if sys.platform == 'cygwin' \ netmask = str(netaddr.IPNetwork(self.ipv4_local_network).netmask) if sys.platform == 'cygwin' \
else '255.255.255.255' else '255.255.255.255'
local_address_list = self.getIPv4LocalAddressList() local_address_list = self.getIPv4LocalAddressList()
if addr is None: if addr is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment