Skip to content

Incorrect response when using 'is_netmask` with inverse netmask. #548

Description

@jdrew82

Environment

  • Python version: 3.11
  • netutils version: 1.9.0

Expected Behavior

Expected to get a True response when passing "0.31.255.255" to is_netmask().

Observed Behavior

It was returned as False:

In [1]: from netutils.ip import is_netmask

In [2]: is_netmask("0.31.255.255")
Out[2]: False

Steps to Reproduce

  1. Import is_netmask() in REPL.
  2. Pass inverse/wildcard netmasks to the is_netmask().
  3. See results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions