Skip to content

Instantly share code, notes, and snippets.

@roaet
Created May 8, 2014 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roaet/4fbb1ac1fa2dee4f7349 to your computer and use it in GitHub Desktop.
Save roaet/4fbb1ac1fa2dee4f7349 to your computer and use it in GitHub Desktop.
Commands I used to make the network
git clone https://github.com/micha/resty
source resty/resty
resty http://preprod.ord.networks-internal.api.rackspacecloud.com:9696 -H 'Content-type: application/json'
POST /v2.0/networks -d '{"network": {"name": "jlh_test_shared", "tenant_id" : "5832759", "network_plugin": "UNMANAGED", "id": "33333333-3333-3333-3333-333333333333"}}'
POST /v2.0/subnets -d '{"subnet": {"network_id":"33333333-3333-3333-3333-333333333333", "cidr": "10.0.0.0/24","tenant_id": "5832759","ip_version": 4, "segment_id": "blah", "allocation_pools": [{"start": "10.0.0.4", "end": "10.0.0.254"}]}}'
POST /v2.0/subnets -d '{"subnet": {"network_id":"33333333-3333-3333-3333-333333333333", "cidr": "10.0.1.0/24","tenant_id": "5832759","ip_version": 4, "segment_id": "blah", "allocation_pools": [{"start": "10.0.1.4", "end": "10.0.1.254"}]}}'
POST /v2.0/subnets -d '{"subnet": {"network_id":"33333333-3333-3333-3333-333333333333", "cidr": "10.0.2.0/24","tenant_id": "5832759","ip_version": 4, "segment_id": "blah", "allocation_pools": [{"start": "10.0.2.4", "end": "10.0.2.254"}]}}'
POST /v2.0/subnets -d '{"subnet": {"network_id":"33333333-3333-3333-3333-333333333333", "cidr": "10.0.3.0/24","tenant_id": "5832759","ip_version": 4, "segment_id": "blah", "allocation_pools": [{"start": "10.0.3.4", "end": "10.0.3.254"}]}}'
POST /v2.0/subnets -d '{"subnet": {"network_id":"33333333-3333-3333-3333-333333333333", "cidr": "10.0.4.0/24","tenant_id": "5832759","ip_version": 4, "segment_id": "blah", "allocation_pools": [{"start": "10.0.4.4", "end": "10.0.4.254"}]}}'
POST /v2.0/subnets -d '{"subnet": {"network_id":"33333333-3333-3333-3333-333333333333", "cidr": "10.0.5.0/24","tenant_id": "5832759","ip_version": 4, "segment_id": "blah", "allocation_pools": [{"start": "10.0.5.4", "end": "10.0.5.254"}]}}'
POST /v2.0/subnets -d '{"subnet": {"network_id":"33333333-3333-3333-3333-333333333333", "cidr": "10.0.6.0/24","tenant_id": "5832759","ip_version": 4, "segment_id": "blah", "allocation_pools": [{"start": "10.0.6.4", "end": "10.0.6.254"}]}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment