Lines Matching defs:tpg

92 	{"tpg-tag",		required_argument,	NULL, 't'},
102 " [-t <tpg-name>[,<tpg-name>]...]";
108 " [-t <tpg-name>[,<tpg-name>]...] <target-node-name>";
117 " create-tpg <tpg-name> <IP-address>[:<port>]...";
120 " list-tpg [-pv] [<tpg-name>]";
123 " delete-tpg [-f] <tpg-name>";
177 {"create-tpg", ":h?", c_tpg},
178 {"delete-tpg", ":fh?", d_tpg},
179 {"list-tpg", ":hpv?", l_tpg},
213 create_tpg(char *tpg, int addrc, char **addrs);
216 list_tpg(char *tpg, boolean_t verbose, boolean_t script);
219 delete_tpg(char *tpg, boolean_t force);
416 "tpg-tag", optarg, NULL);
651 it_tpg_t *tpg = NULL;
705 ret = nvlist_lookup_string_array(proplist, "tpg-tag", &tags,
727 tpg = cfg->config_tpg_list;
728 while (tpg != NULL) {
729 if (strcmp(tags[i], tpg->tpg_name) == 0) {
733 tpg = tpg->tpg_next;
735 if (tpg == NULL) {
737 gettext("Invalid tpg-tag %s, tag not defined"),
760 (void) nvlist_remove_all(proplist, "tpg-tag");
949 chapu, "targetchapsecret:", chaps, "tpg-tags:");
1068 it_tpg_t *tpg = NULL;
1143 ret = nvlist_lookup_string_array(proplist, "tpg-tag", &tags,
1165 tpg = cfg->config_tpg_list;
1166 while (tpg != NULL) {
1167 if (strcmp(tags[i], tpg->tpg_name) == 0) {
1170 tpg = tpg->tpg_next;
1172 if (tpg == NULL) {
1174 gettext("Invalid tpg-name %s: not defined"),
1238 (void) nvlist_remove_all(proplist, "tpg-tag");
1304 create_tpg(char *tpg, int addrc, char **addrs)
1316 if (!tpg) {
1322 if (strlen(tpg) > (MAX_TPG_NAMELEN - 1)) {
1345 if (strcmp(tpgp->tpg_name, tpg) == 0) {
1348 tpg);
1374 ret = it_tpg_create(cfg, &tpgp, tpg, addrs[count]);
1425 list_tpg(char *tpg, boolean_t verbose, boolean_t script)
1453 if (tpg) {
1454 if (strcmp(tpg, ptr->tpg_name) != 0) {
1515 if (tpg && (!found)) {
1517 gettext("Target Portal Group %s not found!\n"), tpg);
1528 delete_tpg(char *tpg, boolean_t force)
1537 if (!tpg) {
1552 if (strcmp(tpg, ptpg->tpg_name) == 0) {
1560 tpg);