# notify:
# - restart odl service
-- name: create jetty config
- template:
- src: jetty.xml
- dest: "{{ odl_home }}/etc/jetty.xml"
-
- name: install odl pip packages
pip: name={{ item }} state=present
with_items: odl_pip
#- name: copy Jolokia-OSGi jar config
# copy: src=roles/odl_cluster/templates/jolokia-osgi-1.1.5.jar dest="{{ odl_home }}/system/org/jolokia/jolokia-osgi/1.1.5/"
-- name: create odl haproxy config file
- template:
- src: haproxy-odl.cfg
- dest: "/opt/haproxy-odl.cfg"
-
-- name: add odl haproxy configuration to haproxy.cfg
- shell: "cat /opt/haproxy-odl.cfg >> /etc/haproxy/haproxy.cfg"
-
- name: remove karaf data directory
shell: rm -rf {{ odl_home }}/data/*;
- name: run openvswitch script
include: openvswitch.yml
+- name: add patch-port and normal flow table
+ shell: ovs-vsctl add-port br-int patch-br-prv;
+ ovs-vsctl set Interface patch-br-prv type=patch;
+ ovs-vsctl set Interface patch-br-prv options:peer=patch-int;
+ ovs-vsctl add-port br-prv patch-int;
+ ovs-vsctl set Interface patch-int type=patch;
+ ovs-vsctl set Interface patch-int options:peer=patch-br-prv;
+ ovs-ofctl -O OpenFlow13 add-flow br-int "table=0, priority=0 actions=NORMAL";
+ ignore_errors: True
#- name: Configure Neutron1
# shell: >
- name: restart neutron-metadata-agent server
service: name=neutron-metadata-agent state=restarted
-- name: restart haproxy server
- service: name=haproxy state=restarted