---
depends_on: "base_test.yaml"
designs:
  - prefixes:
      - locations:
          - location:
              "!get:name": "Site"
        status__name: "Active"
        prefix: "192.168.0.0/24"
      - "!create_or_update:prefix": "192.168.56.0/24"
        locations:
          - location:
              "!get:name": "Site"
        status__name: "Active"

checks:
  - equal:
      - model: "nautobot.ipam.models.Prefix"
        query: {locations__name: "Site"}
        attribute: "__str__"
      - value: ["192.168.0.0/24", "192.168.56.0/24"]
