Skip to content

ip/bit_mask not supported #12

Description

@luzik

Debian supports address 192.168.123.222/24. Debinterface do not.

adapter = debinterface.Interfaces().getAdapter(wlan_iface_name)
File "/usr/local/lib/python3.5/dist-packages/debinterface/interfaces.py", line 34, in init
self.updateAdapters()
File "/usr/local/lib/python3.5/dist-packages/debinterface/interfaces.py", line 58, in updateAdapters
self._adapters = reader.parse_interfaces()
File "/usr/local/lib/python3.5/dist-packages/debinterface/interfacesReader.py", line 29, in parse_interfaces
self._read_lines()
File "/usr/local/lib/python3.5/dist-packages/debinterface/interfacesReader.py", line 70, in _read_lines
self._parse_details(line)
File "/usr/local/lib/python3.5/dist-packages/debinterface/interfacesReader.py", line 88, in _parse_details
self._adapters[self._context].setAddress(sline[1])
File "/usr/local/lib/python3.5/dist-packages/debinterface/adapter.py", line 114, in setAddress
'address', VALID_OPTS['address'], ip_address)
File "/usr/local/lib/python3.5/dist-packages/debinterface/adapterValidation.py", line 154, in validate_one
self.validate_ip(val, opt)
File "/usr/local/lib/python3.5/dist-packages/debinterface/adapterValidation.py", line 195, in validate_ip
raise ValueError(msg)
ValueError: address should be a valid IP (got : 192.168.123.222/24)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions