def test_bridge_delif(self):
        """Test bridge interface removal.
        """
        netdev.bridge_delif('foo', 'bar')

        treadmill.subproc.check_call.assert_called_with(
            [
                'brctl', 'delif', 'foo', 'bar',
            ],
        )
Beispiel #2
0
    def test_bridge_delif(self):
        """Test bridge interface removal.
        """
        netdev.bridge_delif('bar')

        treadmill.subproc.check_call.assert_called_with(
            [
                'ip', 'link', 'set', 'dev', 'bar', 'nomaster',
            ],
        )