Was wondering if anyone else is seeing this or if I'm simply doing
something wierd.
Using GenieACS 1.1 When I query by ID or WAN Mac address via API, Im
returning all devices.
FWIW This was working as expected in version 1.0.
Query by MAC:
query={"InternetGatewayDevice.WANDevice.5.WANConnectionDevice.1.WANIPConnection./^\\d+$/.MACAddress"
:"'. _MAC($mac) .'"}&projection=InternetGatewayDevice.LANDevice
Query by ID:
query={"device":"EC4F82-ONT-CXNK00309984"}&projection=InternetGatewayDevice.LANDevice
Returned Data:
{
'_id' => 'EC4F82-ONT-CXNK0030C7A5',
'InternetGatewayDevice' => {
'LANDevice' => {
*** SNIP ***
}
} },
{
'_id' => '0000CA-DG2470A-G5UBSY89A600319'
},
{
'_id' => 'EC4F82-ONT-CXNK00309998',
'InternetGatewayDevice' => {
'LANDevice' => {
*** SNIP ***
}
}
}
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users