Skip to content

Trouble creating subnet with a vrf #93

@ishuguru

Description

@ishuguru

Describe the bug
Cant assign a subnet with a custom vrf

To Reproduce
Steps to reproduce the behavior:

  - name: "Create subnet"
    codeaffen.phpipam.subnet:
       app_id: "ansible"
       username: "ansible"
       password: "{{password}}"
       server_url: "https://ipam.internal"
       cidr: "192.168.1.0/27"
       parent: "192.168.1.0/24"
       vlan: "1337"
       vrf: FW-Linknets
       location: "DC1"
       validate_certs: no
       section: "Linknets"
       routing_domain: DC1

Expected behavior
A clear and concise description of what you expected to happen.
Have the subnet created in the correct subnets

Versions:

  • Ansible: core 2.12.3
  • phpipam-ansible-modules: 1.6.0
  • phpypam: Version: 1.0.2

Additional context
I see this error:

      }
   },
   "msg": "Can not resolve 'vrf' to an existing ID"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis issue can reproduced and was acceptedbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions