From e3f55c7698e774ccda7d9246ff7f730578fc24ad Mon Sep 17 00:00:00 2001 From: daniceexi Date: Mon, 1 Mar 2010 10:12:45 +0000 Subject: [PATCH] defect 2946432: support the attributes in switch table for node object git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5320 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Schema.pm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 90de3da71..23f9ec876 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -1439,6 +1439,25 @@ my @nodeattrs = ( tabentry => 'websrv.password', access_tabentry => 'websrv.node=attr:node', }, +###################### +# switch table # +###################### + {attr_name => 'switch', + tabentry => 'switch.switch', + access_tabentry => 'switch.node=attr:node', + }, + {attr_name => 'switchport', + tabentry => 'switch.port', + access_tabentry => 'switch.node=attr:node', + }, + {attr_name => 'switchvlan', + tabentry => 'switch.vlan', + access_tabentry => 'switch.node=attr:node', + }, + {attr_name => 'switchinterface', + tabentry => 'switch.interface', + access_tabentry => 'switch.node=attr:node', + }, );