Starting with SLE12 SP2 and with openSUSE Leap the distro-shipped
openvswitch is the normal systemd openvswitch.service service file
and no longer the older openvswitch-switch Sysv5 init script. Add
a special case for that.
Change-Id: I5152f2585c3d4d18853988d6290039d6b1713b99
... | ... |
@@ -69,7 +69,11 @@ function _neutron_ovs_base_install_agent_packages { |
69 | 69 |
restart_service openvswitch |
70 | 70 |
sudo systemctl enable openvswitch |
71 | 71 |
elif is_suse; then |
72 |
- restart_service openvswitch-switch |
|
72 |
+ if [[ $DISTRO == "sle12" ]] && [[ $os_RELEASE -lt 12.2 ]]; then |
|
73 |
+ restart_service openvswitch-switch |
|
74 |
+ else |
|
75 |
+ restart_service openvswitch |
|
76 |
+ fi |
|
73 | 77 |
fi |
74 | 78 |
} |
75 | 79 |
|