Commit ed5f61b8 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add missing interface_types for iol2,ilo3, and drac. Since we use

them as an interface_type in the interfaces table, we should have
parent fb32c5b6
......@@ -37,6 +37,11 @@ INSERT IGNORE INTO `interface_types` VALUES ('generic_1G',1000000,1,'Generic GB'
INSERT IGNORE INTO `interface_capabilities` VALUES ('generic_1G','protocols','ethernet');
INSERT IGNORE INTO `interface_capabilities` VALUES ('generic_1G','ethernet_defspeed','1000000');
-- We use these types for the ilo/drac management interfaces.
INSERT INTO `interface_types` VALUES ('ilo2',0,1,'HP','HP iLO 2',1,'RJ45');
INSERT INTO `interface_types` VALUES ('ilo3',0,1,'HP','HP iLO 3',1,'RJ45');
INSERT INTO `interface_types` VALUES ('drac',0,1,'Dell','Dell Drac',1,'RJ45');
-- For the external link support.
INSERT INTO `node_types` VALUES ('bbgeni','bbgeni',NULL,NULL,0,0,0,0,0,0,0,0,0,0,0,0);
INSERT INTO `node_types` VALUES ('bbgenivm','bbgenivm',NULL,NULL,1,0,0,1,0,0,0,0,0,0,0,0);
# Add missing interface types we use for ilo/drac.
use strict;
use libdb;
sub DoUpdate($$$)
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("replace into `interface_types` values ".
"('ilo2',0,1,'HP','HP iLO 2',1,'RJ45')");
DBQueryFatal("replace into `interface_types` values ".
"('ilo3',0,1,'HP','HP iLO 3',1,'RJ45')");
DBQueryFatal("replace into `interface_types` values ".
"('drac',0,1,'Dell','Dell Drac',1,'RJ45')");
return 0;
# Local Variables:
# mode:perl
# End:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment