From ab4e25d124e1fcb35f06acdee687d0630e4fb8be Mon Sep 17 00:00:00 2001 From: CNlucius Date: Thu, 14 Jul 2016 17:06:28 +0800 Subject: COMPASS-436 add Port config Change-Id: I8e9ea4df7a4a1bdd6aaa123c40e2d726d0c4f4e6 Signed-off-by: CNlucius --- .../openstack_mitaka/roles/onos_cluster/tasks/openvswitch.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'deploy/adapters/ansible') 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'] -- cgit 1.2.3-korg