|
|
@ -1,6 +1,7 @@ |
|
|
|
import { getAnvilData, getLocalHostUUID } from '../../accessModule'; |
|
|
|
import { getAnvilData, getLocalHostUUID } from '../../accessModule'; |
|
|
|
import { buildUnknownIDCondition } from '../../buildCondition'; |
|
|
|
import { buildUnknownIDCondition } from '../../buildCondition'; |
|
|
|
import buildGetRequestHandler from '../buildGetRequestHandler'; |
|
|
|
import buildGetRequestHandler from '../buildGetRequestHandler'; |
|
|
|
|
|
|
|
import { match } from '../../match'; |
|
|
|
|
|
|
|
|
|
|
|
const buildHostConnections = ( |
|
|
|
const buildHostConnections = ( |
|
|
|
fromHostUUID: string, |
|
|
|
fromHostUUID: string, |
|
|
@ -90,7 +91,7 @@ export const getHostConnection = buildGetRequestHandler( |
|
|
|
queryStdout.forEach( |
|
|
|
queryStdout.forEach( |
|
|
|
([ipAddressUUID, hostUUID, ipAddress, network]) => { |
|
|
|
([ipAddressUUID, hostUUID, ipAddress, network]) => { |
|
|
|
const [, networkType, rawNetworkNumber, rawNetworkLinkNumber] = |
|
|
|
const [, networkType, rawNetworkNumber, rawNetworkLinkNumber] = |
|
|
|
network.match(/^([^\s]+)(\d+)_[^\s]+(\d+)$/); |
|
|
|
match(network, /^([^\s]+)(\d+)_[^\s]+(\d+)$/); |
|
|
|
const connectionKey = getConnectionKey(hostUUID); |
|
|
|
const connectionKey = getConnectionKey(hostUUID); |
|
|
|
|
|
|
|
|
|
|
|
connections[connectionKey].inbound.ipAddress[ipAddress] = { |
|
|
|
connections[connectionKey].inbound.ipAddress[ipAddress] = { |
|
|
|