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": "192.168.20.0/24",
77 "description": "IP Pool for protected network - vFW use case"
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": "192.168.10.0/24",
90 "description": "IP Pool for unprotected network - vFW use case"
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": "10.0.0.0/8",
103 "description": "IP Pool for ONAP - general purpose"