Beispiel #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.')
Beispiel #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
Beispiel #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.")
Beispiel #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.")
Beispiel #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)
Beispiel #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)
Beispiel #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)