xref: /titanic_51/usr/src/cmd/isns/isnsd/xml/data.def (revision fcf3ce441efd61da9bb2884968af01cb7c1452cc)
1*fcf3ce44SJohn Forte/*
2*fcf3ce44SJohn Forte * CDDL HEADER START
3*fcf3ce44SJohn Forte *
4*fcf3ce44SJohn Forte * The contents of this file are subject to the terms of the
5*fcf3ce44SJohn Forte * Common Development and Distribution License (the "License").
6*fcf3ce44SJohn Forte * You may not use this file except in compliance with the License.
7*fcf3ce44SJohn Forte *
8*fcf3ce44SJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*fcf3ce44SJohn Forte * or http://www.opensolaris.org/os/licensing.
10*fcf3ce44SJohn Forte * See the License for the specific language governing permissions
11*fcf3ce44SJohn Forte * and limitations under the License.
12*fcf3ce44SJohn Forte *
13*fcf3ce44SJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
14*fcf3ce44SJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*fcf3ce44SJohn Forte * If applicable, add the following below this CDDL HEADER, with the
16*fcf3ce44SJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
17*fcf3ce44SJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
18*fcf3ce44SJohn Forte *
19*fcf3ce44SJohn Forte * CDDL HEADER END
20*fcf3ce44SJohn Forte */
21*fcf3ce44SJohn Forte
22*fcf3ce44SJohn Forte/*
23*fcf3ce44SJohn Forte * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*fcf3ce44SJohn Forte * Use is subject to license terms.
25*fcf3ce44SJohn Forte */
26*fcf3ce44SJohn Forte
27*fcf3ce44SJohn Forte#ifndef DEF_XML_ROOT
28*fcf3ce44SJohn Forte#define	DEF_XML_ROOT(ISNS_DATA, VENDOR, SMI, VERSION, ONE_DOT_O)
29*fcf3ce44SJohn Forte#endif
30*fcf3ce44SJohn Forte
31*fcf3ce44SJohn Forte#ifndef DEF_XML_DATA
32*fcf3ce44SJohn Forte#define DEF_XML_DATA(TAG, TYPE, ARG1, ARG2)
33*fcf3ce44SJohn Forte#endif
34*fcf3ce44SJohn Forte
35*fcf3ce44SJohn Forte#ifndef DEF_XML_PROP
36*fcf3ce44SJohn Forte#define	DEF_XML_PROP(INDEX, TYPE, NAME, TAG, ID)
37*fcf3ce44SJohn Forte#endif
38*fcf3ce44SJohn Forte
39*fcf3ce44SJohn Forte/*
40*fcf3ce44SJohn Forte * The root element.
41*fcf3ce44SJohn Forte */
42*fcf3ce44SJohn ForteDEF_XML_ROOT("isns_data",
43*fcf3ce44SJohn Forte	"vendor", "Sun Microsystems, Inc.",
44*fcf3ce44SJohn Forte	"version", "1.0")
45*fcf3ce44SJohn Forte
46*fcf3ce44SJohn Forte/*
47*fcf3ce44SJohn Forte * iSNS objects.
48*fcf3ce44SJohn Forte */
49*fcf3ce44SJohn ForteDEF_XML_DATA("pg",          "oabcd",    OBJ_PG,          'a')
50*fcf3ce44SJohn ForteDEF_XML_DATA("portal",      "oefg",     OBJ_PORTAL,      'e')
51*fcf3ce44SJohn ForteDEF_XML_DATA("iscsi",       "ohi",      OBJ_ISCSI,       'h')
52*fcf3ce44SJohn ForteDEF_XML_DATA("entity",      "ojk",      OBJ_ENTITY,      'j')
53*fcf3ce44SJohn ForteDEF_XML_DATA("dd",          "olm",      OBJ_DD,          'l')
54*fcf3ce44SJohn ForteDEF_XML_DATA("dds",         "ono",      OBJ_DDS,         'n')
55*fcf3ce44SJohn ForteDEF_XML_DATA("assoc_iscsi", "opq",      OBJ_ASSOC_ISCSI, 'p')
56*fcf3ce44SJohn ForteDEF_XML_DATA("assoc_dd",    "or",       OBJ_ASSOC_DD,    'r')
57*fcf3ce44SJohn Forte
58*fcf3ce44SJohn Forte/*
59*fcf3ce44SJohn Forte * UID attributes and key attributes of iSNS objects.
60*fcf3ce44SJohn Forte */
61*fcf3ce44SJohn ForteDEF_XML_PROP('a', 'u', "uid",        ISNS_PG_INDEX_ATTR_ID,
62*fcf3ce44SJohn Forte	ATTR_INDEX_PG(ISNS_PG_INDEX_ATTR_ID))
63*fcf3ce44SJohn ForteDEF_XML_PROP('b', 's', "pg_iscsi",   ISNS_PG_ISCSI_NAME_ATTR_ID,
64*fcf3ce44SJohn Forte	ATTR_INDEX_PG(ISNS_PG_ISCSI_NAME_ATTR_ID))
65*fcf3ce44SJohn ForteDEF_XML_PROP('c', 'p', "pg_ip",      ISNS_PG_PORTAL_IP_ADDR_ATTR_ID,
66*fcf3ce44SJohn Forte	ATTR_INDEX_PG(ISNS_PG_PORTAL_IP_ADDR_ATTR_ID))
67*fcf3ce44SJohn ForteDEF_XML_PROP('d', 'u', "pg_port",    ISNS_PG_PORTAL_PORT_ATTR_ID,
68*fcf3ce44SJohn Forte	ATTR_INDEX_PG(ISNS_PG_PORTAL_PORT_ATTR_ID))
69*fcf3ce44SJohn ForteDEF_XML_PROP('e', 'u', "uid",        ISNS_PORTAL_INDEX_ATTR_ID,
70*fcf3ce44SJohn Forte	ATTR_INDEX_PORTAL(ISNS_PORTAL_INDEX_ATTR_ID))
71*fcf3ce44SJohn ForteDEF_XML_PROP('f', 'p', "ip",         ISNS_PORTAL_IP_ADDR_ATTR_ID,
72*fcf3ce44SJohn Forte	ATTR_INDEX_PORTAL(ISNS_PORTAL_IP_ADDR_ATTR_ID))
73*fcf3ce44SJohn ForteDEF_XML_PROP('g', 'u', "port",       ISNS_PORTAL_PORT_ATTR_ID,
74*fcf3ce44SJohn Forte	ATTR_INDEX_PORTAL(ISNS_PORTAL_PORT_ATTR_ID))
75*fcf3ce44SJohn ForteDEF_XML_PROP('h', 'u', "uid",        ISNS_ISCSI_NODE_INDEX_ATTR_ID,
76*fcf3ce44SJohn Forte	ATTR_INDEX_ISCSI(ISNS_ISCSI_NODE_INDEX_ATTR_ID))
77*fcf3ce44SJohn ForteDEF_XML_PROP('i', 's', "name",       ISNS_ISCSI_NAME_ATTR_ID,
78*fcf3ce44SJohn Forte	ATTR_INDEX_ISCSI(ISNS_ISCSI_NAME_ATTR_ID))
79*fcf3ce44SJohn ForteDEF_XML_PROP('j', 'u', "uid",        ISNS_ENTITY_INDEX_ATTR_ID,
80*fcf3ce44SJohn Forte	ATTR_INDEX_ENTITY(ISNS_ENTITY_INDEX_ATTR_ID))
81*fcf3ce44SJohn ForteDEF_XML_PROP('k', 's', "eid",        ISNS_EID_ATTR_ID,
82*fcf3ce44SJohn Forte	ATTR_INDEX_ENTITY(ISNS_EID_ATTR_ID))
83*fcf3ce44SJohn ForteDEF_XML_PROP('l', 'u', "uid",        ISNS_DD_ID_ATTR_ID,
84*fcf3ce44SJohn Forte	ATTR_INDEX_DD(ISNS_DD_ID_ATTR_ID))
85*fcf3ce44SJohn ForteDEF_XML_PROP('m', 's', "name",       ISNS_DD_NAME_ATTR_ID,
86*fcf3ce44SJohn Forte	ATTR_INDEX_DD(ISNS_DD_NAME_ATTR_ID))
87*fcf3ce44SJohn ForteDEF_XML_PROP('n', 'u', "uid",        ISNS_DD_SET_ID_ATTR_ID,
88*fcf3ce44SJohn Forte	ATTR_INDEX_DDS(ISNS_DD_SET_ID_ATTR_ID))
89*fcf3ce44SJohn ForteDEF_XML_PROP('o', 's', "name",       ISNS_DD_SET_NAME_ATTR_ID,
90*fcf3ce44SJohn Forte	ATTR_INDEX_DDS(ISNS_DD_SET_NAME_ATTR_ID))
91*fcf3ce44SJohn ForteDEF_XML_PROP('p', 'u', "iscsi_uid",  ISNS_DD_ISCSI_INDEX_ATTR_ID,
92*fcf3ce44SJohn Forte	ATTR_INDEX_ASSOC_ISCSI(ISNS_DD_ISCSI_INDEX_ATTR_ID))
93*fcf3ce44SJohn ForteDEF_XML_PROP('q', 's', "iscsi_name", ISNS_DD_ISCSI_NAME_ATTR_ID,
94*fcf3ce44SJohn Forte	ATTR_INDEX_ASSOC_ISCSI(ISNS_DD_ISCSI_NAME_ATTR_ID))
95*fcf3ce44SJohn ForteDEF_XML_PROP('r', 'u', "dd_uid",     ISNS_DD_ID_ATTR_ID,
96*fcf3ce44SJohn Forte	ATTR_INDEX_ASSOC_DD(ISNS_DD_ID_ATTR_ID))
97*fcf3ce44SJohn Forte
98*fcf3ce44SJohn Forte/*
99*fcf3ce44SJohn Forte * Attributes for Portal Group object.
100*fcf3ce44SJohn Forte */
101*fcf3ce44SJohn ForteDEF_XML_DATA("pgt",      "u", ISNS_PG_TAG_ATTR_ID,
102*fcf3ce44SJohn Forte	ATTR_INDEX_PG(ISNS_PG_TAG_ATTR_ID))
103*fcf3ce44SJohn Forte
104*fcf3ce44SJohn Forte/*
105*fcf3ce44SJohn Forte * Attributes for Portal object.
106*fcf3ce44SJohn Forte */
107*fcf3ce44SJohn ForteDEF_XML_DATA("name",     "s", ISNS_PORTAL_NAME_ATTR_ID,
108*fcf3ce44SJohn Forte	ATTR_INDEX_PORTAL(ISNS_PORTAL_NAME_ATTR_ID))
109*fcf3ce44SJohn ForteDEF_XML_DATA("esi_int",  "u", ISNS_ESI_INTERVAL_ATTR_ID,
110*fcf3ce44SJohn Forte	ATTR_INDEX_PORTAL(ISNS_ESI_INTERVAL_ATTR_ID))
111*fcf3ce44SJohn ForteDEF_XML_DATA("esi",      "u", ISNS_ESI_PORT_ATTR_ID,
112*fcf3ce44SJohn Forte	ATTR_INDEX_PORTAL(ISNS_ESI_PORT_ATTR_ID))
113*fcf3ce44SJohn ForteDEF_XML_DATA("scn",      "u", ISNS_SCN_PORT_ATTR_ID,
114*fcf3ce44SJohn Forte	ATTR_INDEX_PORTAL(ISNS_SCN_PORT_ATTR_ID))
115*fcf3ce44SJohn Forte
116*fcf3ce44SJohn Forte/*
117*fcf3ce44SJohn Forte * Attributes for Storage Node object.
118*fcf3ce44SJohn Forte */
119*fcf3ce44SJohn ForteDEF_XML_DATA("type",     "u", ISNS_ISCSI_NODE_TYPE_ATTR_ID,
120*fcf3ce44SJohn Forte	ATTR_INDEX_ISCSI(ISNS_ISCSI_NODE_TYPE_ATTR_ID))
121*fcf3ce44SJohn ForteDEF_XML_DATA("alias",    "s", ISNS_ISCSI_ALIAS_ATTR_ID,
122*fcf3ce44SJohn Forte	ATTR_INDEX_ISCSI(ISNS_ISCSI_ALIAS_ATTR_ID))
123*fcf3ce44SJohn ForteDEF_XML_DATA("scn_bmp",  "u", ISNS_ISCSI_SCN_BITMAP_ATTR_ID,
124*fcf3ce44SJohn Forte	ATTR_INDEX_ISCSI(ISNS_ISCSI_SCN_BITMAP_ATTR_ID))
125*fcf3ce44SJohn ForteDEF_XML_DATA("auth",     "s", ISNS_ISCSI_AUTH_METHOD_ATTR_ID,
126*fcf3ce44SJohn Forte	ATTR_INDEX_ISCSI(ISNS_ISCSI_AUTH_METHOD_ATTR_ID))
127*fcf3ce44SJohn Forte
128*fcf3ce44SJohn Forte/*
129*fcf3ce44SJohn Forte * Attributes for Network Entity object.
130*fcf3ce44SJohn Forte */
131*fcf3ce44SJohn ForteDEF_XML_DATA("protocol", "u", ISNS_ENTITY_PROTOCOL_ATTR_ID,
132*fcf3ce44SJohn Forte	ATTR_INDEX_ENTITY(ISNS_ENTITY_PROTOCOL_ATTR_ID))
133*fcf3ce44SJohn ForteDEF_XML_DATA("period",   "u", ISNS_ENTITY_REG_PERIOD_ATTR_ID,
134*fcf3ce44SJohn Forte	ATTR_INDEX_ENTITY(ISNS_ENTITY_REG_PERIOD_ATTR_ID))
135*fcf3ce44SJohn Forte
136*fcf3ce44SJohn Forte/*
137*fcf3ce44SJohn Forte * Attributes for Discovery Domain object.
138*fcf3ce44SJohn Forte */
139*fcf3ce44SJohn Forte
140*fcf3ce44SJohn Forte/*
141*fcf3ce44SJohn Forte * Attributes for Discovery Domain Set object.
142*fcf3ce44SJohn Forte */
143*fcf3ce44SJohn ForteDEF_XML_DATA("status",   "u", ISNS_DD_SET_STATUS_ATTR_ID,
144*fcf3ce44SJohn Forte	ATTR_INDEX_DDS(ISNS_DD_SET_STATUS_ATTR_ID))
145*fcf3ce44SJohn Forte
146*fcf3ce44SJohn Forte#undef	DEF_XML_ROOT
147*fcf3ce44SJohn Forte#undef	DEF_XML_DATA
148*fcf3ce44SJohn Forte#undef	DEF_XML_PROP
149