From 1886fa3c541be99f3141a1d2cda20f2dd62c2c80 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 28 Jan 2013 18:58:00 +0000 Subject: [PATCH] Have Template get a new directive: MANAGEDADDRESSMODE for use in certain appliance applications git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15003 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Template.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index a38a5dcf5..0c906276b 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -193,6 +193,7 @@ sub subvars { $inc =~ s/#WINADJOIN#/windows_join_data()/eg; $inc =~ s/#WINACCOUNTDATA#/windows_account_data()/eg; $inc =~ s/#WINDISABLENULLADMIN#/windows_disable_null_admin()/eg; + $inc =~ s/#MANAGEDADDRESSMODE#/managed_address_mode()/eg; $inc =~ s/#HOSTNAME#/$node/g; my $nrtab = xCAT::Table->new("noderes"); @@ -381,6 +382,9 @@ sub get_win_prodkey { return ""; #in the event that we have no specified key and no KMS key, then try with no key, user may have used some other mechanism } +sub managed_address_mode { + return $::XCATSITEVALS{managedaddressmode}; +} sub esxipv6setup { if ($::XCATSITEVALS{managedaddressmode} ne "autoula") { return ""; } # blank unless autoula my $hoststab;