diff options
author | Alexis de Talhouët <adetalhouet89@gmail.com> | 2018-11-16 14:49:10 -0500 |
---|---|---|
committer | Alexis de Talhouët <adetalhouet89@gmail.com> | 2018-11-16 14:56:33 -0500 |
commit | 67b5d6f5ca0bd245efbc00db052753340cbb8afe (patch) | |
tree | 1adf6c1771d871b4f37ad79901b77492beb11b73 | |
parent | 15a58a786433967dc4b077df836ef4447ef28bbe (diff) |
Reserve first 2 IPs from pool - vFWNG
For vFWNG use cases, the ip pool gets created
prior to the use case even being designed.
Just noticed OpenStack is using .1 for Gateway
and .2 for DHCP, hence these two IPs can't be
assign to any port, else, process will fail.
Change-Id: Id8232ce2fe81f1e03ee8f97f3b251b5b22b4fcba
Issue-ID: OOM-1522
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
-rwxr-xr-x | kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/provisioning/provision.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/provisioning/provision.sh b/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/provisioning/provision.sh index adf10a1d0d..78f79cedb7 100755 --- a/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/provisioning/provision.sh +++ b/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/provisioning/provision.sh @@ -103,3 +103,34 @@ curl --silent -X POST \ "description": "IP Pool for ONAP - general purpose" }' +# Reserve ports, gateway and dhcp, for each protected and unprotected networks. + +curl --silent -X POST \ + http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/1/available-ips/ \ + -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \ + -H 'Content-Type: application/json' + +curl --silent -X POST \ + http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/1/available-ips/ \ + -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \ + -H 'Content-Type: application/json' + +curl --silent -X POST \ + http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/2/available-ips/ \ + -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \ + -H 'Content-Type: application/json' + +curl --silent -X POST \ + http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/2/available-ips/ \ + -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \ + -H 'Content-Type: application/json' + +curl --silent -X POST \ + http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/3/available-ips/ \ + -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \ + -H 'Content-Type: application/json' + +curl --silent -X POST \ + http://{{ .Values.service.name }}:{{ .Values.service.internalPort }}/api/ipam/prefixes/3/available-ips/ \ + -H 'Authorization: Token onceuponatimeiplayedwithnetbox20180814' \ + -H 'Content-Type: application/json' |