summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch.inc
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2018-05-30 11:47:10 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-06-03 23:26:54 -0400
commit1fd1ff3720140baa3680d795f6d97597e5113e90 (patch)
tree41e63c2363391e512dae7cd1c8777db51ad928a1 /recipes-networking/openvswitch/openvswitch.inc
parent1a5853f87cfc0b16d992ed222bbb0ff6066b2617 (diff)
downloadmeta-virtualization-1fd1ff3720140baa3680d795f6d97597e5113e90.tar.gz
openvswitch: uprev to v2.9.2
This brings us up to date with the latest upstream release. I suspect there will be an upcoming release to add compatibility with DPDK v18.05 (the DPDK release is due out any day now) but getting this fairly large release bump out of the way first will facilitate any upcoming uprev. We are able to drop they python3 patches as they have been merged upstream. Some scripts which needed to be updated to use python3 disappeared, new ones appeared so the 'use python3' patches are updated accordingly. Beyond this the biggest change is related to the systemd unit files, the ovsdb-server has been updated upstream to be generated on the fly via the spec file, we mimic this in the install_prepend. We also add the various configuration files which the unit files source before launching the services. As usual this was tested against out typical usecases including usage in meta-overc. As well the ptests have been run and the results are no better or worse. Previous version: ERROR: 2332 tests were run, 21 failed unexpectedly. 3 tests were skipped. New version: ERROR: 2527 tests were run, 29 failed unexpectedly. 3 tests were skipped. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch.inc')
-rw-r--r--recipes-networking/openvswitch/openvswitch.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
index 58e0fcb0..70ac5bc5 100644
--- a/recipes-networking/openvswitch/openvswitch.inc
+++ b/recipes-networking/openvswitch/openvswitch.inc
@@ -63,6 +63,8 @@ FILES_${PN}-switch = "\
63 ${systemd_unitdir}/system/ovs-vswitchd.service \ 63 ${systemd_unitdir}/system/ovs-vswitchd.service \
64 ${systemd_unitdir}/system/openvswitch.service \ 64 ${systemd_unitdir}/system/openvswitch.service \
65 ${systemd_unitdir}/system/ovsdb-server.service \ 65 ${systemd_unitdir}/system/ovsdb-server.service \
66 ${sysconfdir}/sysconfig/openvswitch \
67 ${sysconfdir}/openvswitch/default.conf \
66 " 68 "
67 69
68# silence a warning 70# silence a warning
@@ -92,6 +94,14 @@ do_configure_prepend() {
92 CC=`echo '${CC}' | sed 's/-Wa,/-Xassembler /g'` 94 CC=`echo '${CC}' | sed 's/-Wa,/-Xassembler /g'`
93} 95}
94 96
97do_install_prepend() {
98 SERVICE_FILE="${S}/rhel/usr_lib_systemd_system_ovs-vswitchd.service"
99 ${S}/build-aux/dpdkstrip.py \
100 ${@bb.utils.contains('PACKAGECONFIG','dpdk','--dpdk','--nodpdk',d)} \
101 < ${S}/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
102 > ${SERVICE_FILE}
103}
104
95do_install_append() { 105do_install_append() {
96 install -d ${D}/${sysconfdir}/default/ 106 install -d ${D}/${sysconfdir}/default/
97 install -m 660 ${WORKDIR}/openvswitch-switch-setup ${D}/${sysconfdir}/default/openvswitch-switch 107 install -m 660 ${WORKDIR}/openvswitch-switch-setup ${D}/${sysconfdir}/default/openvswitch-switch
@@ -103,6 +113,14 @@ do_install_append() {
103 install -m 755 ${WORKDIR}/openvswitch-switch ${D}/${sysconfdir}/init.d/openvswitch-switch 113 install -m 755 ${WORKDIR}/openvswitch-switch ${D}/${sysconfdir}/init.d/openvswitch-switch
104 true || rm -fr ${D}/${datadir}/${PN}/pki 114 true || rm -fr ${D}/${datadir}/${PN}/pki
105 115
116 install -d ${D}/${sysconfdir}/sysconfig
117 install -m 644 ${S}/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
118 ${D}/${sysconfdir}/sysconfig/openvswitch
119
120 install -d ${D}/${sysconfdir}/openvswitch
121 install -m 644 ${S}/rhel/etc_openvswitch_default.conf \
122 ${D}/${sysconfdir}/openvswitch/default.conf
123
106 install -d ${D}/${systemd_unitdir}/system/ 124 install -d ${D}/${systemd_unitdir}/system/
107 install -m 644 ${S}/rhel/usr_lib_systemd_system_ovs-vswitchd.service \ 125 install -m 644 ${S}/rhel/usr_lib_systemd_system_ovs-vswitchd.service \
108 ${D}/${systemd_unitdir}/system/ovs-vswitchd.service 126 ${D}/${systemd_unitdir}/system/ovs-vswitchd.service