diff --git a/perl-xCAT/xCAT/InstUtils.pm b/perl-xCAT/xCAT/InstUtils.pm index 3063e1069..61b22fddb 100644 --- a/perl-xCAT/xCAT/InstUtils.pm +++ b/perl-xCAT/xCAT/InstUtils.pm @@ -1329,5 +1329,23 @@ sub dolitesetup return 0; } +#---------------------------------------------------------------------------- + +=head3 convert_xcatmaster + + Convert the keyword of nameservers attr in site/networks table to IP address. + (Either the management node or a service node) + +=cut + +#----------------------------------------------------------------------------- + +sub convert_xcatmaster +{ + my $shorthost = xCAT::InstUtils->myxCATname(); + my $selfip = xCAT::NetworkUtils->getipaddr($shorthost); + + return $selfip; +} 1;