{
    "_copyright": "Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "id": {
                "type": "string"
            },
            "ipmi_address": {
                "type": "string",
                "pattern": "^$|^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])?$"
            },
            "network": {
                "type": "object",
                "properties": {
                    "management_interface": {
                        "type": "string"
                    },
                    "interfaces": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "type": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "default_gateway": {
                                    "type": "string"
                                },
                                "dhcp": {
                                    "type": "boolean"
                                },
                                "mac_address": {
                                    "type": "string"
                                },
                                "ip_address": {
                                    "type": "string",
                                    "pattern": "^$|^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])?$"
                                }
                            },
                            "required": [
                                "type",
                                "name",
                                "default_gateway",
                                "dhcp",
                                "mac_address",
                                "ip_address"
                            ]
                        }
                    }
                },
                "required": [
                    "management_interface",
                    "interfaces"
                ]
            }
        },
        "required": [
            "id",
            "ipmi_address",
            "network"
        ]
    }
}