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.")
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.")
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)