Commit eae322d0 authored by Kirk Webb's avatar Kirk Webb

Add sitevars for tracking UE sequence numbers.

parent 8f6374ff
......@@ -162,6 +162,8 @@ INSERT INTO sitevariables VALUES ('images/default_typelist',NULL,'','List of typ
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);
INSERT INTO sitevariables VALUES ('phantomnet/message',NULL,'','Message to display at the top of the PhantomNet portal.',0);
INSERT INTO sitevariables VALUES ('ue/sim_sequence_default',NULL,'1000000','Default initial sequence number for PhantomNet UE SIMs',0);
INSERT INTO sitevariables VALUES ('ue/sim_sequence_increment',NULL,'1000000','Sequence number increment amount for PhantomNet UE SIMs',0);
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
......
#
# Add stuff for phantomnet genesis and portal banner message.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $var = "ue/sim_sequence_default";
if (!TBSiteVarExists($var)) {
my $desc = "Default initial sequence number for PhantomNet UE SIMs";
my $defval = "1000000";
DBQueryFatal("INSERT INTO sitevariables VALUES ".
"('$var',NULL,'$defval','$desc',0)");
}
$var = "ue/sim_sequence_increment";
if (!TBSiteVarExists($var)) {
my $desc = "Sequence number increment amount for PhantomNet UE SIMs";
my $defval = "1000000";
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