def _set(self, set_method, c, context, pool):
        args = {'service_group': self.meta(pool, 'service_group', {})}

        set_method(
            self._meta_name(pool),
            protocol=a10_os.service_group_protocol(c, pool['protocol']),
            lb_method=a10_os.service_group_lb_method(c, pool['lb_method']),
            axapi_args=args)
    def _set(self, set_method, c, context, pool):
        p = handler_persist.PersistHandler(c, context, pool)
        p.create()

        args = {'service_group': self.meta(pool, 'service_group', {})}
        set_method(
            self._meta_name(pool),
            protocol=a10_os.service_group_protocol(c, pool.protocol),
            lb_method=a10_os.service_group_lb_method(c, pool.lb_algorithm),
            axapi_args=args)

        # session persistence might need a vport update
        if pool.listener:
            self.a10_driver.listener._update(c, context, pool.listener)