Ejemplo n.º 1
0
    def testMirroring(self):
        tc.setPortMirroring(self._bridge0.devName, self._bridge1.devName)
        assert self._sendPing(), 'Bridge received no mirrored ping requests.'

        tc.unsetPortMirroring(self._bridge0.devName, self._bridge1.devName)
        assert not self._sendPing(), ('Bridge received mirrored ping '
                                      'requests, but mirroring is unset.')
Ejemplo n.º 2
0
    def test_mirroring(self):
        tc.setPortMirroring(self._bridge0.dev_name, self._bridge1.dev_name)
        assert self._send_ping(), 'Bridge received no mirrored ping requests.'

        tc.unsetPortMirroring(self._bridge0.dev_name, self._bridge1.dev_name)
        msg = 'Bridge received mirrored ping requests, but mirroring is unset.'
        assert not self._send_ping(), msg
Ejemplo n.º 3
0
    def testMirroring(self):
        tc.setPortMirroring(self._bridge0.devName, self._bridge1.devName)
        self.assertTrue(self._sendPing(), "Bridge received no mirrored ping "
                        "requests.")

        tc.unsetPortMirroring(self._bridge0.devName, self._bridge1.devName)
        self.assertFalse(self._sendPing(), "Bridge received mirrored ping "
                         "requests, but mirroring is unset.")
Ejemplo n.º 4
0
    def testMirroring(self):
        tc.setPortMirroring(self._bridge0.devName, self._bridge1.devName)
        self.assertTrue(self._sendPing(), "Bridge received no mirrored ping "
                        "requests.")

        tc.unsetPortMirroring(self._bridge0.devName, self._bridge1.devName)
        self.assertFalse(self._sendPing(), "Bridge received mirrored ping "
                         "requests, but mirroring is unset.")
Ejemplo n.º 5
0
 def testMirroringWithDistraction(self):
     "setting another mirror action should not obstract the first one"
     tc.setPortMirroring(self._bridge0.devName, self._bridge2.devName)
     self.testMirroring()
     tc.unsetPortMirroring(self._bridge0.devName, self._bridge2.devName)
Ejemplo n.º 6
0
 def testMirroringWithDistraction(self):
     "setting another mirror action should not obstract the first one"
     tc.setPortMirroring(self._bridge0.devName, self._bridge2.devName)
     self.testMirroring()
     tc.unsetPortMirroring(self._bridge0.devName, self._bridge2.devName)
Ejemplo n.º 7
0
 def test_mirroring_with_distraction(self):
     # setting another mirror action should not obstract the first one
     tc.setPortMirroring(self._bridge0.dev_name, self._bridge2.dev_name)
     self.test_mirroring()
     tc.unsetPortMirroring(self._bridge0.dev_name, self._bridge2.dev_name)