Ask Your Question
1

api networks extnet

asked 2018-11-15 14:31:58 -0600

sgalfonso gravatar image

Hi, I need to create a public network. Is there a way using php-opencloud?

$network = $networkingService->createNetwork(array( 'name' => 'My private backend network' ));

Where is the option to specify it as 'extnet` (flat) because it always creates it as vxlan...

or how could I do it directly?

Best regards to all.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2018-11-16 07:27:39 -0600

sgalfonso gravatar image

Thank you very much for the response, test but doesn't work... it continues to assign it as vxlan:

| Field | Value | +---------------------------+--------------------------------------+ | admin_state_up | DOWN | | availability_zone_hints | | | availability_zones | nova | | created_at | 2018-11-16T13:15:20Z | | description | | | dns_domain | None | | id | 64d08e6c-15ab-4196-96c4-d51d0e182912 | | ipv4_address_scope | None | | ipv6_address_scope | None | | is_default | None | | is_vlan_transparent | None | | mtu | 1450 | | name | Public Network ver. 4 | | port_security_enabled | True | | project_id | 285ccc4d2e2e43daa0424f617797618d | | provider:network_type | vxlan | | provider:physical_network | None | | provider:segmentation_id | 54 | | qos_policy_id | None | | revision_number | 3 | | router:external | Internal | | segments | None | | shared | True | | status | ACTIVE | | subnets | 8ad481fe-f6d8-405b-b165-df69e5a9e6ac | | tags | | | updated_at | 2018-11-16T13:15:21Z | +---------------------------+--------------------------------------+

It seems it ignores keys/values providerNetworkType or providerPhysicalNetwork...

edit flag offensive delete link more
0

answered 2018-11-16 00:45:55 -0600

Try this as an admin user,

$network = $networkingService

$networkingService->createNetwork(array(
    'name'     => 'My private backend network',
    'project'  => '{project name}',
    'Provider Network Type' => 'flat',
    'keypair'  => 'main_key'
));
edit flag offensive delete link more

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: 2018-11-15 14:31:58 -0600

Seen: 37 times

Last updated: Nov 16 '18