Lines Matching refs:tags
625 char **tags = NULL;
682 /* set the target portal group tags */
683 ret = nvlist_lookup_string_array(proplist, "tpg-tag", &tags,
695 if (tags && (count == 1) && (strcmp("default", tags[0]) == 0)) {
700 if (!tags[i]) {
707 if (strcmp(tags[i], tpg->tpg_name) == 0) {
716 tags[i]);
723 tag_name_to_num(tags[i], &tagid);
725 ret = it_tpgt_create(cfg, tgtp, &tpgt, tags[i], tagid);
729 tags[i]);
736 /* remove the tags from the proplist before continuing */
737 if (tags) {
927 chapu, "targetchapsecret:", chaps, "tpg-tags:");
1042 char **tags = NULL;
1120 /* set the target portal group tags */
1121 ret = nvlist_lookup_string_array(proplist, "tpg-tag", &tags,
1133 if (tags && (count == 1) && (strcmp("default", tags[0]) == 0)) {
1138 if (!tags || !tags[i]) {
1145 if (strcmp(tags[i], tpg->tpg_name) == 0) {
1153 tags[i]);
1161 * don't recreate tags that are already associated,
1162 * remove tags not requested.
1164 if (tags) {
1168 if (!tags[i]) {
1172 if (strcmp(tpgt->tpgt_tpg_name, tags[i])
1174 /* non-null tags will be created */
1175 tags[i] = NULL;
1193 if (!tags || !tags[i]) {
1198 tag_name_to_num(tags[i], &tagid);
1200 ret = it_tpgt_create(cfg, tgtp, &tpgt, tags[i], tagid);
1208 " tag %s: "), tags[i]);
1215 /* remove the tags from the proplist before continuing */