Actually, I am not talking about creating the VM config. I am asking about the “requirements” attribute that is documented in the manifest creation page here: https://wiki.smartos.org/display/DOC/Managing+Images
Was wondering if the “name” field maps to the nic_tag. > On Feb 12, 2015, at 8:21 AM, Robert Mustacchi via smartos-discuss > <[email protected]> wrote: > > 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/22338985-90400dfa > Modify Your Subscription: https://www.listbox.com/member/?& > Powered by Listbox: http://www.listbox.com ------------------------------------------- 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
