ing
This commit is contained in:
parent
57225c5b90
commit
51bf633ee8
|
@ -36,7 +36,7 @@ func Host(hostName string, address string, mac string) *omd.Host {
|
||||||
return &omd.Host{
|
return &omd.Host{
|
||||||
MetaIPType: omm.ToMetaIPType(omm.MetaIPTypeEnumV4),
|
MetaIPType: omm.ToMetaIPType(omm.MetaIPTypeEnumV4),
|
||||||
Name: hostName,
|
Name: hostName,
|
||||||
Address: fmt.Sprintf("%s.%s", address),
|
Address: fmt.Sprintf("%s.%s", ZONE_NETWORK, address),
|
||||||
Mac: mac,
|
Mac: mac,
|
||||||
Zone: Zone(),
|
Zone: Zone(),
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ func Test_ofDiscoverer_DiscoverHost(t *testing.T) {
|
||||||
case types.DiscoveryMessageTypePort:
|
case types.DiscoveryMessageTypePort:
|
||||||
log.Print("Discovered Port: ", msg.Data())
|
log.Print("Discovered Port: ", msg.Data())
|
||||||
case types.DiscoveryMessageTypeService:
|
case types.DiscoveryMessageTypeService:
|
||||||
log.Print("Discovered Service: ", msg.Data())
|
log.Print("Discovered Service: ", msg.Data(), " \n Port: ", msg.Data().(*omd.Service).Port, " \n Host: ", msg.Data().(*omd.Service).Port.Host)
|
||||||
case types.DiscoveryMessageTypeStart:
|
case types.DiscoveryMessageTypeStart:
|
||||||
log.Print("Discovery start: ", msg.Data())
|
log.Print("Discovery start: ", msg.Data())
|
||||||
case types.DiscoveryMessageTypeStop:
|
case types.DiscoveryMessageTypeStop:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user