Ask Your Question
2

In ml2_conf.ini file, what does it mean when the attribute “tenant_network_types” is set to multiple values?

asked 2014-10-21 07:40:35 -0600

danno gravatar image

updated 2014-10-21 08:02:29 -0600

E.g. tenant_network_types = vlan,gre,vxlan

I was told this let user to create different network types for the tenants.

However, I don’t see the option to specify the network type when creating a network.

localadmin@qa4:~/devstack$ neutron help net-create
usage: neutron net-create [-h] [-f {shell,table,value}] [-c COLUMN]
                          [--max-width <integer>] [--prefix PREFIX]
                          [--request-format {json,xml}]
                          [--tenant-id TENANT_ID] [--admin-state-down]
                          [--shared]
                          NAME

Create a network for a given tenant.

positional arguments:
  NAME                  Name of network to create.

optional arguments:
  -h, --help            show this help message and exit
  --request-format {json,xml}
                        The XML or JSON request format.
  --tenant-id TENANT_ID
                        The owner tenant ID.
  --admin-state-down    Set admin state up to false.
  --shared              Set the network as shared.

output formatters:
  output formatter options

  -f {shell,table,value}, --format {shell,table,value}
                        the output format, defaults to table
  -c COLUMN, --column COLUMN
                        specify the column(s) to include, can be repeated

table formatter:
  --max-width <integer>
                        Maximum display width, 0 to disable

shell formatter:
  a format a UNIX shell can parse (variable="value")

  --prefix PREFIX       add a prefix to all variable names

Is it possible to have VM1 of tenant 1 uses VLAN, and VM1 of tenant2 uses GRE; when both VMs reside at the same compute node?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2014-10-21 09:08:46 -0600

dbaxps gravatar image

I believe the answer is yes. Command syntax was also provided. View thread
https://ask.openstack.org/en/question...

edit flag offensive delete link more
0

answered 2014-10-21 09:05:30 -0600

vthapar gravatar image

Yes, it is possible. You use the --provider option for neutron net-create. Let us say you want VM1 of tenant1 to use VLAN 100 and VM1 of tenat2 to use GRE Tunnel ID 1000:

neutron net-create vlan-net --provider:network_type vlan --provider:segmentation-id 100
neutron net-create gre-net --provider:network_type gre --provider:segmentation-id 1000

Note that I skipped other fields in net-create like tenant-id etc. but you should already know how to use those.

edit flag offensive delete link more

Comments

I'm a little bit confused here. The variable is tenant_network_types, but in the neutron net-create command, the option is --provider:network_type. Isn't it for provider network,not tenant network?

danno gravatar imagedanno ( 2014-10-21 18:50:36 -0600 )edit

Yes, it seems confusing at first but this is the way I look at it:

tenant_network_types specifies what sort of provider networks are available for tenant to use. provider options specify which of the available types to actually use for this particular tenant network.

vthapar gravatar imagevthapar ( 2014-10-22 00:42:31 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

3 followers

Stats

Asked: 2014-10-21 07:40:35 -0600

Seen: 1,488 times

Last updated: Oct 21 '14