summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2015-12-31 10:39:21 +0800
committerJustin chi <chigang@huawei.com>2016-01-04 06:18:45 +0000
commitdbe9a838fa56dfd66a691ff13de0baba896bb111 (patch)
tree58dc2ed29c4de07a288837ab9e12d5c5a09636ff /deploy
parentbef20d54c7a1c7068534c0dedf4ca8759a74745d (diff)
setup external network for openstack which is used by vIMS in Functest
JIRA: COMPASS-226 - used by vIMS testcase in Functest Change-Id: I49ed44e84b0c32f4d16c7c05a80b147a0a0d86b7 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/adapters/ansible/roles/ext-network/tasks/main.yml22
-rw-r--r--deploy/conf/network_cfg.yaml4
2 files changed, 2 insertions, 24 deletions
diff --git a/deploy/adapters/ansible/roles/ext-network/tasks/main.yml b/deploy/adapters/ansible/roles/ext-network/tasks/main.yml
index 57ef875e..94c8476c 100644
--- a/deploy/adapters/ansible/roles/ext-network/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/ext-network/tasks/main.yml
@@ -33,25 +33,3 @@
run_once: true
when: 'public_net_info.enable == True'
-- name: create external router
- neutron_router:
- login_username: ADMIN
- login_password: "{{ ADMIN_PASS }}"
- login_tenant_name: admin
- auth_url: "http://{{ internal_vip.ip }}:35357/v2.0"
- name: "{{ public_net_info.router }}"
- state: present
- run_once: true
- when: 'public_net_info.enable == True'
-
-- name: set external router gateway
- neutron_router_gateway:
- login_username: ADMIN
- login_password: "{{ ADMIN_PASS }}"
- login_tenant_name: admin
- auth_url: "http://{{ internal_vip.ip }}:35357/v2.0"
- router_name: "{{ public_net_info.router }}"
- network_name: "{{ public_net_info.network }}"
- state: present
- run_once: true
- when: 'public_net_info.enable == True'
diff --git a/deploy/conf/network_cfg.yaml b/deploy/conf/network_cfg.yaml
index 9997f7fe..7f274bd4 100644
--- a/deploy/conf/network_cfg.yaml
+++ b/deploy/conf/network_cfg.yaml
@@ -75,9 +75,9 @@ public_vip:
onos_nic: eth2
public_net_info:
- enable: False
+ enable: True
network: ext-net
- type: vlan
+ type: flat
segment_id: 1000
subnet: ext-subnet
provider_network: physnet