TritonDataCenter / smartos-live

For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.57k stars 245 forks source link

doing a vmadm update_nics to add forgotten vlan tag? #909

Closed liv3010m closed 4 years ago

liv3010m commented 4 years ago

Hi there!

I don't know if this is an expected behavior or not, what I'm trying to do is to add VLAN tag information after a zone was created without one by issuing a vmadm update_nics with something like this:

{
    "update_nics": [
        {
            "mac": "52:9e:fd:c9:17:bc",
            "vlan_id:": 1
        }
    ]
}

vmadm update reports "Successfully updated VM" [UUIDnumber] but doing a vmadm get [UUIDnumber] doesn't show any VLAN tag.

I ask because if I, for example, try to add another field like lets say ip spoofing it works

{
    "update_nics": [
        {
            "mac": "52:9e:fd:c9:17:bc",
            "allow_ip_spoofing": false
        }
    ]
}

And vmadm get [UUIDnumber] shows the field added to the nic.

Best, Olivia

liv3010m commented 4 years ago

Please close this, I didn't notice that I had an additional colon between vlan_id and the closing quotes. ;)