Skip to content

Commit

Permalink
data_source nb_interface additional field interface-type
Browse files Browse the repository at this point in the history
  • Loading branch information
tv2us committed Sep 10, 2024
1 parent 659d65b commit 7ae116c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions netbox/data_source_netbox_interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ func dataSourceNetboxInterfaces() *schema.Resource {
Type: schema.TypeInt,
Computed: true,
},
"type": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
Expand Down Expand Up @@ -233,6 +237,10 @@ func dataSourceNetboxInterfaceRead(d *schema.ResourceData, m interface{}) error

mapping["vm_id"] = v.VirtualMachine.ID

if v.Type != nil {

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / test

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / lint

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / lint

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.1)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.2)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.3)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.5)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.6)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.7)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.8)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.9)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 240 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.10)

v.Type undefined (type *models.VMInterface has no field or method Type)
mapping["type"] = *v.Type.Value

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / test

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / lint

v.Type undefined (type *models.VMInterface has no field or method Type)) (typecheck)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / lint

v.Type undefined (type *models.VMInterface has no field or method Type) (typecheck)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.1)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.2)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.3)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.5)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.6)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.7)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.8)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.9)

v.Type undefined (type *models.VMInterface has no field or method Type)

Check failure on line 241 in netbox/data_source_netbox_interfaces.go

View workflow job for this annotation

GitHub Actions / testacc (v4.0.10)

v.Type undefined (type *models.VMInterface has no field or method Type)
}

s = append(s, mapping)
}

Expand Down

0 comments on commit 7ae116c

Please sign in to comment.