Skip to content

Instantly share code, notes, and snippets.

@lloydroc
Created June 22, 2016 22:34
Show Gist options
  • Save lloydroc/3ff42d58f56a9980cbac74a20857249d to your computer and use it in GitHub Desktop.
Save lloydroc/3ff42d58f56a9980cbac74a20857249d to your computer and use it in GitHub Desktop.
Create floating ip in Openstack/Neutron
!#/bin/sh
neutron net-list # find the list the compute hosts are on
neutron port-create --name nso-vip 0d7f88a9-09a6-4cb4-8b08-eae94ece9f97 --fixed-ip ip_address=10.114.195.172 # create a port for the vip
neutron port-update 2f8c9163-b71f-4c0e-8f1e-751aec8127e9 --allowed-address-pairs type=dict list=true ip_address=10.114.195.172 # add allowed address pairs (do for both ports)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment