This commit is contained in:
insanity 2018-09-03 15:07:43 +09:00
parent 76eb21a8d5
commit 57225c5b90
2 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ import (
const ( const (
ZONE_NETWORK = "192.168.1" ZONE_NETWORK = "192.168.1"
ZONE_IFACE = "\\Device\\NPF_{1924FA2B-6927-4BA5-AF43-876C3F8853CE}" ZONE_IFACE = "\\Device\\NPF_{1924FA2B-6927-4BA5-AF43-876C3F8853CE}"
ZONE_ADDRESS = "203" ZONE_ADDRESS = "103"
ZONE_MAC = "30:9C:23:15:A3:09" ZONE_MAC = "30:9C:23:15:A3:09"
) )
@ -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", address),
Mac: mac, Mac: mac,
Zone: Zone(), Zone: Zone(),
} }