Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Find Inter-connected Ids
// Connection Map
// https://github.com/Ubiquiti-UI/aircontrol/blob/master/src/scripts/services/models/Topology.js#L188
{
"0974b31a06cb437d93387a3098e8303a": ["bedb1e010b0649ecb9312165ab8dd844", "f9971446bb464b8f9cc47208993c208b", "cpe_0974b31a06cb437d93387a3098e8303a"],
"bedb1e010b0649ecb9312165ab8dd844": ["0974b31a06cb437d93387a3098e8303a", "12130bf43d3d49fbae37b6062c4b08b9", "4f56e442425547ebbe69d200abddaf01", "5226c3d7fff34157819a4486991bd2ab", "96a51d559dd542e18739b2b9910d5a1d", "acd9e4d8a464406895e2a7a34808ddd9", "b2bd748e2c214b8e9f2d034684940641", "ef5154fe27734fc4a2395cad38f16fd4", "f9971446bb464b8f9cc47208993c208b"],
"f9971446bb464b8f9cc47208993c208b": ["0974b31a06cb437d93387a3098e8303a", "bedb1e010b0649ecb9312165ab8dd844"],
"12130bf43d3d49fbae37b6062c4b08b9": ["4f56e442425547ebbe69d200abddaf01", "bedb1e010b0649ecb9312165ab8dd844", "cpe_12130bf43d3d49fbae37b6062c4b08b9"],
"4f56e442425547ebbe69d200abddaf01": ["12130bf43d3d49fbae37b6062c4b08b9", "bedb1e010b0649ecb9312165ab8dd844"],
"5226c3d7fff34157819a4486991bd2ab": ["bedb1e010b0649ecb9312165ab8dd844"],
"96a51d559dd542e18739b2b9910d5a1d": ["bedb1e010b0649ecb9312165ab8dd844", "ef5154fe27734fc4a2395cad38f16fd4"],
"ef5154fe27734fc4a2395cad38f16fd4": ["96a51d559dd542e18739b2b9910d5a1d", "bedb1e010b0649ecb9312165ab8dd844"],
"acd9e4d8a464406895e2a7a34808ddd9": ["bedb1e010b0649ecb9312165ab8dd844"],
"b2bd748e2c214b8e9f2d034684940641": ["bedb1e010b0649ecb9312165ab8dd844"],
"cpe_0974b31a06cb437d93387a3098e8303a": ["0974b31a06cb437d93387a3098e8303a"],
"cpe_12130bf43d3d49fbae37b6062c4b08b9": ["12130bf43d3d49fbae37b6062c4b08b9"]
}
// Chains
// https://github.com/Ubiquiti-UI/aircontrol/blob/master/src/scripts/services/models/Topology.js#L208
[
["0974b31a06cb437d93387a3098e8303a", "bedb1e010b0649ecb9312165ab8dd844", "cpe_0974b31a06cb437d93387a3098e8303a"],
["0974b31a06cb437d93387a3098e8303a", "12130bf43d3d49fbae37b6062c4b08b9", "4f56e442425547ebbe69d200abddaf01"],
["0974b31a06cb437d93387a3098e8303a", "bedb1e010b0649ecb9312165ab8dd844", "f9971446bb464b8f9cc47208993c208b"],
["12130bf43d3d49fbae37b6062c4b08b9", "4f56e442425547ebbe69d200abddaf01", "bedb1e010b0649ecb9312165ab8dd844"],
["12130bf43d3d49fbae37b6062c4b08b9", "4f56e442425547ebbe69d200abddaf01", "bedb1e010b0649ecb9312165ab8dd844"],
["5226c3d7fff34157819a4486991bd2ab", "bedb1e010b0649ecb9312165ab8dd844"],
["96a51d559dd542e18739b2b9910d5a1d", "bedb1e010b0649ecb9312165ab8dd844", "ef5154fe27734fc4a2395cad38f16fd4"],
["96a51d559dd542e18739b2b9910d5a1d", "bedb1e010b0649ecb9312165ab8dd844", "ef5154fe27734fc4a2395cad38f16fd4"],
["acd9e4d8a464406895e2a7a34808ddd9", "bedb1e010b0649ecb9312165ab8dd844"],
["b2bd748e2c214b8e9f2d034684940641", "bedb1e010b0649ecb9312165ab8dd844"],
["0974b31a06cb437d93387a3098e8303a", "cpe_0974b31a06cb437d93387a3098e8303a"],
["12130bf43d3d49fbae37b6062c4b08b9", "cpe_12130bf43d3d49fbae37b6062c4b08b9"]
]
// Chain IDs
// https://github.com/Ubiquiti-UI/aircontrol/blob/master/src/scripts/services/models/Topology.js#L215
[
"0974b31a06cb437d93387a3098e8303a&bedb1e010b0649ecb9312165ab8dd844&cpe_0974b31a06cb437d93387a3098e8303a&f9971446bb464b8f9cc47208993c208b",
"0974b31a06cb437d93387a3098e8303a&12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&5226c3d7fff34157819a4486991bd2ab&96a51d559dd542e18739b2b9910d5a1d&acd9e4d8a464406895e2a7a34808ddd9&b2bd748e2c214b8e9f2d034684940641&bedb1e010b0649ecb9312165ab8dd844&ef5154fe27734fc4a2395cad38f16fd4&f9971446bb464b8f9cc47208993c208b",
"0974b31a06cb437d93387a3098e8303a&bedb1e010b0649ecb9312165ab8dd844&f9971446bb464b8f9cc47208993c208b",
"12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&bedb1e010b0649ecb9312165ab8dd844&cpe_12130bf43d3d49fbae37b6062c4b08b9",
"12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&bedb1e010b0649ecb9312165ab8dd844",
"5226c3d7fff34157819a4486991bd2ab&bedb1e010b0649ecb9312165ab8dd844",
"96a51d559dd542e18739b2b9910d5a1d&bedb1e010b0649ecb9312165ab8dd844&ef5154fe27734fc4a2395cad38f16fd4",
"96a51d559dd542e18739b2b9910d5a1d&bedb1e010b0649ecb9312165ab8dd844&ef5154fe27734fc4a2395cad38f16fd4",
"acd9e4d8a464406895e2a7a34808ddd9&bedb1e010b0649ecb9312165ab8dd844",
"b2bd748e2c214b8e9f2d034684940641&bedb1e010b0649ecb9312165ab8dd844",
"0974b31a06cb437d93387a3098e8303a&cpe_0974b31a06cb437d93387a3098e8303a",
"12130bf43d3d49fbae37b6062c4b08b9&cpe_12130bf43d3d49fbae37b6062c4b08b9"
]
// Pattern Look Up
// https://github.com/Ubiquiti-UI/aircontrol/blob/master/src/scripts/services/models/Topology.js#L225
{
"0974b31a06cb437d93387a3098e8303a&bedb1e010b0649ecb9312165ab8dd844&cpe_0974b31a06cb437d93387a3098e8303a&f9971446bb464b8f9cc47208993c208b": {
"count": 1,
"depth": 4
},
"0974b31a06cb437d93387a3098e8303a&bedb1e010b0649ecb9312165ab8dd844&cpe_0974b31a06cb437d93387a3098e8303a": {
"count": 1,
"depth": 3
},
"0974b31a06cb437d93387a3098e8303a&12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&5226c3d7fff34157819a4486991bd2ab&96a51d559dd542e18739b2b9910d5a1d&acd9e4d8a464406895e2a7a34808ddd9&b2bd748e2c214b8e9f2d034684940641&bedb1e010b0649ecb9312165ab8dd844&ef5154fe27734fc4a2395cad38f16fd4&f9971446bb464b8f9cc47208993c208b": {
"count": 1,
"depth": 10
},
"0974b31a06cb437d93387a3098e8303a&12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&5226c3d7fff34157819a4486991bd2ab&96a51d559dd542e18739b2b9910d5a1d&acd9e4d8a464406895e2a7a34808ddd9&b2bd748e2c214b8e9f2d034684940641&bedb1e010b0649ecb9312165ab8dd844&ef5154fe27734fc4a2395cad38f16fd4": {
"count": 1,
"depth": 9
},
"0974b31a06cb437d93387a3098e8303a&12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&5226c3d7fff34157819a4486991bd2ab&96a51d559dd542e18739b2b9910d5a1d&acd9e4d8a464406895e2a7a34808ddd9&b2bd748e2c214b8e9f2d034684940641&bedb1e010b0649ecb9312165ab8dd844": {
"count": 1,
"depth": 8
},
"0974b31a06cb437d93387a3098e8303a&12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&5226c3d7fff34157819a4486991bd2ab&96a51d559dd542e18739b2b9910d5a1d&acd9e4d8a464406895e2a7a34808ddd9&b2bd748e2c214b8e9f2d034684940641": {
"count": 1,
"depth": 7
},
"0974b31a06cb437d93387a3098e8303a&12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&5226c3d7fff34157819a4486991bd2ab&96a51d559dd542e18739b2b9910d5a1d&acd9e4d8a464406895e2a7a34808ddd9": {
"count": 1,
"depth": 6
},
"0974b31a06cb437d93387a3098e8303a&12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&5226c3d7fff34157819a4486991bd2ab&96a51d559dd542e18739b2b9910d5a1d": {
"count": 1,
"depth": 5
},
"0974b31a06cb437d93387a3098e8303a&12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&5226c3d7fff34157819a4486991bd2ab": {
"count": 1,
"depth": 4
},
"0974b31a06cb437d93387a3098e8303a&12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01": {
"count": 1,
"depth": 3
},
"0974b31a06cb437d93387a3098e8303a&bedb1e010b0649ecb9312165ab8dd844&f9971446bb464b8f9cc47208993c208b": {
"count": 3,
"depth": 3
},
"12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&bedb1e010b0649ecb9312165ab8dd844&cpe_12130bf43d3d49fbae37b6062c4b08b9": {
"count": 1,
"depth": 4
},
"12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&bedb1e010b0649ecb9312165ab8dd844": {
"count": 3,
"depth": 3
},
"96a51d559dd542e18739b2b9910d5a1d&bedb1e010b0649ecb9312165ab8dd844&ef5154fe27734fc4a2395cad38f16fd4": {
"count": 3,
"depth": 3
}
}
// Inter-connected IDs, or the IDs that should all be connected to each other by a Switch
// https://github.com/Ubiquiti-UI/aircontrol/blob/master/src/scripts/services/models/Topology.js#L225
[
"0974b31a06cb437d93387a3098e8303a&bedb1e010b0649ecb9312165ab8dd844&f9971446bb464b8f9cc47208993c208b",
"12130bf43d3d49fbae37b6062c4b08b9&4f56e442425547ebbe69d200abddaf01&bedb1e010b0649ecb9312165ab8dd844",
"96a51d559dd542e18739b2b9910d5a1d&bedb1e010b0649ecb9312165ab8dd844&ef5154fe27734fc4a2395cad38f16fd4"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.