Ask Your Question
0

python-openstackclient and VLAN trunking for a VM

asked 2019-01-30 05:33:02 -0500

AndyW gravatar image

Hi I'm running python-openstackclient 3.16.0 (so virtually the latest I believe) on a devstack rocky installation (neutron + OVS) :

$ openstack --version
openstack 3.16.0

If I see some of jim dentons excellent blogs on vlan trunking (from 2016) he was using the following commands as part of the procedure of creating a trunk (after creating parent ports and child ports on 2 networks)

openstack network trunk create --parent-port <parent port> --subport port=<child port>,segmentation-type=<network type>,segmentation-id=<seg id> <trunk name>

in my openstack client these command options (..trunk create) are not available , any idea why they've disappeared in 2018 (or maybe never appeared yet)? the only network create command associated with the business of trunking is the --transparent-vlan flag , but I assume this is used when creating a network initially.

Do I have to revert to python-neutronclient ? (haven't checked it out yet , but was thinking the openstack client is near complete by now)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-02-01 08:19:23 -0500

AndyW gravatar image

updated 2019-02-01 08:22:24 -0500

answering own question

now on python-openstackclient 3.17.0 (but unsure if that's the difference)

The network trunk commands are part of the OSC extension to networking , google openstack.cli.extension

not sure if this command activates the extensions: openstack --help network trunk

but all networking 'openstack network trunk...' commands are visible now

Note, on the controller side (nothing to do with the OSC client) , but for info , you need to add trunking capability to neutron.conf (you probably have a long list of plugins)

[DEFAULT]
service_plugins = trunk

then restart neutron, then check extensions for trunking enabled (Trunk Extension, Trunk port details) with

openstack extension list --network
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: 2019-01-30 05:33:02 -0500

Seen: 44 times

Last updated: Feb 01