5 echo "Create region: RegionOne"
6 curl --silent -X POST \
7 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/dcim/regions/ \
8 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
9 -H 'Content-Type: application/json' \
17 echo "Create tenant group: ONAP group"
18 curl --silent -X POST \
19 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/tenancy/tenant-groups/ \
20 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
21 -H 'Content-Type: application/json' \
29 echo "Create tenant ONAP in ONAP group"
30 curl --silent -X POST \
31 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/tenancy/tenants/ \
32 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
33 -H 'Content-Type: application/json' \
38 "description": "ONAP tenant",
39 "comments": "Tenant for ONAP demo use cases"
44 echo "Create ONAP demo site: Montreal Lab"
45 curl --silent -X POST \
46 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/dcim/sites/ \
47 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
48 -H 'Content-Type: application/json' \
50 "name": "Montreal Lab D3",
55 "time_zone": "Canada/Atlantic",
56 "description": "Site hosting the ONAP use cases",
57 "physical_address": "1 Graham Bell",
58 "shipping_address": "1 Graham Bell",
59 "contact_name": "Alexis",
60 "contact_phone": "0000000000",
61 "contact_email": "adetalhouet89@gmail.com",
62 "comments": "ONAP lab"
67 echo "Create Prefix for vFW protected network"
68 curl --silent -X POST \
69 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/ \
70 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
71 -H 'Content-Type: application/json' \
73 "prefix": "{{ .Values.service.private2 }}",
77 "description": "IP Pool for private network 2"
80 echo "Create Prefix for vFW unprotected network"
81 curl --silent -X POST \
82 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/ \
83 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
84 -H 'Content-Type: application/json' \
86 "prefix": "{{ .Values.service.private1 }}",
90 "description": "IP Pool for private network 1"
93 echo "Create Prefix for ONAP general purpose network"
94 curl --silent -X POST \
95 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/ \
96 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
97 -H 'Content-Type: application/json' \
99 "prefix": "{{ .Values.service.management }}",
103 "description": "IP Pool for ONAP - general purpose"
106 # Reserve ports, gateway and dhcp, for each protected and unprotected networks.
108 curl --silent -X POST \
109 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/1/available-ips/ \
110 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
111 -H 'Content-Type: application/json'
113 curl --silent -X POST \
114 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/1/available-ips/ \
115 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
116 -H 'Content-Type: application/json'
118 curl --silent -X POST \
119 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/2/available-ips/ \
120 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
121 -H 'Content-Type: application/json'
123 curl --silent -X POST \
124 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/2/available-ips/ \
125 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
126 -H 'Content-Type: application/json'
128 curl --silent -X POST \
129 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/3/available-ips/ \
130 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
131 -H 'Content-Type: application/json'
133 curl --silent -X POST \
134 http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/3/available-ips/ \
135 -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \
136 -H 'Content-Type: application/json'