bugfix: l2 fwd move external bridge on br-ex 29/8429/1
authorchenshuai@huawei.com <chenshuai@huawei.com>
Fri, 29 Jan 2016 09:26:21 +0000 (17:26 +0800)
committerchenshuai@huawei.com <chenshuai@huawei.com>
Fri, 29 Jan 2016 09:26:21 +0000 (17:26 +0800)
JIRA: COMPASS-292

Change-Id: I242729b32c8f29e3aafe7ef5797acd14429a2c8c
Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
deploy/adapters/ansible/roles/odl_cluster/tasks/odl_controller.yml

index 69c9d83..b5d940f 100755 (executable)
 - 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: 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: Execute ML2 Configuration File
 #  command: su -s /bin/sh -c "/opt/ml2_conf.sh;"
 
+- name: configure l3 configuration
+  shell: crudini --set /etc/neutron/l3_agent.ini DEFAULT external_network_bridge br-prv;
+
 - name: drop and recreate neutron database
   shell: mysql -e "drop database if exists neutron;";
          mysql -e "create database neutron character set utf8;";