(entry *agent.RealClientToRealServer)
| 428 | } |
| 429 | |
| 430 | func AformatRealEntry(entry *agent.RealClientToRealServer) string { |
| 431 | buffer := bytes.Buffer{} |
| 432 | format := "{epc_id_1: %d, ipv4_1: %s, port_1: %d, " + |
| 433 | "epc_id_0: %d, ipv4_0: %s, port_0: %d, " + |
| 434 | "epc_id_real: %d, ipv4_real: %s, port_real: %d, pid_real: %d, agent_id_real: %d}" |
| 435 | buffer.WriteString(fmt.Sprintf(format, |
| 436 | entry.GetEpcId_1(), utils.IpFromUint32(entry.GetIpv4_1()).String(), entry.GetPort_1(), |
| 437 | entry.GetEpcId_0(), utils.IpFromUint32(entry.GetIpv4_0()).String(), entry.GetPort_0(), |
| 438 | entry.GetEpcIdReal(), utils.IpFromUint32(entry.GetIpv4Real()).String(), |
| 439 | entry.GetPortReal(), entry.GetPidReal(), entry.GetAgentIdReal())) |
| 440 | return buffer.String() |
| 441 | } |
| 442 | |
| 443 | func ArealGlobal(cmd *cobra.Command) { |
| 444 | conn := agentGetConn(cmd) |
no test coverage detected