Ask Your Question
0

How to specify physical network when create project netwokr?

asked 2016-07-03 09:54:03 -0600

kramer gravatar image

updated 2016-07-03 10:08:47 -0600

I config my openstack so the network type of tenant network will be vlan. To do this I config the ml2_conf.ini with below content:

network_vlan_ranges = external,v100:100:199,v200:200:299

It means physical network v100 will have vlan ID 100 to 199, physical network v200 will have vlan ID 200 to 299.

But when I create network with command

neutron net-create --provider:physical_network v100  net100

It will show error said policy not allowed. Can anyone tell me how to specify a physical network name when create tenant network?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-07-03 14:20:26 -0600

james-denton gravatar image

Without the admin role, you will be unable to specify provider attributes when creating a network. Provider attributes include physical network, network type, and segmentation id. Other admin-only attributes include shared and router:external.

You will need to modify Neutron's policy.json file in order to allow non-admin users to modify provider attributes. Personally, I like to create custom roles and allow that role the ability to make changes previously limited to the admin role.

edit flag offensive delete link more

Comments

Thanks very much. It seems you just answered all my questions... And all the answer is clear&&helpful. Thanks again

kramer gravatar imagekramer ( 2016-07-03 21:21:36 -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

1 follower

Stats

Asked: 2016-07-03 09:54:03 -0600

Seen: 289 times

Last updated: Jul 03 '16