Commit d11a2760 authored by Simon Pastor's avatar Simon Pastor
Browse files

model poa celular 4g update

parent 0161bf6d
Loading
Loading
Loading
Loading
+23 −21
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ const (
	NetCharOperator  = "OPERATOR"
	NetCharZone      = "ZONE"
	NetCharPoa       = "POA"
	NetCharPoaCell4g = "POA CELLULAR 4G"
	NetCharDC        = "DISTANT CLOUD"
	NetCharEdge      = "EDGE"
	NetCharFog       = "FOG"
@@ -375,7 +376,7 @@ func (m *Model) UpdateNetChar(nc *ceModel.EventNetworkCharacteristicsUpdate) (er
			zone.NetChar.Throughput = nc.Throughput
			zone.NetChar.PacketLoss = nc.PacketLoss
			updated = true
		} else if ncType == NetCharPoa {
		} else if ncType == NetCharPoa || ncType == NetCharPoaCell4g {
			nl := n.object.(*ceModel.NetworkLocation)
			nl.TerminalLinkLatency = nc.Latency
			nl.TerminalLinkLatencyVariation = nc.LatencyVariation
@@ -402,6 +403,7 @@ func (m *Model) UpdateNetChar(nc *ceModel.EventNetworkCharacteristicsUpdate) (er
				NetCharOperator + ", " +
				NetCharZone + ", " +
				NetCharPoa + ", " +
				NetCharPoaCell4g + ", " +
				NetCharDC + ", " +
				NetCharEdge + ", " +
				NetCharFog + ", " +