func (nde *DeviceEvent) GetMessage() string {
	switch nde.EventFlag {
	case DeviceRegistration:
		if nde.Device.PeerIfindex == 0 {
			return "New network device registered"
		}
		return "New veth pair registered"
	case DeviceUnregistration:
		return "Device unregistered"
	case DeviceFree:
		return "Device structure freed"
	default:
		return fmt.Sprintf("Unknown event %v", nde.EventFlag)
	}
}
// GetMessage - Returns a message for this event
Returns a message for this event
// GetMessage - Returns a message for this event
func (nde *DeviceEvent) GetMessage() string {
	switch nde.EventFlag {
	case DeviceRegistration:
		if nde.Device.PeerIfindex == 0 {
			return "New network device registered"
		}
		return "New veth pair registered"
	case DeviceUnregistration:
		return "Device unregistered"
	case DeviceFree:
		return "Device structure freed"
	default:
		return fmt.Sprintf("Unknown event %v", nde.EventFlag)
	}
}
func ( nde * DeviceEvent ) GetMessage ( ) string { switch nde . EventFlag { case DeviceRegistration : if nde . Device . PeerIfindex == 0 { return " " } return " " case DeviceUnregistration : return " " case DeviceFree : return " " default : return fmt . Sprintf ( " " , nde . EventFlag ) } }
Returns a message for this event
Returns a message for this event