From 3402de0969b9b4ee8f91d5ba2f7ae83dba66b01c Mon Sep 17 00:00:00 2001 From: yangsbj Date: Mon, 17 Dec 2018 04:00:34 -0500 Subject: [PATCH] site.httpport for ubuntu diskless support --- xCAT-server/lib/xcat/plugins/debian.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/debian.pm b/xCAT-server/lib/xcat/plugins/debian.pm index d0bbd7225..cc265fabb 100644 --- a/xCAT-server/lib/xcat/plugins/debian.pm +++ b/xCAT-server/lib/xcat/plugins/debian.pm @@ -973,6 +973,7 @@ sub mknetboot my $xcatdport = "3001"; my $xcatiport = "3002"; my $nodestatus = "y"; + my $httpport="80"; my @myself = xCAT::NetworkUtils->determinehostname(); my $myname = $myself[ (scalar @myself) - 1 ]; @@ -1003,6 +1004,12 @@ sub mknetboot { $nodestatus = $ref->{value}; } + ($ref) = $sitetab->getAttribs({ key => 'httpport' }, 'value'); + if ($ref and $ref->{value}) + { + $httpport = $ref->{value}; + } + } my %donetftp = (); my %oents = %{ $ostab->getNodesAttribs(\@nodes, [qw(os arch profile provmethod)]) };