Lines Matching refs:idlist

553  * Parse the given line into idlist and an nvlist of properties.
573 /* parse the object idlist */
602 * Convert the passed-in idlist into an idstring of the form
610 netcfg_idl2idstr(nvlist_t *idlist, char **idstrp)
622 while ((nvp = nvlist_next_nvpair(idlist, nvp)) != NULL) {
641 * Create duplicate nvlist from the NETCFG_OBJECT_PROPS nvlist in the idlist
645 netcfg_idl2proplist(nvlist_t *idlist, nvlist_t **proplist)
650 if ((nverr = nvlist_lookup_nvlist(idlist, NETCFG_OBJECT_PROPS, &nvl))
659 * Read object specified by idlist from file, converting it to an object
660 * list. The input idlist must include a db-name value.
662 * If idlist only contains a "db-name", read all objects from the given
666 * to each idlist as a NETCFG_OBJECT_PROPS nvpair.
669 * the file that case-insensitively matches idlist. We write the found id
670 * values into the idlist so that it can be returned to the caller. This
676 netcfg_read_object_from_file(nvlist_t *idlist, uint64_t flags, nvlist_t **nvl)
693 if ((dbname = dbname_from_idlist(idlist)) == NULL)
695 dbzoneid = zoneid_from_idlist(idlist);
709 * walk the idlist; if we find anything other than a db-name and/or
713 while ((idp = nvlist_next_nvpair(idlist, idp)) != NULL) {
816 if (netcfg_idlist_match(idlist, foundidl)) {
817 netcfg_alignvals(idlist, foundidl);
1006 * the string value of the NETCFG_OBJECT_DB_NAME pair in idlist), and
1085 * Read in all objects from the db identified in idlist and update object
1086 * identified by idlist.
1089 * out to the specified db with the idlist specified by nvl.
1099 netcfg_update_object_in_file(nvlist_t *idlist, uint64_t flags, nvlist_t *nvl,
1112 /* If we're renaming, the new idlist must be specified in nvl */
1116 if ((dbname = dbname_from_idlist(idlist)) == NULL)
1118 dbzoneid = zoneid_from_idlist(idlist);
1124 * Create an idlist with the dbname and, if this is a cross-zone
1152 * is the string-formatted idlist.
1156 if ((err = netcfg_idl2idstr(idlist, &idstr)) != NETCFG_SUCCESS)
1207 * its idlist, unless we're renaming. If we're renaming, we
1209 * we can write it out with the updated idlist.
1211 idmatch = netcfg_idlist_match(idlist, objids[i]);
1244 * entry's objlist to be written out with the updated idlist.
1253 * convert the idlist to a string, and add this
1285 widl = idlist;
1312 * Remove object identified by idlist from the db named in idlist.
1314 * If idlist only identifies the db, the db file is removed.
1317 netcfg_remove_object_from_file(nvlist_t *idlist, uint64_t flags)
1322 * Walk the idlist; if there's anything other than db-name,
1325 while ((idp = nvlist_next_nvpair(idlist, idp)) != NULL) {
1335 return (netcfg_destroy_db_file(idlist));
1337 return (netcfg_update_object_in_file(idlist, flags, NULL, B_FALSE));
1353 * Read the db entry specified by idlist; extract from that entry value(s)
1358 netcfg_read_props_from_file(nvlist_t *idlist, uint64_t flags, nvlist_t *plist)
1366 ncerr = netcfg_read_object_from_file(idlist, flags, &objlist);
1387 * Create db file identified by idlist populated by the data in dblist.
1391 netcfg_create_db_file(nvlist_t *idlist, uint64_t flags, nvlist_t *dblist)
1396 if ((dbname = dbname_from_idlist(idlist)) == NULL)
1398 dbzoneid = zoneid_from_idlist(idlist);
1404 * Destroy db file identifid by dbname/idlist.
1407 netcfg_destroy_db_file_common(const char *dbname, nvlist_t *idlist)
1412 dbzoneid = zoneid_from_idlist(idlist);
1429 * Destroy db file identifid by idlist.
1432 netcfg_destroy_db_file(nvlist_t *idlist)
1436 if ((dbname = dbname_from_idlist(idlist)) == NULL)
1439 return (netcfg_destroy_db_file_common(dbname, idlist));
1444 * by idlist.
1454 * Destroy backup of db file identifid by idlist.
1457 netcfg_destroy_backup_db_file(nvlist_t *idlist)
1462 if ((dbname = dbname_from_idlist(idlist)) == NULL)
1467 return (netcfg_destroy_db_file_common(backup, idlist));
1472 * Restore db file identified by idlist from backup.
1475 netcfg_restore_db_file(nvlist_t *idlist)
1482 if ((dbname = dbname_from_idlist(idlist)) == NULL)
1485 dbzoneid = zoneid_from_idlist(idlist);
1505 * Backup db file identified by idlist.
1508 netcfg_backup_db_file(nvlist_t *idlist)
1517 if ((dbname = dbname_from_idlist(idlist)) == NULL)
1520 dbzoneid = zoneid_from_idlist(idlist);
1570 netcfg_init_idlist(nvlist_t **idlist, const char *dbname)
1588 *idlist = nvl;
1597 netcfg_add_idlist(nvlist_t *idlist, const char *name, const char *value)
1601 nverr = nvlist_add_string(idlist, name, value);