Request #4066
Custom attributes for network section (NIC) in VM template
Status: | Pending | Start date: | 10/16/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - | |||
Pull request: |
Description
In some cases you want to perform some special action in a VM or on the frontend / hypervisor based on some property of a network adapter. As far as I know it's currently not possible to add a custom attribute to the "NIC=[]" section. It would make life easy if a custom attribute could be added. Example use case: configure a special source based route for the specific nic if LB=TRUE is configured. Or setup special openflow rules on the vnet if OPENFLOW_SPECIAL=TRUE.
History
#1 Updated by Carlos MartÃn over 5 years ago
You can actually add any attribute inside the NIC.
Furthermore, you can even configure in oned.conf if any attribute should be restricted to be used only by oneadmin:
http://docs.opennebula.org/4.14/administration/references/oned_conf.html#restricted-attributes-configuration
Or set the attributes in the vnet template, and copy it to the NICs using that vnet:
http://docs.opennebula.org/4.14/administration/references/oned_conf.html#inherited-attributes-configuration
Can you give it a try to see if your request is already covered?
#2 Updated by Ruben S. Montero over 5 years ago
- Tracker changed from Feature to Request