Exemple #1
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.")
Exemple #2
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.")
Exemple #3
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)
Exemple #4
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)