mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
add the new object type "switch"
This commit is contained in:
parent
cc4dbdf8a3
commit
8ed200c029
@ -1739,6 +1739,7 @@ foreach my $tabname (keys(%xCAT::ExtTab::ext_tabspec)) {
|
||||
osdistro=> { attrs => [], attrhash => {}, objkey => 'osdistroname' },
|
||||
osdistroupdate=> { attrs => [], attrhash => {}, objkey => 'osupdatename' },
|
||||
zone=> { attrs => [], attrhash => {}, objkey => 'zonename' },
|
||||
switch=> { attrs => [], attrhash => {}, objkey => 'switch' },
|
||||
|
||||
);
|
||||
|
||||
@ -3760,6 +3761,67 @@ push(@{$defspec{group}->{'attrs'}}, @nodeattrs);
|
||||
|
||||
);
|
||||
|
||||
|
||||
#############################
|
||||
# switch object #
|
||||
#############################
|
||||
# switch table #
|
||||
#############################
|
||||
@{$defspec{switch}->{'attrs'}} = (
|
||||
{attr_name => 'switch',
|
||||
tabentry => 'switches.switch',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'snmpusername',
|
||||
tabentry => 'switches.username',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'snmppassword',
|
||||
tabentry => 'switches.password',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'snmpversion',
|
||||
tabentry => 'switches.snmpversion',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'privacy',
|
||||
tabentry => 'switches.privacy',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'auth',
|
||||
tabentry => 'switches.auth',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'linkports',
|
||||
tabentry => 'switches.linkports',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'sshusername',
|
||||
tabentry => 'switches.sshusername',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'sshpassword',
|
||||
tabentry => 'switches.sshpassword',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'protocol',
|
||||
tabentry => 'switches.protocol',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'switchtype',
|
||||
tabentry => 'switches.switchtype',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'comments',
|
||||
tabentry => 'switches.comments',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
{attr_name => 'disable',
|
||||
tabentry => 'switches.disable',
|
||||
access_tabentry => 'switches.switch=attr:switch',
|
||||
},
|
||||
);
|
||||
|
||||
###################################################
|
||||
|
||||
###################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user