Commit 15f2c5db authored by Leigh Stoller's avatar Leigh Stoller

Add sitevar, general/no_openflow to prevent openflow links if the

switches do not support it, we want to fail earlier then snmpit.
parent bbd9fd73
......@@ -160,6 +160,7 @@ INSERT INTO sitevariables VALUES ('aptui/autoextend_maxage',NULL,'14','Maximum a
INSERT INTO sitevariables VALUES ('node/nfs_transport',NULL,'udp','Transport protocol to be used by NFS mounts on clients. One of: udp, tcp, or osdefault, where osdefault means use the client OS default setting.',0);
INSERT INTO sitevariables VALUES ('images/default_typelist',NULL,'','List of types to associate with an imported image when it is not appropriate to associate all existing types.',0);
INSERT INTO sitevariables VALUES ('protogeni/use_imagetracker',NULL,'0','Enable use of the image tracker.',0);
INSERT INTO sitevariables VALUES ('general/no_openflow',NULL,'0','Disallow topologies that specify openflow controllers, there is no local support for it.',0);
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $var = "general/no_openflow";
if (!TBSiteVarExists($var)) {
my $desc = "Disallow topologies that specify openflow controllers, ".
"there is no local support for it.";
my $defval = "0";
DBQueryFatal("INSERT INTO sitevariables VALUES ".
"('$var',NULL,'$defval','$desc',0)");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
Markdown is supported
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