From 1b87e53d2d8ba0267eebc2c9af059d1ebb90d096 Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 2 May 2011 18:45:26 +0000 Subject: [PATCH] add domain attribute to networks table git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9459 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Schema.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index f2d925867..a2d136ccd 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -429,7 +429,7 @@ mpa => { }, }, networks => { - cols => [qw(netname net mask mgtifname gateway dhcpserver tftpserver nameservers ntpservers logservers dynamicrange nodehostname ddnsdomain vlanid comments disable)], + cols => [qw(netname net mask mgtifname gateway dhcpserver tftpserver nameservers ntpservers logservers dynamicrange nodehostname ddnsdomain vlanid domain comments disable)], keys => [qw(net mask)], table_desc => 'Describes the networks in the cluster and info necessary to set up nodes on that network.', descriptions => { @@ -447,6 +447,7 @@ networks => { nodehostname => 'A regular expression used to specify node name to network-specific hostname. i.e. "/\z/-secondary/" would mean that the hostname of "n1" would be n1-secondary on this network. By default, the nodename is assumed to equal the hostname, followed by nodename-interfacename.', ddnsdomain => 'A domain to be combined with nodename to construct FQDN for DDNS updates induced by DHCP. This is not passed down to the client as "domain"', vlanid => 'The vlan ID if this network is within a vlan.', + domain => 'The DNS domain name (ex. cluster.com).', comments => 'Any user-written notes.', disable => "Set to 'yes' or '1' to comment out this row.", }, @@ -2102,6 +2103,10 @@ push(@{$defspec{node}->{'attrs'}}, @nodeattrs); {attr_name => 'vlanid', tabentry => 'networks.vlanid', access_tabentry => 'networks.netname=attr:netname', + }, + {attr_name => 'domain', + tabentry => 'networks.domain', + access_tabentry => 'networks.netname=attr:netname', }, {attr_name => 'usercomment', tabentry => 'networks.comments',