How to add dcim interface #32
yuzhaninan
started this conversation in
General
Replies: 3 comments 6 replies
-
What netbox release do you are using ? may be a new parameter of last release... |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes missing type field on https://github.com/benclaussen/NetboxPS/blob/dev/Functions/DCIM/Interfaces/Add-NetboxDCIMInterface.ps1#L18 Can you push a PR for add the field ? |
Beta Was this translation helpful? Give feedback.
2 replies
-
It will take some time |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add-NetboxDCIMInterface does not have a Type parameter that is required for creation. You have to use the construct
$TempBody = @{
$OTPNetboxSystemRecordInterface = InvokeNetboxRequest -URI "https://$ (Get-NetboxHostname)/api/dcim/interfaces/" -Body $TempBody -method:post
name = 'Network Adapter 1'
type = 'other'
device = $OTPNetboxSystemRecord.ID
}
Beta Was this translation helpful? Give feedback.
All reactions