On 2/12/15 8:09 , Anil Jangity via smartos-discuss wrote:
> What’s the specific syntax for adding a network requirement?
>
> "networks": [
> {
> "name": "net0",
> "description": "public"
> }
> ]
>
> Should the “name” variable match the “nic_tag” that I would use in the vm
> JSON config file? I have two interfaces I want to require, what maps the
> requirement “name” to these two interfaces?
Hi Anil,
The nic_tag field is what causes a vnic to be created over a certain
device. Take a look at the vmadm manual page and look for the
description of the 'nics.*.nic_tag' entry. The manual page is fairly
thorough.
In this case, for vmadm, you don't use a 'networks' tag. That's
something that exists in the SDC API, but not in vmadm. Instead it'd
look something like:
"nics": [
{
"nic_tag": "admin",
"ip": "10.88.88.67",
"netmask": "255.255.255.0",
"gateway": "10.88.88.2",
"primary": true
},
<second entry for your second nic>
],
That help clarify things?
Robert
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com