A snap that packages the networking agents and utilities needed to run OpenStack on hosts with Open vSwitch (OVS) and OVN. It is designed to be co-located with MicroOVN (https://github.com/canonical/microovn) and is part of the Sunbeam (https://canonical-openstack.readthedocs-hosted.com/en/) project.
What it does
setup-bridge, show-bridge-setup, and list-nics subcommands for manual inspection and one-shot configuration.Prerequisites
ovn-chassis content interface connectedInstall
sudo snap install openstack-network-agents
Configuration
The snap is configured through snap set keys and is typically driven by a
Juju subordinate charm. All keys live under the network.* namespace:
network.bridge-mapping (unset): Comma-separated bridge:physnet:interface triples. This is the preferred way to configure mappings.network.enable-chassis-as-gw (true): Register this chassis as an OVN gateway router.network.external-bridge-address (0.0.0.0/0): Static CIDR to assign to the bridge in localnet (single-node) mode.logging.debug (false): Enable debug logging for hooks and CLI.Example:
sudo snap set openstack-network-agents network.bridge-mapping="br-ex:physnet1:enp6s0"
CLI usage
The snap ships the openstack-network-agents command with several subcommands.
list-nics
List candidate uplink NICs (physical, bond, and VLAN interfaces that are not already claimed):
openstack-network-agents list-nics # JSON (default)
openstack-network-agents list-nics -f table # human-readable table
setup-bridge
Apply the current snap configuration to create/update OVS bridges and physnet mappings:
openstack-network-agents setup-bridge
show-bridge-setup
Display the current OVS bridge-to-physnet mappings detected on the host:
openstack-network-agents show-bridge-setup
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Snap can be installed on Fedora from the command line:
sudo dnf install snapd
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap and /snap:
sudo ln -s /var/lib/snapd/snap /snap
To install openstack-network-agents, simply use the following command:
sudo snap install openstack-network-agents
Browse and find snaps from the convenience of your desktop using the snap store snap.
Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.