def node_delete_interface(self, input_params):
     # create instance
     node_instance = node.NodeOperations(self.driver, self.evidence)
     # call operation
     node_instance.list_node()
     node_instance.detail_node(input_params)
     node_instance.check_update_node_delete_interface(input_params)
    def service_create(self, input_params):
        # create instance
        node_instance = node.NodeOperations(self.driver, self.evidence)
        service_instance = service.ServiceOperations(self.driver,
                                                     self.evidence)
        resource_instance = resource.ResourceOperations(
            self.driver, self.evidence)

        # Initialization processing
        service_create_flg = service_instance.initialize_service_create(
            input_params)
        if service_create_flg == False:
            return

        # check operation before
        resource_instance.check_list_resource_before(input_params)
        resource_instance.check_list_resource_admin_before(input_params)

        # get firewall ip
        fw_ip_address = node_instance.get_firewall_ipaddress()
        input_params["fw_ip_address"] = fw_ip_address

        # call operation
        service_instance.list_service()
        service_instance.check_create_service(input_params)

        # check operation after
        resource_instance.check_list_resource_after(input_params)
        resource_instance.check_list_resource_admin_after(input_params)
    def node_create(self, input_params):
        # create instance
        node_instance = node.NodeOperations(self.driver, self.evidence)
        resource_instance = resource.ResourceOperations(
            self.driver, self.evidence)

        # Initialization processing
        node_create_flg = node_instance.initialize_node_create(input_params)
        if node_create_flg == False:
            return

        # check operation before
        resource_instance.check_list_resource_before(input_params)
        resource_instance.check_list_resource_admin_before(input_params)

        # get firewall ip if node is LoadBalancer
        if input_params["type"] == "2":
            fw_ip_address = node_instance.get_firewall_ipaddress()
            input_params["fw_ip_address"] = fw_ip_address

        # call operation
        node_instance.list_node()
        node_instance.check_create_node(input_params)

        # check operation after
        resource_instance.check_list_resource_after(input_params)
        resource_instance.check_list_resource_admin_after(input_params)
    def service_add_member(self, input_params):
        # create instance
        node_instance = node.NodeOperations(self.driver, self.evidence)
        service_instance = service.ServiceOperations(self.driver,
                                                     self.evidence)

        # get firewall ip
        fw_ip_address = node_instance.get_firewall_ipaddress()
        input_params["fw_ip_address"] = fw_ip_address

        # call operation
        service_instance.list_service()
        service_instance.check_update_service_add_member(input_params)
    def node_assign_license(self, input_params):
        # create instance
        node_instance = node.NodeOperations(self.driver, self.evidence)

        # Initialization processing
        node_update_flg = node_instance.initialize_assign_license(input_params)
        if node_update_flg == False:
            return

        # call operation
        node_instance.list_node_admin()
        node_instance.detail_node_admin(input_params)
        node_instance.check_asign_license(input_params)
    def node_add_v6_interface(self, input_params):
        if SET_NAL_VERSION < "3":
            return

        # create instance
        node_instance = node.NodeOperations(self.driver, self.evidence)

        # Initialization processing
        node_update_flg = node_instance.initialize_add_v6_interface(
            input_params)
        if node_update_flg == False:
            return

        # get firewall ip if node is LoadBalancer
        if "fw_ip_v6_address" in input_params:
            fw_ip_v6_address = node_instance.get_firewall_v6_ipaddress()
            input_params["fw_ip_v6_address"] = fw_ip_v6_address

        # call operation
        node_instance.list_node()
        node_instance.detail_node(input_params)
        node_instance.check_update_node_add_v6_interface(input_params)
 def node_detail_admin(self, input_params):
     # create instance
     node_instance = node.NodeOperations(self.driver, self.evidence)
     # call operation
     node_instance.check_detail_node_admin(input_params)
 def node_list_admin(self):
     # create instance
     node_instance = node.NodeOperations(self.driver, self.evidence)
     # call operation
     node_instance.check_list_node_admin()