From b0456e4c364869607fe022a58a6914299341584f Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 14 Jul 2015 15:31:00 +0200 Subject: [PATCH] MT#11027 Use proper bootstrap path. Change-Id: I54860359e11dbef56f76bab4a237aac6b69ae81a --- lib/NGCP/Panel/Utils/DeviceBootstrap/VendorRPC.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/NGCP/Panel/Utils/DeviceBootstrap/VendorRPC.pm b/lib/NGCP/Panel/Utils/DeviceBootstrap/VendorRPC.pm index 64994793c2..b9b000d48c 100644 --- a/lib/NGCP/Panel/Utils/DeviceBootstrap/VendorRPC.pm +++ b/lib/NGCP/Panel/Utils/DeviceBootstrap/VendorRPC.pm @@ -135,7 +135,7 @@ sub get_bootstrap_uri{ my $uri_params = $self->params->{redirect_params}->{sync_params} || ''; if(!$uri){ my $cfg = $self->bootstrap_uri_conf(); - $uri = "$cfg->{schema}://$cfg->{host}:$cfg->{port}/device/autoprov/config/"; + $uri = "$cfg->{schema}://$cfg->{host}:$cfg->{port}/device/autoprov/bootstrap/"; } $uri .= $uri_params; return $self->process_bootstrap_uri($uri); @@ -169,9 +169,10 @@ sub bootstrap_uri_conf{ my ($self) = @_; my $c = $self->params->{c}; my $cfg = { - schema => $c->config->{deviceprovisioning}->{secure} ? 'https' : 'http', + #schema => $c->config->{deviceprovisioning}->{secure} ? 'https' : 'http', + schema => 'http', # for bootstrapping, we always use http host => $c->config->{deviceprovisioning}->{host} // $c->req->uri->host, - port => $c->config->{deviceprovisioning}->{port} // 1444, + port => $c->config->{deviceprovisioning}->{bootstrap_port} // 1445, }; return $cfg; }