From e47e443468e0fd98a28aefc62f97bc081ed40abe Mon Sep 17 00:00:00 2001 From: bybai Date: Tue, 12 Jan 2016 02:36:55 -0500 Subject: [PATCH] enhance Schema.pm --- perl-xCAT/xCAT/Schema.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 94f0c1933..6e2c33c20 100755 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -1437,7 +1437,7 @@ firmware => { }, nics => { - cols => [qw(node nicips nichostnamesuffixes nichostnameprefixes nictypes niccustomscripts nicnetworks nicaliases nicextraparams nicdevice comments disable)], + cols => [qw(node nicips nichostnamesuffixes nichostnameprefixes nictypes niccustomscripts nicnetworks nicaliases nicextraparams nicdevices comments disable)], keys => [qw(node)], tablespace =>'XCATTBS16K', table_desc => 'Stores NIC details.', @@ -1480,7 +1480,7 @@ nics => { If multiple ip addresses are associated with each NIC: !|,!|, for example, eth0!MTU=1500|MTU=1460,ib0!MTU=65520 CONNECTED_MODE=yes. The xCAT object definition commands support to use nicextraparams. as the sub attributes.', - nicdevice => 'Comma-separated list of NIC device per NIC. !,!, e.g. eth0!bond0,bond0!br0. The xCAT object definition commands support to use nicdevice. as the sub attributes.', + nicdevices => 'Comma-separated list of NIC device per NIC, multiple ethernet devices can be bonded as bond device, these ethernet devices are separated by |. !|,!, e.g. bond0!eth0|eth2,br0!bond0. The xCAT object definition commands support to use nicdevices. as the sub attributes.', comments => 'Any user-written notes.', disable => "Set to 'yes' or '1' to comment out this row.", }, @@ -2411,8 +2411,8 @@ my @nodeattrs = ( tabentry => 'nics.nicextraparams', access_tabentry => 'nics.node=attr:node', }, - {attr_name => 'nicdevice', - tabentry => 'nics.nicdevice', + {attr_name => 'nicdevices', + tabentry => 'nics.nicdevices', access_tabentry => 'nics.node=attr:node', }, #######################