summaryrefslogtreecommitdiff
path: root/docker/macros.j2
diff options
context:
space:
mode:
authorSean Mooney <sean.k.mooney@intel.com>2017-03-29 15:05:55 +0000
committerSean Mooney <sean.k.mooney@intel.com>2017-07-05 11:34:51 +0000
commit4f5bac108952a4f7e0bec3789bea175c5875d6f7 (patch)
tree2f5b55fcebb285b5b6f48f4cfca6b2c1e7b0567f /docker/macros.j2
parentc2c457c28201f551d9bc401f562c17ba2ac6eb36 (diff)
downloadkolla-4f5bac108952a4f7e0bec3789bea175c5875d6f7.tar.gz
kolla-4f5bac108952a4f7e0bec3789bea175c5875d6f7.zip
introduces support for the OVS DPDK dataplane
- DPDK is a userspace library for high-performance networking. - This change enable support of Open vSwitch with the DPDK accelerated netdev datapath. - This change provided binary and source support via a template-override. - This change provides an example template override file and corresponding documentation. Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com> Partial-Implements: blueprint ovs-dpdk Change-Id: I7c3a5dddeca1886fe1c7681ce8d5bebde08f3102
Diffstat (limited to 'docker/macros.j2')
-rw-r--r--docker/macros.j28
1 files changed, 7 insertions, 1 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2
index 9120b5142..203ca4be5 100644
--- a/docker/macros.j2
+++ b/docker/macros.j2
@@ -13,6 +13,13 @@
{%- endif %}
{%- endmacro %}
+{% macro sed(file='', expressions=[]) -%}
+{% if file != '' and expressions|length >0 %}
+ RUN {% for expression in expressions %} sed -i "{{ file }}" -e "{{ expression }}" {% if not loop.last %} && {% endif %} {% endfor %}
+{% else %}
+ RUN echo "file and expressions must be set to use the sed macro"; /bin/false
+{% endif %}
+{%- endmacro %}
{% macro install_pip(packages, constraints = true) %}
{%- if packages is sequence and packages|length > 0 -%}
@@ -24,7 +31,6 @@
{%- endif -%}
{% endmacro %}
-
{% macro configure_user(name, groups=None, shell=None, homedir=None) %}
{% set user=users[name] %}
{%- if not homedir %}