From 4f5bac108952a4f7e0bec3789bea175c5875d6f7 Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Wed, 29 Mar 2017 15:05:55 +0000 Subject: 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 Partial-Implements: blueprint ovs-dpdk Change-Id: I7c3a5dddeca1886fe1c7681ce8d5bebde08f3102 --- docker/macros.j2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docker/macros.j2') 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 %} -- cgit v1.2.3