Adding LinkUp/LinkDown when a region is started or stoped.
Those two events could be used to compute the region availibilityavinationmerge
parent
f8d49e0a30
commit
7eda9364fd
|
@ -350,11 +350,9 @@ namespace OpenSim
|
||||||
if (scene.SnmpService != null)
|
if (scene.SnmpService != null)
|
||||||
{
|
{
|
||||||
scene.SnmpService.ColdStart(1,scene);
|
scene.SnmpService.ColdStart(1,scene);
|
||||||
|
scene.SnmpService.LinkDown(scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
// it should be a LinkDown event
|
|
||||||
// Maped inside opennms
|
|
||||||
// bad...
|
|
||||||
if (scene.SnmpService != null)
|
if (scene.SnmpService != null)
|
||||||
{
|
{
|
||||||
scene.SnmpService.Warning("Loading prins", scene);
|
scene.SnmpService.Warning("Loading prins", scene);
|
||||||
|
@ -439,6 +437,7 @@ namespace OpenSim
|
||||||
if (scene.SnmpService != null)
|
if (scene.SnmpService != null)
|
||||||
{
|
{
|
||||||
scene.SnmpService.Warning("The region is operational", scene);
|
scene.SnmpService.Warning("The region is operational", scene);
|
||||||
|
scene.SnmpService.LinkUp(scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
scene.StartTimer();
|
scene.StartTimer();
|
||||||
|
|
|
@ -15,4 +15,9 @@ public interface ISnmpModule
|
||||||
void Major(string Message, Scene scene);
|
void Major(string Message, Scene scene);
|
||||||
void ColdStart(int step , Scene scene);
|
void ColdStart(int step , Scene scene);
|
||||||
void Shutdown(int step , Scene scene);
|
void Shutdown(int step , Scene scene);
|
||||||
|
//
|
||||||
|
// Node Start/stop events
|
||||||
|
//
|
||||||
|
void LinkUp(Scene scene);
|
||||||
|
void LinkDown(Scene scene);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue