netbox-community / go-netbox

The official Go API client for Netbox IPAM and DCIM service.
Other
194 stars 144 forks source link

Unable to set false for enforce_unique flag for VRF #86

Closed abhide closed 3 years ago

abhide commented 4 years ago

Seems like setting enforce_unique=false while creating VRF seems to have no effect. enforce_unique is always set to true.

Repro Steps:

        name := "test_vrf"
        rd := "test_rd"
        description "= "test description"
    vrfParams := ipam.NewIpamVrfsCreateParams().WithData(
        &models.WritableVRF{
            Description:   description,
            EnforceUnique: false,
            Name:          &name,
            Rd:            &rd,
        },

Check in the UI, enforce_unique will still be set to true.