1 {%- from "opendaylight/map.jinja" import client with context %}
2 {%- if client.get('enabled', True) %}
4 opendaylight_client_packages:
6 - pkgs: {{ client.pkgs }}
8 {%- if pillar.linux.network.bridge is defined and pillar.linux.network.bridge == 'openvswitch' %}
11 - name: "ovs-vsctl set-manager {{ client.ovsdb_server_iface }} {{ client.ovsdb_odl_iface }}"
12 - unless: "ovs-vsctl get-manager | fgrep -x {{ client.ovsdb_odl_iface }}"
14 ovs_set_tunnel_endpoint:
16 - name: "ovs-vsctl set Open_vSwitch . other_config:local_ip={{ client.tunnel_ip }}"
17 - unless: "ovs-vsctl get Open_vSwitch . other_config | fgrep local_ip"
19 - cmd: ovs_set_manager
21 {%- if client.provider_mappings is defined %}
22 ovs_set_provider_mapping:
24 - name: "ovs-vsctl set Open_vSwitch . other_config:provider_mappings={{ client.provider_mappings }}"
25 - unless: "ovs-vsctl get Open_vSwitch . other_config | fgrep provider_mappings"
27 - cmd: ovs_set_manager