Lines Matching refs:pools
71 /* To map pools to subnets inside a shared-network */
1134 * or subnet and there may be multiple pools withing a shared network or subnet.
1153 struct element *pools;
1164 parse_error(cfile, "Dynamic pools are only valid inside "
1225 pools = mapGet(cfile->stack[cfile->stack_top], "pools");
1226 if (pools == NULL) {
1227 pools = createList();
1228 pools->kind = POOL_DECL;
1229 mapSet(cfile->stack[cfile->stack_top], pools, "pools");
1239 listPush(pools, pool);
1265 listPush(pools, first);
1268 listPush(pools, pool);
2067 /* Move pools to subnets */
2078 srcs = mapGet(share, "pools");
2096 dsts = mapGet(subnet, "pools");
2099 mapSet(subnet, dsts, "pools");
2181 struct element *pools;
2198 /* Pools are forbidden at shared-network level in Kea */
2200 pools = mapGet(share, "pools");
2201 if ((pools != NULL) && (listSize(pools) == 0)) {
2202 mapRemove(share, "pools");
2203 pools = NULL;
2205 if (pools != NULL) {
2208 pools->skip = ISC_TRUE;
2210 comment = createComment("/// Kea pools must be "
2212 TAILQ_INSERT_TAIL(&pools->comments, comment);
2214 TAILQ_INSERT_TAIL(&pools->comments, comment);
2216 pools = mapGet(share, "pd-pools");
2217 if ((pools != NULL) && (listSize(pools) == 0)) {
2218 mapRemove(share, "pd-pools");
2219 pools = NULL;
2221 if (pools != NULL) {
2224 pools->skip = ISC_TRUE;
2226 comment = createComment("/// Kea pools must be "
2228 TAILQ_INSERT_TAIL(&pools->comments, comment);
2230 TAILQ_INSERT_TAIL(&pools->comments, comment);
2241 if (mapContains(share, "pools") &&
2242 mapContains(subnet, "pools")) {
2243 struct element *pools;
2246 pools = mapGet(share, "pools");
2247 mapRemove(share, "pools");
2248 sub = mapGet(subnet, "pools");
2249 concat(sub, pools);
2251 if (mapContains(share, "pd-pools") &&
2252 mapContains(subnet, "pd-pools")) {
2253 struct element *pools;
2256 pools = mapGet(share, "pd-pools");
2257 mapRemove(share, "pd-pools");
2258 sub = mapGet(subnet, "pd-pools");
2259 concat(sub, pools);
2606 struct handle *pools = NULL;
2710 if (strcmp(handle->key, "pd-pools") == 0) {
2712 parse_error(cfile, "got pd-pools "
2716 } else if (strcmp(handle->key, "pools") == 0) {
2717 if (pools != NULL)
2718 parse_error(cfile, "got pools twice "
2720 pools->order, order);
2721 pools = handle;
2723 parse_error(cfile, "expecyed [pd-]pools got "
2844 option_data_derive(cfile, handle, pools);
2848 derive(handle, pools);
2920 upper = mapGet(parent, "pd-pools");
2922 mapSet(parent, pdpools->value, "pools");
2926 if (pools != NULL) {
2929 upper = mapGet(parent, "pools");
2931 mapSet(parent, pools->value, "pools");
2933 concat(upper, pools->value);
3141 struct element *pools;
3152 /* Dynamic pools permit all clients. Otherwise
3169 pools = mapGet(group, "pools");
3170 if (pools == NULL) {
3171 pools = createList();
3172 pools->kind = POOL_DECL;
3173 mapSet(group, pools, "pools");
3175 listPush(pools, pool);
3297 struct element *pools;
3301 pools = mapGet(group, "pools");
3302 if (pools == NULL) {
3303 pools = createList();
3304 pools->kind = POOL_DECL;
3305 mapSet(group, pools, "pools");
3307 listPush(pools, pool);
3382 struct element *pools;
3386 pools = mapGet(group, "pd-pools");
3387 if (pools == NULL) {
3388 pools = createList();
3389 pools->kind = POOL_DECL;
3390 mapSet(group, pools, "pd-pools");
3392 listPush(pools, pool);
3463 * or subnet and there may be multiple pools withing a shared network or subnet.
3483 struct element *pools;
3562 * Spread and eventually split between pools and pd-pools
3565 /* we need pools list */
3566 pools = mapGet(cfile->stack[cfile->stack_top], "pools");
3567 if (pools == NULL) {
3568 pools = createList();
3569 pools->kind = POOL_DECL;
3570 mapSet(cfile->stack[cfile->stack_top], pools, "pools");
3581 listPush(pools, pool);
3585 /* we need pd-pools list */
3586 pdpools = mapGet(cfile->stack[cfile->stack_top], "pd-pools");
3591 pdpools, "pd-pools");
3660 /* Do pools now */
3662 /* we need pools list */
3663 pools = mapGet(cfile->stack[cfile->stack_top], "pools");
3664 if (pools == NULL) {
3665 pools = createList();
3666 pools->kind = POOL_DECL;
3667 mapSet(cfile->stack[cfile->stack_top], pools, "pools");
3695 listPush(pools, first);
3698 listPush(pools, pool);
4558 * (pools are not allowed at shared-network level in Kea)