Skip to content

[bug] Multiple SubnetDivisionRule of different sizes #864

@pandafy

Description

@pandafy

Steps to replicate

  1. Ensure you have at least one device for the default organization in OpenWISP
  2. Create a subnet 10.0.0.0/16
  3. Add a SubnetDivisionRule as follows:
    Label: DEV1
    Type: Device
    Organization: Default
    Size of subnet: 31
    Number of subnet: 1
    Number of IPs: 1
  4. Ensure that subnets and IPs are created for the exsiting device
  5. Add another SubnetDivisionRule as follows:
    Label: DEV2
    Type: Device
    Organization: Default
    Size of subnet: 29
    Number of subnet: 1
    Number of IPs : 8

Expected Outcome

IPs and Subnets are provisioned for the device according to the DEV2 subnet divison rule.

Actual Outcome

Only IPs and Subnets are created for DEV1

Note: Both the subnet division rules are created for the same subnet

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To do (Python & Django)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions