Filter container interfaces from device discovery and policies
This commit is contained in:
@@ -18,6 +18,8 @@ test('device policy rules match the full identity before the TPROXY fallback', (
|
||||
assert.deepEqual(normalizeDirectDevices([{ ...directDevice, mac: directDevice.mac.toUpperCase() }]), [directDevice]);
|
||||
assert.throws(() => normalizeDirectDevices([directDevice, directDevice]), /повторяющаяся/);
|
||||
assert.throws(() => normalizeDirectDevices([{ ...directDevice, interface: 'br-user' }]), /identity/);
|
||||
assert.throws(() => normalizeDirectDevices([{ ...directDevice, interface: 'docker0' }]), /identity/);
|
||||
assert.throws(() => normalizeDirectDevices([{ ...directDevice, interface: 'veth1234' }]), /identity/);
|
||||
|
||||
const restore = buildDevicePolicyRestore({
|
||||
devices: [directDevice],
|
||||
|
||||
Reference in New Issue
Block a user