This reverts commit ce5e82e319.
MicroStack cannot currently install due to a missing ovs-related
library. This is possibly due to recent changes in spacraft, or
possibly due to the workarounds for those changes. Regardless, it
appears that backing out the DPDK changes gets us back to a state
where we can install.
Partial-Bug: 1862911
Change-Id: I060c1a0095470639f9158cb9e9ebe8281a65a678
25 lines
646 B
Bash
Executable File
25 lines
646 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Oneshot daemon which creates a networking bridge.
|
|
#
|
|
# Creates br-ex, and sets up an ip address for it. We put this in a
|
|
# oneshot so that the ip address persists after reboot, without
|
|
# needing to add networking entries to the host system. (We want this
|
|
# to work well when we turn off classic confinement.)
|
|
|
|
set -ex
|
|
|
|
extcidr=$(snapctl get config.network.ext-cidr)
|
|
|
|
# Create external integration bridge
|
|
ovs-vsctl --retry --may-exist add-br br-ex
|
|
|
|
# Configure br-ex
|
|
ip address add $extcidr dev br-ex || :
|
|
ip link set br-ex up || :
|
|
|
|
sudo iptables -w -t nat -A POSTROUTING -s $extcidr ! \
|
|
-d $extcidr -j MASQUERADE || :
|
|
|
|
exit 0
|