[dpdk] Support ovs bridge tagging
Bring in "tag" option for dpdk/ovs bridges
to support vlan-tagged vxlan mode.
Change-Id: I7f1f88233694f2c8b968a6cf55584f32879ec042
diff --git a/README.rst b/README.rst
index 794b56b..8628f80 100644
--- a/README.rst
+++ b/README.rst
@@ -1433,6 +1433,7 @@
type: dpdk_ovs_bridge
address: 192.168.50.0
netmask: 255.255.255.0
+ tag: 101
mtu: 9000
Linux storage
diff --git a/linux/network/dpdk.sls b/linux/network/dpdk.sls
index 1ac9e25..05fe05f 100644
--- a/linux/network/dpdk.sls
+++ b/linux/network/dpdk.sls
@@ -110,7 +110,7 @@
linux_network_dpdk_bridge_interface_{{ interface_name }}:
cmd.run:
- - name: "ovs-vsctl add-br {{ interface_name }} -- set bridge {{ interface_name }} datapath_type=netdev"
+ - name: "ovs-vsctl add-br {{ interface_name }} -- set bridge {{ interface_name }} datapath_type=netdev{% if interface.tag is defined %} -- set port {{ interface_name }} tag={{ interface.tag }}{% endif %}"
- unless: "ovs-vsctl show | grep {{ interface_name }}"
{# OVS dpdk needs ip address for vxlan termination on bridge br-prv #}