示例#1
0
文件: tc_test.py 项目: kanalun/vdsm
    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.")
示例#2
0
文件: tcTests.py 项目: fancyKai/vdsm
    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.")
示例#3
0
文件: tc_test.py 项目: kanalun/vdsm
 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)
示例#4
0
文件: tcTests.py 项目: fancyKai/vdsm
 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)