From: CNlucius Date: Thu, 14 Jul 2016 09:06:28 +0000 (+0800) Subject: COMPASS-436 X-Git-Tag: colorado.1.0~84 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F16897%2F3;p=compass4nfv.git COMPASS-436 add Port config Change-Id: I8e9ea4df7a4a1bdd6aaa123c40e2d726d0c4f4e6 Signed-off-by: CNlucius --- diff --git a/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/openvswitch.yml b/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/openvswitch.yml index aac787ea..76863890 100755 --- a/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/openvswitch.yml +++ b/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/openvswitch.yml @@ -15,6 +15,13 @@ ifconfig onos_port2 up; ignore_errors: True +- name: set veth to ovs + shell: > + export externamMac=`ifconfig eth1 | grep -Eo '\<[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}'`; + ifconfig onos_port2 hw ether $externamMac; + ovs-vsctl add-port br-prv onos_port1; + ignore_errors: True + - name: add openflow-base feature command: su -s /bin/sh -c "/opt/onos/bin/onos 'feature:install onos-openflow-base'"; when: inventory_hostname in groups['onos']