1 {%- from "opendaylight/map.jinja" import client with context %}
2 {%- if client.get('enabled', True) %}
4 opendaylight_client_packages:
6 - pkgs: {{ client.pkgs }}
10 - name: "ovs-vsctl set-manager {{ client.ovsdb_server_iface }} {{ client.ovsdb_odl_iface }}"
11 - unless: "ovs-vsctl get-manager | fgrep -x {{ client.ovsdb_odl_iface }}"
13 ovs_set_tunnel_endpoint:
15 - name: "ovs-vsctl set Open_vSwitch . other_config:local_ip={{ client.tunnel_ip }}"
16 - unless: "ovs-vsctl get Open_vSwitch . other_config | fgrep local_ip"
18 - cmd: ovs_set_manager
20 ovs_set_provider_mapping:
22 - name: "ovs-vsctl set Open_vSwitch . other_config:provider_mappings={{ client.provider_mappings }}"
23 - unless: "ovs-vsctl get Open_vSwitch . other_config | fgrep provider_mappings"
25 - cmd: ovs_set_manager