Skydive: install openvswitch client to fetch OpenFlow rules

Change-Id: I900760294afc868f51cee0ef086595b047835058
This commit is contained in:
Sylvain Baubeau 2018-02-28 16:06:56 +01:00
parent 91ad86c881
commit 78e3aa2c75
1 changed files with 11 additions and 0 deletions

View File

@ -3,5 +3,16 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block skydive_agent_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% block skydive_agent_install %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set skydive_agent_packages = ['openvswitch'] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set skydive_agent_packages = ['openvswitch-common'] %}
{% endif %}
{{ macros.install_packages(skydive_agent_packages | customizable("packages")) }}
{% endblock %}
{% block skydive_agent_footer %}{% endblock %}
{% block footer %}{% endblock %}