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 service_delete(self, input_params):
     # create instance
     service_instance = service.ServiceOperations(self.driver,
                                                  self.evidence)
     # call operation
     service_instance.list_service()
     service_instance.check_delete_service(input_params)
 def service_setting(self, input_params):
     # create instance
     service_instance = service.ServiceOperations(self.driver,
                                                  self.evidence)
     # call operation
     service_instance.list_service()
     service_instance.detail_service(input_params)
     service_instance.check_update_service_setting(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 service_bandwidth(self, input_params):
        # create instance
        service_instance = service.ServiceOperations(self.driver,
                                                     self.evidence)

        # Initialization processing
        service_update_flg = service_instance.initialize_service_bandwidth(
            input_params)
        if service_update_flg == False:
            return

        # call operation
        service_instance.list_service()
        service_instance.detail_service(input_params)
        service_instance.check_update_service_bandwidth(input_params)
    def service_add_v6_interface(self, input_params):
        if SET_NAL_VERSION < "3":
            return

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

        # Initialization processing
        service_update_flg = service_instance.initialize_add_v6_interface(
            input_params)
        if service_update_flg == False:
            return

        # get firewall ip
        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
        service_instance.list_service()
        service_instance.detail_service(input_params)
        service_instance.check_update_service_add_v6_interface(input_params)
 def service_detail_admin(self, input_params):
     # create instance
     service_instance = service.ServiceOperations(self.driver,
                                                  self.evidence)
     # call operation
     service_instance.check_detail_service_admin(input_params)
 def service_list_admin(self):
     # create instance
     service_instance = service.ServiceOperations(self.driver,
                                                  self.evidence)
     # call operation
     service_instance.check_list_service_admin()