summaryrefslogtreecommitdiff
path: root/rhel/etc_sysconfig_network-scripts_ifup-ovs
Commit message (Collapse)AuthorAgeFilesLines
* treewide: Convert leading tabs to spaces.Ben Pfaff2018-06-111-169/+169
| | | | | | | | | It's always been OVS coding style to use spaces rather than tabs for indentation, but some tabs have snuck in over time. This commit converts them to spaces. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
* rhel: Avoid losing bridge configuration after adding DPDK portsVishal Deep Ajmera2018-03-071-0/+16
| | | | | | | | | | | | | | | | | Whenever a DPDK port is added to or deleted from an OVS bridge, the bridge interface is reconfigured with the lowest MAC address among the connected DPDK ports. When changing the MAC address, OVS performs a sequences of events UP -> DOWN -> UP on the bridge interface. In deployments of OVS in RHEL distribution this results in loosing Linux networking configuration attached to the bridge interface (e.g. static routes). This patch changes the interface configuration scripts used in a RHEL deployment to trigger post-up operations on the bridge device after a change of MAC address. Signed-off-by: Vishal Deep Ajmera <vishal.deep.ajmera@ericsson.com> Signed-off-by: Flavio Leitner <fbl@sysclose.org> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel/ifup: support vhost-user client modeAaron Conole2017-02-101-1/+9
| | | | | | | | | | | | | This adds support for ifup to configure client-mode sockets by exposing two new variables $OVS_PORT_MODE and $OVS_PORT_PATH to the ifcfg scripts. When OVS_PORT_MODE is set to 'client', the OVS_PORT_PATH will be passed as the vhost-server-path option. No change is needed to ifdown because the OVSDPDKVhostUserPort type already has an appropriate entry. Signed-off-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
* netdev-dpdk: Remove dpdkvhostcuse portsCiara Loftus2016-08-151-7/+0
| | | | | | | | | | | | | | | | | | | This commit removes the 'dpdkvhostcuse' port type from the userspace datapath. vhost-cuse ports are quickly becoming obsolete as the vhost-user port type begins to support a greater feature-set thanks to the addition of things like vhost-user multiqueue and potential upcoming features like vhost-user client-mode and vhost-user reconnect. The feature is also expected to be removed from DPDK soon. One potential drawback of the removal of this support is that a userspace vHost port type is not available in OVS for use with older versions of QEMU (pre v2.2). Considering v2.2 is nearly two years old this should however be a low impact change. Signed-off-by: Ciara Loftus <ciara.loftus@intel.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Acked-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Ilya Maximets <i.maximets@samsung.com>
* rhel: Add support for DPDK BondFlavio Leitner2016-08-121-0/+9
| | | | | | | | The current ifcfg file lacks support for OVS DPDK Bond. Reviewed-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* rhel: Improved Systemd IntegrationAaron Conole2016-08-101-3/+3
| | | | | | | | | | | | | This commit builds upon some of the recent ovs-ctl changes to build a more integrated systemd setup. A new service (ovs-vswitchd) is added to track the ovs-vswitchd, and ovsdb-server service is reserved for the ovsdb-server daemon. The systemd scripts still use ovs-ctl to actually initialize the daemons. Signed-off-by: Aaron Conole <aconole@redhat.com> Acked-by: Markos Chandras <mchandras@suse.de> Acked-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel/ovsdb-server.service: Rename the nonetwork serviceAaron Conole2016-08-101-3/+3
| | | | | | | | | | | | | | | Currently, openvswitch.service calls out to start openvswitch-nonetwork.service. However, openvswitch-nonetwork.service will be called ovsdb-server, so that it is a bit more reflective of the dependencies. This commit does make the file a bit of a misnomer as currently the ovsdb-server SERVICE will start the ovs-vswitchd service as well. A future commit will clean this up, and change the ifup configuration in the process. Signed-off-by: Aaron Conole <aconole@redhat.com> Acked-by: Markos Chandras <mchandras@suse.de> Acked-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: Fix ifup-ovs to delete ports first.Flavio Leitner2016-07-281-8/+31
| | | | | | | | | | | | | | | When ifdown isn't executed (system didn't shut down properly), ports remain in the openvswitch's database. In that case, an inconsitency is left behind when the ifcfg was modified because ovs-vsctl won't do anything to update existing port's configuration in the database. The ifup/ifdown will operate only on configured interfaces, so this patch fixes the issue by deleting the port from the database before attempt to configure it with fresh configuration. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Joe Stringer <joe@ovn.org>
* rhel: Add support DPDK port creation via network scriptsPanu Matilainen2015-12-221-2/+22
| | | | | | | | | | Add support for creating a userspace bridge and the four DPDK port types via network scripts + basic documentation. Signed-off-by: Panu Matilainen <pmatilai@redhat.com> Acked-by: Aaron Conole <aconole@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
* rhel: Fix ifup-ovs to delete ports first.Flavio Leitner2015-07-211-1/+5
| | | | | | | | | | | | | | | | | | | | When ifdown isn't executed (system didn't shut down properly), the interfaces remain in the openvswitch's database. For the internal ports or devices that are available when openvswitch service starts that's not an issue. However, ovs-vsctl won't do anything for devices created later (Linux vlan devices for instance) since they are already in the database. That leaves a inconsistency behind because they will be left out of the kernel's datapath. The ifup/ifdown will operate only on configured interfaces, so this patch fixes the issue by deleting the interface from the database before attempt to configure it. Signed-off-by: Flavio Leitner <fbl@redhat.com> Acked-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: Fix tunnel port ifup/ifdown failure.Flavio Leitner2014-11-061-1/+0
| | | | | | | | The tunnel port is invisible to the OS, so there is no reason to call OTHERSCRIPT in the ifup/ifdown scripts. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: support persistent mac addresses on OVS bridgesLars Kellogg-Stedman2014-05-271-0/+8
| | | | | | | | | | | | | | | | | | | This patch adds support for RHEL-derived systems (RHEL/CentOS/Fedora) for setting the persistent MAC address of an OVS bridge via the MACADDR setting in the interface configuration file. Without this change, when an administrator provides MACADDR in the interface configuration file that address will be set in ifup-eth using the "ip link set" command. While this appears to work, any operation that updates the OVS configuration will cause the MAC address to revert. Persistent MAC addresses must be set using ovs-vsctl. (Resubmitted with whitespace and grammar corrections) Signed-off-by: Lars Kellogg-Stedman <lars@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Flavio Leitner <fbl@redhat.com>
* rhel: Remove creation of fake bond interfaceAnoob Soman2014-05-211-2/+1
| | | | | | | | fake-iface, option to add-bond, was added for compatibility reasons and need not be used otherwise. Signed-off-by: Anoob Soman <anoob.soman@citrix.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: Add Patch Port support to initscriptsJason Kölker2014-04-011-0/+4
| | | | | | | | Allows setting up type=patch ports through sysconfig ifcfg-* files. Signed-off-by: Jason Kölker <jason@koelker.net> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Flavio Leitner <fbl@redhat.com>
* rhel: Enable DHCP support for internal ports.Flavio Leitner2014-01-141-1/+6
| | | | | | | | | | | | | The current initscripts ifup-ovs brings up internal ports as an ordinary ethernet device, so BOOTPROTO=dhcp|none does not consider any OVS/bridge detail. Since DHCP requires a port in the bridge to reach the server, bring up the required port before in the same way it does for OVS bridge. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* fedora package: fix systemd ordering and deps.Flavio Leitner2014-01-091-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a chicken and egg issue where common OVS configuration uses a controller which is only accessible via the network. So starting OVS before network.target would break those configurations. However, the network doesn't come up after boot because OVS isn't started until after the network scripts tries to configure the ovs. This is partially fixed by commits: commit: 602453000e28ec1076c0482ce13c284765a84409 rhel: Automatically start openvswitch service before bringing an ovs interfa commit: 3214851c31538e8690e31f95702f8927a8c0838b rhel: Add OVSREQUIRES to automatically bring up OpenFlow interface dependencies But still there is the dependency issue between network.target and openvswitch which this patch fixes it. It provides two systemd service units. One to run at any time (openvswitch-nonetwork.service) which runs 'ovs-ctl start' and the other one (openvswith.service) to run after network.target which works as a frontend to the admin. The openvswitch-nonetwork.service is used internally by the 'ifup-ovs/ifdown-ovs' scripts when adding or removing ports to the bridge or when the openvswitch.service is enabled by the admin. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* rhel: Option to create tunnel through ifcfg scripts.Edouard Bourguignon2013-10-141-0/+5
| | | | | | Signed-off-by: Edouard Bourguignon <madko@linuxed.net> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* rhel: Set STP of a bridge during bridge creation.Gurucharan Shetty2013-03-181-2/+2
| | | | | | | | This patch sets the value of STP (if provided) at the same time of bridge creation. This eliminates an extra ovs-vsctl call and does not let ovs-vswitchd run briefly with STP not enabled. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* rhel: Prevent duplicate ifup calls.Gurucharan Shetty2013-03-181-6/+32
| | | | | | | | | | When we configure OVS using rhel ifupdown scripts, we call ifup on a bridge twice. Once while configuring the bridge and once while configuring the ports of the bridge. This looks harmless but unnecessary. This patch fixes the behavior. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* rhel: Return an exit value of 0 for ifup-ovs.Gurucharan Shetty2013-03-131-0/+1
| | | | | | | | When the variable "STP" is not set, the last executed command is False while running ifup-ovs for OVSBridge. This causes the ifup-ovs script to return an error resulting in a failure. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* rhel: Add OVSREQUIRES to automatically bring up OpenFlow interface dependenciesThomas Graf2013-01-251-0/+19
| | | | | | | | | | | | | | | | | | | | | The use of OpenFlow controllers may require for a subset of the network (typically the management network intrerface) to be brought up before the openvswitch service is started. The newly introduced key "OVSREQUIRES" allows to specify a list of interfaces that need the be brought up before the openvswitch service is autostarted. It is also possible to build a chain of bridge dependencies. TYPE=OVSBridge OVSREQURIES="em1" [...] A special UPPEDSTACK var that is passed along avoids getting lost in dependency loops. Signed-off-by: Thomas Graf <tgraf@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: Automatically start openvswitch service before bringing an ovs ↵Thomas Graf2013-01-251-0/+2
| | | | | | | | | | | interface up or down This patch modifies the ifup/ifdown scripts to automatically start the openvswitch service before ovs-vsctl is invoked thus not making it mandatory to auto-start openvswitch on boot. Signed-off-by: Thomas Graf <tgraf@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Added RHEL ovs-ifup STP option handlingAndres Toomsalu2012-12-081-0/+1
| | | | | Signed-off-by: Andres Toomsalu <andres@active.ee> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: Add timeouts to network scripts.Brian Kruger2012-05-091-4/+5
| | | | | | | | | | | | | If the daemon(s) aren't running for whatever reason, the RHEL ovs ifup/ifdown scripts don't take that into account and an attempt to reboot a system could take forever. (literally. endless loop!) Here are a couple of patches (one of ifup, one for ifdown) to add timeouts (10 seconds), because it runs per interface you have configured and that could take awhile to reboot a system if needed. Signed-off-by: Brian Kruger <bkruger+ovsdev@gmail.com> [blp@nicira.com fixed up a conflict against master] Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: Space separated list of DHCP interfaces in network scripts.Gurucharan Shetty2012-02-031-4/+4
| | | | | | | | Use space separated list of DHCP interfaces for OVSDHCPINTERFACES instead of comma separated list. This is done to maintain consistency with BOND_IFACES. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* rhel: Simplify ifup-ovs script use of "case".Ben Pfaff2012-02-031-5/+2
| | | | | Suggested-by: "Alexey I. Froloff" <raorn@altlinux.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: Enable DHCP in redhat network scripts.Gurucharan Shetty2012-01-311-1/+15
| | | | | | | | | | | | The current network-script, ifup-ovs does not work well if you enable DHCP on the OVS. It will work if we name the bridge alphabetically greater than the underlying physical interfaces. Even then, it will do multiple DHCP attempts slowing down the boot up process. This patch allows DHCP on an OVS bridge. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* rhel: Add Red Hat network scripts integration.Alexey I. Froloff2011-11-171-0/+63
[Spec file changes and some documentation updates by Ben Pfaff.]