xref: /openbmc/bmcweb/features/redfish/schema/dmtf/json-schema/IPAddresses.v1_1_5.json (revision f2a8e57ede74a8252100b2281e3f4d170aa69391)
1*f2a8e57eSGunnar Mills{
2*f2a8e57eSGunnar Mills    "$id": "http://redfish.dmtf.org/schemas/v1/IPAddresses.v1_1_5.json",
3*f2a8e57eSGunnar Mills    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
4*f2a8e57eSGunnar Mills    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
5*f2a8e57eSGunnar Mills    "definitions": {
6*f2a8e57eSGunnar Mills        "AddressState": {
7*f2a8e57eSGunnar Mills            "enum": [
8*f2a8e57eSGunnar Mills                "Preferred",
9*f2a8e57eSGunnar Mills                "Deprecated",
10*f2a8e57eSGunnar Mills                "Tentative",
11*f2a8e57eSGunnar Mills                "Failed"
12*f2a8e57eSGunnar Mills            ],
13*f2a8e57eSGunnar Mills            "enumDescriptions": {
14*f2a8e57eSGunnar Mills                "Deprecated": "This address is currently within its valid lifetime but is now outside its RFC4862-defined preferred lifetime.",
15*f2a8e57eSGunnar Mills                "Failed": "This address has failed Duplicate Address Detection (DAD) testing, as defined in RFC4862, section 5.4, and is not currently in use.",
16*f2a8e57eSGunnar Mills                "Preferred": "This address is currently within both its RFC4862-defined valid and preferred lifetimes.",
17*f2a8e57eSGunnar Mills                "Tentative": "This address is currently undergoing Duplicate Address Detection (DAD) testing, as defined in RFC4862, section 5.4."
18*f2a8e57eSGunnar Mills            },
19*f2a8e57eSGunnar Mills            "type": "string"
20*f2a8e57eSGunnar Mills        },
21*f2a8e57eSGunnar Mills        "IPv4Address": {
22*f2a8e57eSGunnar Mills            "additionalProperties": false,
23*f2a8e57eSGunnar Mills            "description": "This type describes an IPv4 address.",
24*f2a8e57eSGunnar Mills            "longDescription": "This type shall describe an IPv4 address assigned to an interface.",
25*f2a8e57eSGunnar Mills            "patternProperties": {
26*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
27*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
28*f2a8e57eSGunnar Mills                    "type": [
29*f2a8e57eSGunnar Mills                        "array",
30*f2a8e57eSGunnar Mills                        "boolean",
31*f2a8e57eSGunnar Mills                        "integer",
32*f2a8e57eSGunnar Mills                        "number",
33*f2a8e57eSGunnar Mills                        "null",
34*f2a8e57eSGunnar Mills                        "object",
35*f2a8e57eSGunnar Mills                        "string"
36*f2a8e57eSGunnar Mills                    ]
37*f2a8e57eSGunnar Mills                }
38*f2a8e57eSGunnar Mills            },
39*f2a8e57eSGunnar Mills            "properties": {
40*f2a8e57eSGunnar Mills                "Address": {
41*f2a8e57eSGunnar Mills                    "description": "The IPv4 address.",
42*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an IPv4 address assigned to this interface.  If DHCPv4 is enabled on the interface, this property becomes read-only.",
43*f2a8e57eSGunnar Mills                    "pattern": "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$",
44*f2a8e57eSGunnar Mills                    "readonly": false,
45*f2a8e57eSGunnar Mills                    "type": [
46*f2a8e57eSGunnar Mills                        "string",
47*f2a8e57eSGunnar Mills                        "null"
48*f2a8e57eSGunnar Mills                    ]
49*f2a8e57eSGunnar Mills                },
50*f2a8e57eSGunnar Mills                "AddressOrigin": {
51*f2a8e57eSGunnar Mills                    "anyOf": [
52*f2a8e57eSGunnar Mills                        {
53*f2a8e57eSGunnar Mills                            "$ref": "#/definitions/IPv4AddressOrigin"
54*f2a8e57eSGunnar Mills                        },
55*f2a8e57eSGunnar Mills                        {
56*f2a8e57eSGunnar Mills                            "type": "null"
57*f2a8e57eSGunnar Mills                        }
58*f2a8e57eSGunnar Mills                    ],
59*f2a8e57eSGunnar Mills                    "description": "This indicates how the address was determined.",
60*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the IP address origin for this network interface.",
61*f2a8e57eSGunnar Mills                    "readonly": true
62*f2a8e57eSGunnar Mills                },
63*f2a8e57eSGunnar Mills                "Gateway": {
64*f2a8e57eSGunnar Mills                    "description": "The IPv4 gateway for this address.",
65*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the IPv4 default gateway address for this interface.  If DHCPv4 is enabled on the interface and is configured to set the IPv4 default gateway address, this property becomes read-only.  If multiple IPv4 addresses are present on the same interface, only a single default gateway is allowed.  Any additional IPv4 addresses shall not have a default gateway specified.",
66*f2a8e57eSGunnar Mills                    "pattern": "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$",
67*f2a8e57eSGunnar Mills                    "readonly": false,
68*f2a8e57eSGunnar Mills                    "type": [
69*f2a8e57eSGunnar Mills                        "string",
70*f2a8e57eSGunnar Mills                        "null"
71*f2a8e57eSGunnar Mills                    ]
72*f2a8e57eSGunnar Mills                },
73*f2a8e57eSGunnar Mills                "Oem": {
74*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
75*f2a8e57eSGunnar Mills                    "description": "The OEM extension property.",
76*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties contained in this object shall conform to the Redfish Specification-described requirements."
77*f2a8e57eSGunnar Mills                },
78*f2a8e57eSGunnar Mills                "SubnetMask": {
79*f2a8e57eSGunnar Mills                    "anyOf": [
80*f2a8e57eSGunnar Mills                        {
81*f2a8e57eSGunnar Mills                            "$ref": "#/definitions/SubnetMask"
82*f2a8e57eSGunnar Mills                        },
83*f2a8e57eSGunnar Mills                        {
84*f2a8e57eSGunnar Mills                            "type": "null"
85*f2a8e57eSGunnar Mills                        }
86*f2a8e57eSGunnar Mills                    ],
87*f2a8e57eSGunnar Mills                    "description": "The IPv4 subnet mask.",
88*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the IPv4 subnet mask for this address.  If DHCPv4 is enabled on the interface, this property becomes read-only.",
89*f2a8e57eSGunnar Mills                    "readonly": false
90*f2a8e57eSGunnar Mills                }
91*f2a8e57eSGunnar Mills            },
92*f2a8e57eSGunnar Mills            "type": "object"
93*f2a8e57eSGunnar Mills        },
94*f2a8e57eSGunnar Mills        "IPv4AddressOrigin": {
95*f2a8e57eSGunnar Mills            "enum": [
96*f2a8e57eSGunnar Mills                "Static",
97*f2a8e57eSGunnar Mills                "DHCP",
98*f2a8e57eSGunnar Mills                "BOOTP",
99*f2a8e57eSGunnar Mills                "IPv4LinkLocal"
100*f2a8e57eSGunnar Mills            ],
101*f2a8e57eSGunnar Mills            "enumDescriptions": {
102*f2a8e57eSGunnar Mills                "BOOTP": "A BOOTP service-provided address.",
103*f2a8e57eSGunnar Mills                "DHCP": "A DHCPv4 service-provided address.",
104*f2a8e57eSGunnar Mills                "IPv4LinkLocal": "The address is valid for only this network segment, or link.",
105*f2a8e57eSGunnar Mills                "Static": "A user-configured static address."
106*f2a8e57eSGunnar Mills            },
107*f2a8e57eSGunnar Mills            "type": "string"
108*f2a8e57eSGunnar Mills        },
109*f2a8e57eSGunnar Mills        "IPv6Address": {
110*f2a8e57eSGunnar Mills            "additionalProperties": false,
111*f2a8e57eSGunnar Mills            "description": "This type describes an IPv6 address.",
112*f2a8e57eSGunnar Mills            "longDescription": "This type shall describe an IPv6 address assigned to an interface.",
113*f2a8e57eSGunnar Mills            "patternProperties": {
114*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
115*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
116*f2a8e57eSGunnar Mills                    "type": [
117*f2a8e57eSGunnar Mills                        "array",
118*f2a8e57eSGunnar Mills                        "boolean",
119*f2a8e57eSGunnar Mills                        "integer",
120*f2a8e57eSGunnar Mills                        "number",
121*f2a8e57eSGunnar Mills                        "null",
122*f2a8e57eSGunnar Mills                        "object",
123*f2a8e57eSGunnar Mills                        "string"
124*f2a8e57eSGunnar Mills                    ]
125*f2a8e57eSGunnar Mills                }
126*f2a8e57eSGunnar Mills            },
127*f2a8e57eSGunnar Mills            "properties": {
128*f2a8e57eSGunnar Mills                "Address": {
129*f2a8e57eSGunnar Mills                    "description": "The IPv6 address.",
130*f2a8e57eSGunnar Mills                    "longDescription": "This property lists an IPv6 address that is currently assigned on this interface.",
131*f2a8e57eSGunnar Mills                    "readonly": false,
132*f2a8e57eSGunnar Mills                    "type": [
133*f2a8e57eSGunnar Mills                        "string",
134*f2a8e57eSGunnar Mills                        "null"
135*f2a8e57eSGunnar Mills                    ]
136*f2a8e57eSGunnar Mills                },
137*f2a8e57eSGunnar Mills                "AddressOrigin": {
138*f2a8e57eSGunnar Mills                    "anyOf": [
139*f2a8e57eSGunnar Mills                        {
140*f2a8e57eSGunnar Mills                            "$ref": "#/definitions/IPv6AddressOrigin"
141*f2a8e57eSGunnar Mills                        },
142*f2a8e57eSGunnar Mills                        {
143*f2a8e57eSGunnar Mills                            "type": "null"
144*f2a8e57eSGunnar Mills                        }
145*f2a8e57eSGunnar Mills                    ],
146*f2a8e57eSGunnar Mills                    "description": "This indicates how the address was determined.",
147*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the IPv6 address origin for this interface.",
148*f2a8e57eSGunnar Mills                    "readonly": true
149*f2a8e57eSGunnar Mills                },
150*f2a8e57eSGunnar Mills                "AddressState": {
151*f2a8e57eSGunnar Mills                    "anyOf": [
152*f2a8e57eSGunnar Mills                        {
153*f2a8e57eSGunnar Mills                            "$ref": "#/definitions/AddressState"
154*f2a8e57eSGunnar Mills                        },
155*f2a8e57eSGunnar Mills                        {
156*f2a8e57eSGunnar Mills                            "type": "null"
157*f2a8e57eSGunnar Mills                        }
158*f2a8e57eSGunnar Mills                    ],
159*f2a8e57eSGunnar Mills                    "description": "The current RFC4862-defined state of this address.",
160*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the current RFC4862-defined state of this address.  Preferred and Deprecated states follow the definitions in RFC4862, section 5.5.4.  The Tentative state indicates that the address is undergoing Duplicate Address Detection (DAD), as defined in RFC4862, section 5.4.  The Failed state indicates a static address that did not pass DAD.  A static address in the Failed state is not in use on the network stack, and corrective action is required to remedy this condition.",
161*f2a8e57eSGunnar Mills                    "readonly": true
162*f2a8e57eSGunnar Mills                },
163*f2a8e57eSGunnar Mills                "Oem": {
164*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
165*f2a8e57eSGunnar Mills                    "description": "The OEM extension property.",
166*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties contained in this object shall conform to the Redfish Specification-described requirements."
167*f2a8e57eSGunnar Mills                },
168*f2a8e57eSGunnar Mills                "PrefixLength": {
169*f2a8e57eSGunnar Mills                    "anyOf": [
170*f2a8e57eSGunnar Mills                        {
171*f2a8e57eSGunnar Mills                            "$ref": "#/definitions/PrefixLength"
172*f2a8e57eSGunnar Mills                        },
173*f2a8e57eSGunnar Mills                        {
174*f2a8e57eSGunnar Mills                            "type": "null"
175*f2a8e57eSGunnar Mills                        }
176*f2a8e57eSGunnar Mills                    ],
177*f2a8e57eSGunnar Mills                    "description": "The IPv6 address prefix Length.",
178*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the IPv6 address prefix length for this interface.",
179*f2a8e57eSGunnar Mills                    "readonly": true
180*f2a8e57eSGunnar Mills                }
181*f2a8e57eSGunnar Mills            },
182*f2a8e57eSGunnar Mills            "type": "object"
183*f2a8e57eSGunnar Mills        },
184*f2a8e57eSGunnar Mills        "IPv6AddressOrigin": {
185*f2a8e57eSGunnar Mills            "enum": [
186*f2a8e57eSGunnar Mills                "Static",
187*f2a8e57eSGunnar Mills                "DHCPv6",
188*f2a8e57eSGunnar Mills                "LinkLocal",
189*f2a8e57eSGunnar Mills                "SLAAC"
190*f2a8e57eSGunnar Mills            ],
191*f2a8e57eSGunnar Mills            "enumDescriptions": {
192*f2a8e57eSGunnar Mills                "DHCPv6": "A DHCPv6 service-provided address.",
193*f2a8e57eSGunnar Mills                "LinkLocal": "The address is valid for only this network segment, or link.",
194*f2a8e57eSGunnar Mills                "SLAAC": "A stateless autoconfiguration (SLAAC) service-provided address.",
195*f2a8e57eSGunnar Mills                "Static": "A static user-configured address."
196*f2a8e57eSGunnar Mills            },
197*f2a8e57eSGunnar Mills            "type": "string"
198*f2a8e57eSGunnar Mills        },
199*f2a8e57eSGunnar Mills        "IPv6GatewayStaticAddress": {
200*f2a8e57eSGunnar Mills            "additionalProperties": false,
201*f2a8e57eSGunnar Mills            "description": "This type represents a single IPv6 static address to be assigned on a network interface.",
202*f2a8e57eSGunnar Mills            "longDescription": "This type shall represent a single IPv6 static address to be assigned on a network interface.",
203*f2a8e57eSGunnar Mills            "patternProperties": {
204*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
205*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
206*f2a8e57eSGunnar Mills                    "type": [
207*f2a8e57eSGunnar Mills                        "array",
208*f2a8e57eSGunnar Mills                        "boolean",
209*f2a8e57eSGunnar Mills                        "integer",
210*f2a8e57eSGunnar Mills                        "number",
211*f2a8e57eSGunnar Mills                        "null",
212*f2a8e57eSGunnar Mills                        "object",
213*f2a8e57eSGunnar Mills                        "string"
214*f2a8e57eSGunnar Mills                    ]
215*f2a8e57eSGunnar Mills                }
216*f2a8e57eSGunnar Mills            },
217*f2a8e57eSGunnar Mills            "properties": {
218*f2a8e57eSGunnar Mills                "Address": {
219*f2a8e57eSGunnar Mills                    "description": "A valid IPv6 address.",
220*f2a8e57eSGunnar Mills                    "longDescription": "This property provides access to a static IPv6 address that is currently assigned on a network interface.",
221*f2a8e57eSGunnar Mills                    "readonly": false,
222*f2a8e57eSGunnar Mills                    "type": [
223*f2a8e57eSGunnar Mills                        "string",
224*f2a8e57eSGunnar Mills                        "null"
225*f2a8e57eSGunnar Mills                    ],
226*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
227*f2a8e57eSGunnar Mills                },
228*f2a8e57eSGunnar Mills                "Oem": {
229*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
230*f2a8e57eSGunnar Mills                    "description": "The OEM extension property.",
231*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties contained in this object shall conform to the Redfish Specification-described requirements.",
232*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
233*f2a8e57eSGunnar Mills                },
234*f2a8e57eSGunnar Mills                "PrefixLength": {
235*f2a8e57eSGunnar Mills                    "anyOf": [
236*f2a8e57eSGunnar Mills                        {
237*f2a8e57eSGunnar Mills                            "$ref": "#/definitions/PrefixLength"
238*f2a8e57eSGunnar Mills                        },
239*f2a8e57eSGunnar Mills                        {
240*f2a8e57eSGunnar Mills                            "type": "null"
241*f2a8e57eSGunnar Mills                        }
242*f2a8e57eSGunnar Mills                    ],
243*f2a8e57eSGunnar Mills                    "description": "The IPv6 network prefix length, in bits, for this address.",
244*f2a8e57eSGunnar Mills                    "longDescription": "Provides the IPv6 network prefix length, in bits, for this address.",
245*f2a8e57eSGunnar Mills                    "readonly": false,
246*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
247*f2a8e57eSGunnar Mills                }
248*f2a8e57eSGunnar Mills            },
249*f2a8e57eSGunnar Mills            "required": [
250*f2a8e57eSGunnar Mills                "Address"
251*f2a8e57eSGunnar Mills            ],
252*f2a8e57eSGunnar Mills            "type": "object"
253*f2a8e57eSGunnar Mills        },
254*f2a8e57eSGunnar Mills        "IPv6StaticAddress": {
255*f2a8e57eSGunnar Mills            "additionalProperties": false,
256*f2a8e57eSGunnar Mills            "description": "This type represents a single IPv6 static address to be assigned on a network interface.",
257*f2a8e57eSGunnar Mills            "longDescription": "This type shall represent a single IPv6 static address to be assigned on a network interface.",
258*f2a8e57eSGunnar Mills            "patternProperties": {
259*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
260*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
261*f2a8e57eSGunnar Mills                    "type": [
262*f2a8e57eSGunnar Mills                        "array",
263*f2a8e57eSGunnar Mills                        "boolean",
264*f2a8e57eSGunnar Mills                        "integer",
265*f2a8e57eSGunnar Mills                        "number",
266*f2a8e57eSGunnar Mills                        "null",
267*f2a8e57eSGunnar Mills                        "object",
268*f2a8e57eSGunnar Mills                        "string"
269*f2a8e57eSGunnar Mills                    ]
270*f2a8e57eSGunnar Mills                }
271*f2a8e57eSGunnar Mills            },
272*f2a8e57eSGunnar Mills            "properties": {
273*f2a8e57eSGunnar Mills                "Address": {
274*f2a8e57eSGunnar Mills                    "description": "A valid IPv6 address.",
275*f2a8e57eSGunnar Mills                    "longDescription": "This property provides access to a static IPv6 address that is currently assigned on a network interface.",
276*f2a8e57eSGunnar Mills                    "readonly": false,
277*f2a8e57eSGunnar Mills                    "type": [
278*f2a8e57eSGunnar Mills                        "string",
279*f2a8e57eSGunnar Mills                        "null"
280*f2a8e57eSGunnar Mills                    ]
281*f2a8e57eSGunnar Mills                },
282*f2a8e57eSGunnar Mills                "Oem": {
283*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
284*f2a8e57eSGunnar Mills                    "description": "The OEM extension property.",
285*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties contained in this object shall conform to the Redfish Specification-described requirements."
286*f2a8e57eSGunnar Mills                },
287*f2a8e57eSGunnar Mills                "PrefixLength": {
288*f2a8e57eSGunnar Mills                    "anyOf": [
289*f2a8e57eSGunnar Mills                        {
290*f2a8e57eSGunnar Mills                            "$ref": "#/definitions/PrefixLength"
291*f2a8e57eSGunnar Mills                        },
292*f2a8e57eSGunnar Mills                        {
293*f2a8e57eSGunnar Mills                            "type": "null"
294*f2a8e57eSGunnar Mills                        }
295*f2a8e57eSGunnar Mills                    ],
296*f2a8e57eSGunnar Mills                    "description": "The prefix length, in bits, of this IPv6 address.",
297*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the IPv6 network prefix length, in bits, for this address.",
298*f2a8e57eSGunnar Mills                    "readonly": false
299*f2a8e57eSGunnar Mills                }
300*f2a8e57eSGunnar Mills            },
301*f2a8e57eSGunnar Mills            "required": [
302*f2a8e57eSGunnar Mills                "Address",
303*f2a8e57eSGunnar Mills                "PrefixLength"
304*f2a8e57eSGunnar Mills            ],
305*f2a8e57eSGunnar Mills            "type": "object"
306*f2a8e57eSGunnar Mills        },
307*f2a8e57eSGunnar Mills        "PrefixLength": {
308*f2a8e57eSGunnar Mills            "maximum": 128,
309*f2a8e57eSGunnar Mills            "minimum": 0,
310*f2a8e57eSGunnar Mills            "type": "integer"
311*f2a8e57eSGunnar Mills        },
312*f2a8e57eSGunnar Mills        "SubnetMask": {
313*f2a8e57eSGunnar Mills            "pattern": "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$",
314*f2a8e57eSGunnar Mills            "type": "string"
315*f2a8e57eSGunnar Mills        }
316*f2a8e57eSGunnar Mills    },
317*f2a8e57eSGunnar Mills    "language": "en",
318*f2a8e57eSGunnar Mills    "owningEntity": "DMTF",
319*f2a8e57eSGunnar Mills    "release": "2018.2",
320*f2a8e57eSGunnar Mills    "title": "#IPAddresses.v1_1_5"
321*f2a8e57eSGunnar Mills}