Skip to main content

neutron-bsdbridge

Neutron ML2 mechanism driver, L2 agent, and DHCP agent for FreeBSD based on if_bridge(4) and pf(4).

Status

Features

  • ML2 mechanism driver that binds ports with vif_type=bridge and 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

Roadmap

  • L3 agent for gateway and NAT support
  • vxlan segments
  • IPv6 tcp and udp security group rules
  • metadata agent

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

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

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neutron-bsdbridge 0.9.2
File Size Uploaded
neutron_bsdbridge-0.9.2.tar.gz 27.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neutron-bsdbridge 0.9.2
File Interpreter ABI Platform
neutron_bsdbridge-0.9.2-py3-none-any.whl Python 3 none any Details

Total release size: 62.6 kB

Release files / neutron_bsdbridge-0.9.2.tar.gz

Download URL neutron_bsdbridge-0.9.2.tar.gz
Size 27.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cd53e1c66fd0af42ea51eb5836944e5580c411ee39b6989618e73199be1dc0ec
BLAKE2b-256 checksum
How to use checksums
4b2ea645bee6d97f7374bdc23358260b3186365407241a858e7c966f1bb3e21c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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.2-py3-none-any.whl

Download URL neutron_bsdbridge-0.9.2-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9697ae4ba17eeb4164813672766a7a718fc6ab58c9a6010f1f56006c1e4a4b21
BLAKE2b-256 checksum
How to use checksums
36e5ad18c779d33b5dd2f17f291986658fc1c441d2f3461fdad10e38d5181383
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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 history Release notifications | RSS feed

0.9.3

2 release files

This release

0.9.2 This release

2 release files

0.9.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page