Add device traffic counters and ambiguous MAC detection
This commit is contained in:
@@ -22,6 +22,8 @@ test('control uses the dataplane socket protocol', async () => {
|
||||
await client.apply();
|
||||
const devices = await client.observeDevices();
|
||||
assert.equal(devices.running, true);
|
||||
const traffic = await client.observeTraffic();
|
||||
assert.equal(traffic.running, true);
|
||||
assert.equal(client.running, true);
|
||||
await client.restart();
|
||||
assert.equal((await client.stop()).running, false);
|
||||
@@ -29,6 +31,7 @@ test('control uses the dataplane socket protocol', async () => {
|
||||
'GET /status /run/dataplane.sock',
|
||||
'POST /apply /run/dataplane.sock',
|
||||
'GET /devices /run/dataplane.sock',
|
||||
'GET /device-traffic /run/dataplane.sock',
|
||||
'POST /restart /run/dataplane.sock',
|
||||
'POST /stop /run/dataplane.sock',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user