Last active
April 14, 2017 03:00
-
-
Save detiber/b0883f298ceed8cd50132a928686d9b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source keystonerc_admin | |
TENANT_NAME=L104353 | |
TENANT_ID=$(openstack project show ${TENANT_NAME} -f value -c id) | |
EXTERNAL_SUBNET_ID=$(openstack subnet show external -f value -c id) | |
#Create port for openshift master | |
neutron port-create external --name openshift-master --tenant-id ${TENANT_ID} --allowed-address-pairs type=dict list=true ip_address=172.20.17.5 --fixed-ip subnet_id=${EXTERNAL_SUBNET_ID},ip_address=172.20.17.5 | |
neutron port-create external --name openshift-infra --tenant-id ${TENANT_ID} --allowed-address-pairs type=dict list=true ip_address=172.20.17.6 --fixed-ip subnet_id=${EXTERNAL_SUBNET_ID},ip_address=172.20.17.6 | |
neutron port-create external --name openshift-node1 --tenant-id ${TENANT_ID} --allowed-address-pairs type=dict list=true ip_address=172.20.17.51 --fixed-ip subnet_id=${EXTERNAL_SUBNET_ID},ip_address=172.20.17.51 | |
neutron port-create external --name openshift-node2 --tenant-id ${TENANT_ID} --allowed-address-pairs type=dict list=true ip_address=172.20.17.52 --fixed-ip subnet_id=${EXTERNAL_SUBNET_ID},ip_address=172.20.17.52 | |
neutron port-create external --name openshift-node3 --tenant-id ${TENANT_ID} --allowed-address-pairs type=dict list=true ip_address=172.20.17.53 --fixed-ip subnet_id=${EXTERNAL_SUBNET_ID},ip_address=172.20.17.53 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment