Updated validation rules for service dependencies.

This commit is contained in:
Gunnar Beutner 2013-02-08 16:09:42 +01:00
parent 8f9ac837af
commit b5f59dc882
1 changed files with 24 additions and 3 deletions

View File

@ -58,7 +58,14 @@ type Host {
%attribute string "*" %attribute string "*"
}, },
%attribute dictionary "servicedependencies" { %attribute dictionary "servicedependencies" {
%attribute string "*" %attribute string "*",
%attribute dictionary "*" {
%require "host",
%attribute string "host",
%require "service",
%attribute string "service"
}
}, },
%attribute dictionary "services" { %attribute dictionary "services" {
%validator "native::ValidateServiceDictionary", %validator "native::ValidateServiceDictionary",
@ -84,7 +91,14 @@ type Host {
%attribute string "*" %attribute string "*"
}, },
%attribute dictionary "servicedependencies" { %attribute dictionary "servicedependencies" {
%attribute string "*" %attribute string "*",
%attribute dictionary "*" {
%require "host",
%attribute string "host",
%require "service",
%attribute string "service"
}
} }
} }
}, },
@ -138,7 +152,14 @@ type Service {
%attribute string "*" %attribute string "*"
}, },
%attribute dictionary "servicedependencies" { %attribute dictionary "servicedependencies" {
%attribute string "*" %attribute string "*",
%attribute dictionary "*" {
%require "host",
%attribute string "host",
%require "service",
%attribute string "service"
}
}, },
%attribute dictionary "servicegroups" { %attribute dictionary "servicegroups" {
%attribute string "*" %attribute string "*"