Esempio n. 1
0
    def vxlan_blocking_stop(self, floating_ip):
        """Stop the vxlan tool for a specific IP

        :param floating_ip: Floating IP
        :return: The vxlan tool for the specific floating IP is stopped
        """

        logger.info("Starting HTTP firewall on %s" % floating_ip)
        test_utils.stop_vxlan_tool(floating_ip)
Esempio n. 2
0
    def test_stop_vxlan_tool(self, mock_run_cmd_remote):
        """
        Checks the proper functionality of stop_vxlan_tool
        function
        """

        mock_rc = 'pkill -f vxlan_tool.py'
        test_utils.stop_vxlan_tool(self.ip)
        mock_run_cmd_remote.assert_called_once_with(self.ip, mock_rc)
Esempio n. 3
0
    def vxlan_blocking_start(self, floating_ip, port_blocked):
        """Start the vxlan tool for one floating IP and blocking
           a specific port.

        :param floating_ip: Floating IP
        :param port_blocked: Port
        :return: The port for the floating IP is blocked
        """

        test_utils.stop_vxlan_tool(floating_ip)
        logger.info("Starting HTTP firewall on %s" % floating_ip)
        test_utils.start_vxlan_tool(floating_ip, block=port_blocked)