New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: systemd-networkd support for ovs (openvswitch) #2613
Comments
Hmpf, a HTTP/JSON-RPC interface appears a bit too high-level for the low-level tool that networkd is... |
I have to ask since in the OVS setup you have three OVS daemons running And you have two management commands Where does systemd/networkd fit in the above picture? |
In my opinion systemd-network should provide the basic interfaces and mark them usable for ovs. something like: netdev options: and give the interface an ip.. nothing special.. |
What's the differences to ovs bridge and regular linux bridge since afaikt you have to create a regular linux bridge and virtual ethernet interfaces and then associate those to ovs via ovs-vsctl add-br/add-port and networkd already supports regular linux bridge along with virtual ethernet interface ? |
I think the main difference is the kernel module loading a different type of interface, but i'm not an ovs dev so I can be wrong something like this what is in debian with ifupdown: |
First: I am not a linux expert ... I needed a whole week to make openvswitch running with debian (jessie). |
More than a year has passed; has there been any work / progress on this? I'd like to use systemd-networkd with OVS ... I succeeded with a source install of openvswitch 2.7.0 recently ... building Centos-7 RPMs untar the downloaded tar-file and cd to the top-level directory (./openvswitch-2.7.0) then: yum install kernel-devel python-devel python34-devel edit the resulting rhel/openvswitch-fedora.spec, changing: make rpm-fedora The make should create: yum install the RPMs and note the new binaries in /usr/bin .. and equally important a coupla new cat /etc/sysconfig/network-scripts/ifcfg-ovsbr0 Before the ifup-ovs, "lsmod | grep open" yields nothing. openvswitch 106775 14 And "ps -ef|grep ovs" reveals ovsdb-server ovs-vswitchd up and running ... Soooo ... seems it should be possible to incorporate ifup-ovs and ifdown-ovs into the magic Cheers, |
AFAIK, no work has been done on this. |
Thanks for the feedback; Any notion of what it would take to make a stab at it? Perhaps Also I noticed a typing lapse in a key sentence of mine ... please accept my apologies with |
@honsys , see my comment: #2613 (comment) |
BTW I've also been able to use an OVS bridge stand-alone -- no legacy linux bridges. Cheers, |
It seems like systemd can at least be convinced to poke openvswitch and configure the interfaces. Don't really need systemd to configure OVS, just cooperate with the switch fabric as maintained by OVS. Tested using Ubuntu bionic.
Build basic OVS bridge and some ports:
Create system-networkd configuration for OVS interfaces in /etc/systemd/network and then restart systemd-networkd
Plumb ens3 into ovsbr0 to enable external connectivity and create systemd .network configuration for ens3 and restart systemd-networkd again.
|
I am going to work on this. @samarium I figure we need to talk to ovsdb via unix socket using JSON. https://mailman.stanford.edu/pipermail/openflow-discuss/2010-February/000744.html . Is there any formal documentation there ?
This means we made the call then they persists |
any update on this? |
Intereting that still nobody felt the need for this even at the end of year 2023. |
I started to use NetworkManager for this instead. It's a bit problematic, though - NetworkManager is too magical, and it makes some immediate compromises in how it allows the OVS bridge to be configured that are not requirements of OVS itself, but are NetworkManager requirements. I wanted to try systemd-networkd as less magical, but without the basic support for OVS, it wasn't really an option. The /etc/sysconfig/network-scripts/ifup-ovs worked really well for this - but this package is on its way out. So, NetworkManager it is? Or we discuss how to make systemd-networkd do it better? :-) |
As stated on the devel mailinglist:
https://lists.freedesktop.org/archives/systemd-devel/2015-May/031959.html
In the mailinglist (http://openvswitch.org/pipermail/dev/2015-January/050711.html) of openvswitch they point to https://tools.ietf.org/html/rfc7047
This will be a great addition to bridge and macvlan support.
Another source of information:
https://keepingitclassless.net/2014/08/sdn-protocols-3-ovsdb/
The text was updated successfully, but these errors were encountered: