Cleanup old test code
parent
0e54ef6520
commit
21274ecd0d
42
Program.cs
42
Program.cs
|
@ -48,53 +48,11 @@ namespace ln.skyscanner
|
||||||
{
|
{
|
||||||
SNMPEngine.DefaultEngine.Timeout = 3500;
|
SNMPEngine.DefaultEngine.Timeout = 3500;
|
||||||
|
|
||||||
|
|
||||||
if (!SkyScanner.Instance.Entities.BlockedNetworks.Contains(Network4.Parse("192.168.0.0/16")))
|
if (!SkyScanner.Instance.Entities.BlockedNetworks.Contains(Network4.Parse("192.168.0.0/16")))
|
||||||
SkyScanner.Instance.Entities.BlockedNetworks.Insert(Network4.Parse("192.168.0.0/16"));
|
SkyScanner.Instance.Entities.BlockedNetworks.Insert(Network4.Parse("192.168.0.0/16"));
|
||||||
if (!SkyScanner.Instance.Entities.BlockedNetworks.Contains(Network4.Parse("10.200.0.0/16")))
|
if (!SkyScanner.Instance.Entities.BlockedNetworks.Contains(Network4.Parse("10.200.0.0/16")))
|
||||||
SkyScanner.Instance.Entities.BlockedNetworks.Insert(Network4.Parse("10.200.0.0/16"));
|
SkyScanner.Instance.Entities.BlockedNetworks.Insert(Network4.Parse("10.200.0.0/16"));
|
||||||
|
|
||||||
|
|
||||||
//using (ODB odb = new ODB("odb"))
|
|
||||||
//{
|
|
||||||
|
|
||||||
//ODBCollection col = odb.GetCollection("test");
|
|
||||||
|
|
||||||
//foreach (ODBDocument odoc in col)
|
|
||||||
//{
|
|
||||||
// Console.WriteLine("Stored DOC: {0}", odoc);
|
|
||||||
// if (!odoc.Contains("counter"))
|
|
||||||
// odoc["counter"] = 0;
|
|
||||||
// else
|
|
||||||
// odoc["counter"] = odoc["counter"].AsInt + 1;
|
|
||||||
|
|
||||||
// col.Upsert(odoc);
|
|
||||||
//}
|
|
||||||
|
|
||||||
//ODBDocument doc = new ODBDocument();
|
|
||||||
|
|
||||||
//doc["snmp.msg"] = "Hallo WelT!";
|
|
||||||
//doc["name"] = "Harald";
|
|
||||||
//doc["alter"] = 39;
|
|
||||||
//doc["genauer"] = 34.5;
|
|
||||||
//ODBDocument ndoc = new ODBDocument();
|
|
||||||
//doc["keywords"] = ndoc;
|
|
||||||
|
|
||||||
//ndoc["eins"] = 1;
|
|
||||||
//ndoc["zwei"] = 2;
|
|
||||||
//ndoc["drei"] = 3;
|
|
||||||
|
|
||||||
//Console.WriteLine(doc);
|
|
||||||
|
|
||||||
//col.Insert(doc);
|
|
||||||
|
|
||||||
//Node node = new Node(CIDR.Parse("1.2.3.4"));
|
|
||||||
//ODBDocument nodeDoc = ODBMapper.Default.ToODBValue(node).AsDocument;
|
|
||||||
//Console.WriteLine("Node: {0}", nodeDoc);
|
|
||||||
|
|
||||||
//Node node2 = ODBMapper.Default.ToNativeValue<Node>(nodeDoc);
|
|
||||||
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue