Lines Matching defs:tpg

89 	{"tpg-tag",		required_argument,	NULL, 't'},
97 [-l alias] [-t tpg-name[,tpg-name,...]]";
101 [-l alias] [-t tpg-name[,tpg-name,...]] target-node-name";
107 static char c_tpg[] = "itadm create-tpg tpg-name IP-address[:port] \
110 static char l_tpg[] = "itadm list-tpg [-v] [tpg-name]";
112 static char d_tpg[] = "itadm delete-tpg [-f] tpg-name";
160 {"create-tpg", ":h?", c_tpg},
161 {"delete-tpg", ":fh?", d_tpg},
162 {"list-tpg", ":vh?", l_tpg},
196 create_tpg(char *tpg, int addrc, char **addrs);
199 list_tpg(char *tpg, boolean_t verbose, boolean_t script);
202 delete_tpg(char *tpg, boolean_t force);
396 "tpg-tag", optarg, NULL);
629 it_tpg_t *tpg = NULL;
683 ret = nvlist_lookup_string_array(proplist, "tpg-tag", &tags,
705 tpg = cfg->config_tpg_list;
706 while (tpg != NULL) {
707 if (strcmp(tags[i], tpg->tpg_name) == 0) {
711 tpg = tpg->tpg_next;
713 if (tpg == NULL) {
715 gettext("Invalid tpg-tag %s, tag not defined"),
738 (void) nvlist_remove_all(proplist, "tpg-tag");
927 chapu, "targetchapsecret:", chaps, "tpg-tags:");
1046 it_tpg_t *tpg = NULL;
1121 ret = nvlist_lookup_string_array(proplist, "tpg-tag", &tags,
1143 tpg = cfg->config_tpg_list;
1144 while (tpg != NULL) {
1145 if (strcmp(tags[i], tpg->tpg_name) == 0) {
1148 tpg = tpg->tpg_next;
1150 if (tpg == NULL) {
1152 gettext("Invalid tpg-name %s: not defined"),
1216 (void) nvlist_remove_all(proplist, "tpg-tag");
1282 create_tpg(char *tpg, int addrc, char **addrs)
1294 if (!tpg) {
1300 if (strlen(tpg) > (MAX_TPG_NAMELEN - 1)) {
1323 if (strcmp(tpgp->tpg_name, tpg) == 0) {
1326 tpg);
1352 ret = it_tpg_create(cfg, &tpgp, tpg, addrs[count]);
1403 list_tpg(char *tpg, boolean_t verbose, boolean_t script)
1431 if (tpg) {
1432 if (strcmp(tpg, ptr->tpg_name) != 0) {
1493 if (tpg && (!found)) {
1495 gettext("Target Portal Group %s not found!\n"), tpg);
1506 delete_tpg(char *tpg, boolean_t force)
1515 if (!tpg) {
1530 if (strcmp(tpg, ptpg->tpg_name) == 0) {
1538 tpg);