Skip to content

Instantly share code, notes, and snippets.

@trentster
Last active December 14, 2015 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trentster/5001504 to your computer and use it in GitHub Desktop.
Save trentster/5001504 to your computer and use it in GitHub Desktop.
smartos json snippets
{
"add_disks": [
{
"boot": false,
"model": "virtio",
"size": 10240
}
]
}
{
"add_nics": [
{
"interface": "net1",
"nic_tag": "admin",
"ip": "dhcp",
"model": "e1000",
"primary": 1
}
]
}
{
"delete_disks": [
{
"path": "/dev/zvol/rdsk/zones/7c71e11b-871d-40d7-a1a8-25b6900785e3-disk1",
"model": "virtio"
}
]
}
{
"update_nics": [
{
"mac": "52:dc:ac:51:87:bf",
"gateway": "10.22.22.1",
"ip": "10.22.22.101"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment