Pretty simple:
1) read the man page on lxc.container.conf
2) build one or two interface up/down files
Don't guarantee this works without a bit of extra massaging, but should
be enough to get started:
# cat /etc/lxc/scripts/ovs.port.up.sh
#!/bin/bash
logger "lxc_name=${LXC_NAME}"
logger "lxc_config=${LXC_CONFIG_FILE}"
logger "values = $1 $2 $3 $4 $5"
logger "vlan=${VLAN} $5"
BRIDGE=ovsbr0
ovs-vsctl --may-exist add-br $BRIDGE
ovs-vsctl --may-exist add-port $BRIDGE $5
if [ "$VLAN" != "" ]; then
ovs-vsctl set port $5 tag=$VLAN
fi
There might be other tidbits at:
https://blog.raymond.burkholder.net/index.php?/categories/7-LXC
On 2/3/21 10:12 AM, George Papathanail wrote:
Hello everyone, I'm trying to connect LXC with Openvswitch and to have
a setup like this:
I'm kindly asking for your input, or if there is a tutorial please let
me know
Thank you in advance
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss