NetboxPS icon indicating copy to clipboard operation
NetboxPS copied to clipboard

Unable to assing IP to VM

Open pendurkov opened this issue 2 years ago • 2 comments

Hi community, I have an issue when i am trying to assign value bigger than Unit16 limit to Assigned_Object_Id .

This completes fine PS C:\Windows\system32> Set-NetboxIPAMAddress -Assigned_Object_Type virtualization.vminterface -Id 158617 -Assigned_Object_Id 54000

This blow up with message:

PS C:\Windows\system32> Set-NetboxIPAMAddress -Assigned_Object_Type virtualization.vminterface -Id 158617 -Assigned_Object_Id 79454 Set-NetboxIPAMAddress : Cannot process argument transformation on parameter 'Assigned_Object_Id'. Cannot convert value "79454" to type "System.UInt16". Error: "Value was either too large or too small for a UInt16." At line:1 char:103

  • ... _Type virtualization.vminterface -Id 158617 -Assigned_Object_Id 79454
  •                                                                 ~~~~~
    
    • CategoryInfo : InvalidData: (:) [Set-NetboxIPAMAddress], ParameterBindingArgumentTransformationExceptio n
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-NetboxIPAMAddress

I tried to exam the function itself but all is unit64. Any suggestions would be highly appreciated.

pendurkov avatar Nov 09 '23 10:11 pendurkov

Can you please ensure you are running the latest version 1.8.4?

benclaussen1 avatar Nov 09 '23 13:11 benclaussen1

Big Ben, thanks a lot! That works fantastic! That new version from last days is impeccable.

pendurkov avatar Nov 10 '23 14:11 pendurkov