-
Notifications
You must be signed in to change notification settings - Fork 930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for VLAN tag on OVN uplink network #12234
Comments
Does using the https://documentation.ubuntu.com/lxd/en/latest/reference/network_physical/#configuration-options |
@boltmark see comment for how we may be able to approach this. |
I have got it working as follows:
For steps 2 and 3 we will need LXD to notify the other cluster members when the uplink VLAN is changed so that they can reconfigure the local ports. So in the end it looks like this: container 1 -> NIC veth port (vlan 101 untagged) -> lxdbr0 -> OVS veth port (vlan 101 tagged) -> OVS provider bridge -> OVN provider port (vlan 101 tagged) -> OVN provider logical switch port (vlan 101 tagged) -> OVN logical router -> OVN logical switch -> container 2 |
Here's a reproducer for a lab setup in a LXD VM:
|
Question I have: Should we add a |
I believe we can make this simpler as, per my question from 1 year ago, #12234 (comment) it does indeed work with But we can make a smaller improvement to support uplink parents that are unmanaged bridges too. |
When attaching an OVN network with an external network there is currently no way to specify a VLAN tag to use.
On systems where you have no extra NIC for external networking it is useful to be able to use the same NIC for multiple purposes. A way of doing this is for example to put the main interface into an OVS bridge without any tag configuration. An example of this could be done is laid out in #12233.
When creating the
localnet
port in OVN it is possible to specify which VLAN tag it should use, when doing it this way the traffic will be appropriately tagged even if the interface in the associated bridge is not tagged.For reference, OpenStack Neutron makes use of the
tag
column when creating thelocalnet
Logical_Switch_Port: https://github.com/openstack/neutron/blob/8cba9a2ee86cb3b65645674ef315c14cfb261143/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py#L1872The text was updated successfully, but these errors were encountered: