docs/doc/source/vnf_integration/use-a-vif-model-when-creating-ports.rst
Keane Lim 21b11b47d6 OpenStack VNF Integration User Tasks
Completed review comments
Minor abbreviation fix
Moved topics into its own VNF Integration section
Fixed abbreviations
Re-organized Kubernetes topics

Change-Id: I8940d3572b789990d3b5f2d201f8ec8a46ce2943
Signed-off-by: Keane Lim <keane.lim@windriver.com>
2021-03-23 11:10:42 -04:00

1.8 KiB

Using a VIF Model when Creating Ports

For any non Virtio , you must create a port beforehand using the VIF model.

For example, to set up two , the heat template's binding:profile would contain definitions similar to the following.

port_tenant_net_tenant1_avp:
   type: OS::Neutron::Port
   properties:
      name: heat_port_port-tenant-net-tenant1-avp
      network: tenant1-net1
      value_specs: {"binding:profile": {"vif_model":"avp"}}

port_internal_net_tenant1_avp:
   type: OS::Neutron::Port
   properties:
      name: heat_port_port-internal-net-tenant1-avp
      network: internal0-net1
      value_specs: {"binding:profile": {"vif_model":"avp"}}

tenant1_avp:
   type: OS::Nova::Server
   properties:
     name: tenant1-avp4
     flavor: small
     block_device_mapping:
     - {device_name: vda, volume_id: { get_resource: vol_tenant1_avp } }
     networks:
     - {network: tenant1-mgmt-net}
     - {port: { get_resource: port_tenant_net_tenant1_avp } }
     - {port: { get_resource: port_internal_net_tenant1_avp } }

Alternatively, you can use the command line. For example:

~(keystone_admin)$ openstack port create --network ${NETWORKID} --binding-profile vif_model=${VIF_MODEL} ${NAME}

For more information about port related commands, see https://docs.openstack.org/python-openstackclient/train/cli/command-objects/ port.html <https://docs.openstack.org/python-openstackclient/train/cli/command-objects/ port.html>__.