summaryrefslogtreecommitdiffstats
path: root/deploy/adapters
diff options
context:
space:
mode:
authorCNlucius <lukai1@huawei.com>2016-07-14 17:06:28 +0800
committerCNlucius CNlucius <lukai1@huawei.com>2016-07-15 05:58:20 +0000
commitab4e25d124e1fcb35f06acdee687d0630e4fb8be (patch)
treeb5680bd947008818e7cf86628e72cf34f8d25a15 /deploy/adapters
parent65af89253493f3a9ef62ed6cc2bb241822efdff3 (diff)
COMPASS-436
add Port config Change-Id: I8e9ea4df7a4a1bdd6aaa123c40e2d726d0c4f4e6 Signed-off-by: CNlucius <lukai1@huawei.com>
Diffstat (limited to 'deploy/adapters')
-rwxr-xr-xdeploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/openvswitch.yml7
1 files changed, 7 insertions, 0 deletions
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']