neutron-bsdbridge
Neutron ML2 mechanism driver, L2 agent, DHCP agent and L3 agent for FreeBSD based on if_bridge(4) and pf(4).
Status
Features
- ML2 mechanism driver that binds ports with
vif_type=bridgeand publishes to Nova - Implements one bridge per Neutron segment for vlan, flat and local networks.
- L2 agent to manage bridge, taps and security group rules
- Port security
- DHCP agent running one dnsmasq per network inside separate VNET jails
- L3 agent running each router inside a VNET jail with SNAT and floating IPs
Roadmap
- vxlan segments
- IPv6 tcp and udp security group rules
- metadata agent
- HA routers (CARP+pfsync)
Limitations
- IPv6 tcp and udp rules are skipped and this traffic stays blocked
- ARP is not inspected
- Only IPv4 subnets are served by the DHCP agent
- Only IPv4 subnets, routes and floating IPs are handled by the L3 agent
- Distributed routers probably won't be supported
Host requirements
Make sure to configure net.link.bridge.pfil_member=1 on the host.
Add to the host pf.conf:
set state-policy if-bound
ether anchor "l2-neutron/port/*"
anchor "l2-neutron/port/*"
Configuration
neutron.conf
[DEFAULT]
service_plugins = router
ml2_conf.ini
[ml2]
mechanism_drivers = bsdbridge
bsdbridge_agent.ini
[bsdbridge]
physical_interface_mappings = physnet1:ix0
Map the physical network name in OpenStack to the actual uplink/trunk interfaces on the host.
For vlan networks, the L2 agent will create a vlan interface on top of the mapped physical interface and plug it to the respective bridge for you, but make sure that the actual network trunks those VLAN between hosts.
You can enable self-service/tenant networks based on VLANs by configuring a range of IDs that can be used:
[ml2]
tenant_network_types = vlan
[ml2_type_vlan]
network_vlan_ranges = physnet1:100:199
Now any networks created in non-admin projects will be allocated a vlan segment automatically (the ix0.<vid> uplink is created and plugged by the L2 agent).
Same as above, ensure that the network fabric actually trunks this range of VLAN IDs to the interface on each host which is mapped in physical_interface_mappings.
Release files for neutron-bsdbridge 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| neutron_bsdbridge-0.9.3.tar.gz | 34.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| neutron_bsdbridge-0.9.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 79.5 kB
Release files / neutron_bsdbridge-0.9.3.tar.gz
| Download URL | neutron_bsdbridge-0.9.3.tar.gz |
|---|---|
| Size | 34.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c97455be3bbba69d13e6ac88290a56aecc60288b2cefd118d62040769752f314
|
|
BLAKE2b-256 checksum How to use checksums |
44bc59876c8ee9772fcd82c417380882c549aacbf9b45c6c031ce6ecefd3aa6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / neutron_bsdbridge-0.9.3-py3-none-any.whl
| Download URL | neutron_bsdbridge-0.9.3-py3-none-any.whl |
|---|---|
| Size | 44.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd116a91e422597d8e08bb10eff379c041c32d742378ba7372fec93612eb470b
|
|
BLAKE2b-256 checksum How to use checksums |
e3da988be4f391b8f8c1d9ba993f1a88a142a1304f10e9e56dbac5eb14567164
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|