snmp: fix schema/yaml syntax

This cause the docs to not get generated correctly

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2025-03-24 07:59:04 +01:00
parent 50c4ead343
commit c2338adfe4
8 changed files with 1138 additions and 714 deletions

View File

@@ -2,77 +2,77 @@ description:
List of access types for SNMP.
type: object
properties:
- public_access:
type: object
description:
Configuration of public access.
properties:
context:
description:
A collection of management information accessible by an SNMP entity.
type: string
group:
description:
Group related to the access.
type: string
level:
description:
Level of authorization.
type: string
notify:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
prefix:
description:
Specifies how CONTEXT should be matched against the context of the incoming request.
type: string
read:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
version:
description:
SNMP version.
type: string
write:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
- private_access:
type: object
description:
Configuration of public access.
properties:
context:
description:
A collection of management information accessible by an SNMP entity.
type: string
group:
description:
Group related to the access.
type: string
level:
description:
Level of authorization.
type: string
notify:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
prefix:
description:
Specifies how CONTEXT should be matched against the context of the incoming request.
type: string
read:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
version:
description:
SNMP version.
type: string
write:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
public_access:
type: object
description:
Configuration of public access.
properties:
context:
description:
A collection of management information accessible by an SNMP entity.
type: string
group:
description:
Group related to the access.
type: string
level:
description:
Level of authorization.
type: string
notify:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
prefix:
description:
Specifies how CONTEXT should be matched against the context of the incoming request.
type: string
read:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
version:
description:
SNMP version.
type: string
write:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
private_access:
type: object
description:
Configuration of public access.
properties:
context:
description:
A collection of management information accessible by an SNMP entity.
type: string
group:
description:
Group related to the access.
type: string
level:
description:
Level of authorization.
type: string
notify:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
prefix:
description:
Specifies how CONTEXT should be matched against the context of the incoming request.
type: string
read:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string
version:
description:
SNMP version.
type: string
write:
description:
Specifies the view to be used for GET*, SET and TRAP/INFORM requests.
type: string

View File

@@ -2,37 +2,37 @@ description:
Map an SNMPv1 or SNMPv2c community string to a security name..
type: object
properties:
- public:
description:
Public com2sec.
type: object
properties:
community:
description:
Community name.
type: string
secname:
description:
Security name.
type: string
source:
description:
A restricted source can either be a specific hostname or a subnet.
type: string
- private:
description:
Private com2sec.
type: object
properties:
community:
description:
Community name.
type: string
secname:
description:
Security name.
type: string
source:
description:
A restricted source can either be a specific hostname or a subnet.
type: string
public:
description:
Public com2sec.
type: object
properties:
community:
description:
Community name.
type: string
secname:
description:
Security name.
type: string
source:
description:
A restricted source can either be a specific hostname or a subnet.
type: string
private:
description:
Private com2sec.
type: object
properties:
community:
description:
Community name.
type: string
secname:
description:
Security name.
type: string
source:
description:
A restricted source can either be a specific hostname or a subnet.
type: string

View File

@@ -2,63 +2,63 @@ description:
List of pass sections for SNMP.
type: object
properties:
- public_v1:
type: object
properties:
group:
type: string
description:
Group name.
secname:
description:
Related security name.
type: string
version:
description:
SNMP version.
type: string
- private_v1:
type: object
properties:
group:
type: string
description:
Group name.
secname:
description:
Related security name.
type: string
version:
description:
SNMP version.
type: string
- private_v2c:
type: object
properties:
group:
type: string
description:
Group name.
secname:
description:
Related security name.
type: string
version:
description:
SNMP version.
type: string
- public_v2c:
type: object
properties:
group:
type: string
description:
Group name.
secname:
description:
Related security name.
type: string
version:
description:
SNMP version.
type: string
public_v1:
type: object
properties:
group:
type: string
description:
Group name.
secname:
description:
Related security name.
type: string
version:
description:
SNMP version.
type: string
private_v1:
type: object
properties:
group:
type: string
description:
Group name.
secname:
description:
Related security name.
type: string
version:
description:
SNMP version.
type: string
private_v2c:
type: object
properties:
group:
type: string
description:
Group name.
secname:
description:
Related security name.
type: string
version:
description:
SNMP version.
type: string
public_v2c:
type: object
properties:
group:
type: string
description:
Group name.
secname:
description:
Related security name.
type: string
version:
description:
SNMP version.
type: string

View File

@@ -2,15 +2,15 @@ description:
View configuration.
type: object
properties:
oid:
description:
Define the source oid tree for the view.
type: string
type:
description:
Type is either included or excluded.
type: string
viewname:
description:
View name.
type: string
oid:
description:
Define the source oid tree for the view.
type: string
type:
description:
Type is either included or excluded.
type: string
viewname:
description:
View name.
type: string

View File

@@ -9537,6 +9537,216 @@ function instantiateServiceSnmpdAccess(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parsePublic_access(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parseContext(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "context")) {
obj.context = parseContext(location + "/context", value["context"], errors);
}
function parseGroup(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "group")) {
obj.group = parseGroup(location + "/group", value["group"], errors);
}
function parseLevel(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "level")) {
obj.level = parseLevel(location + "/level", value["level"], errors);
}
function parseNotify(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "notify")) {
obj.notify = parseNotify(location + "/notify", value["notify"], errors);
}
function parsePrefix(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "prefix")) {
obj.prefix = parsePrefix(location + "/prefix", value["prefix"], errors);
}
function parseRead(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "read")) {
obj.read = parseRead(location + "/read", value["read"], errors);
}
function parseVersion(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "version")) {
obj.version = parseVersion(location + "/version", value["version"], errors);
}
function parseWrite(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "write")) {
obj.write = parseWrite(location + "/write", value["write"], errors);
}
return obj;
}
if (type(value) != "object")
push(errors, [ location, "must be of type object" ]);
return value;
}
if (exists(value, "public_access")) {
obj.public_access = parsePublic_access(location + "/public_access", value["public_access"], errors);
}
function parsePrivate_access(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parseContext(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "context")) {
obj.context = parseContext(location + "/context", value["context"], errors);
}
function parseGroup(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "group")) {
obj.group = parseGroup(location + "/group", value["group"], errors);
}
function parseLevel(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "level")) {
obj.level = parseLevel(location + "/level", value["level"], errors);
}
function parseNotify(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "notify")) {
obj.notify = parseNotify(location + "/notify", value["notify"], errors);
}
function parsePrefix(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "prefix")) {
obj.prefix = parsePrefix(location + "/prefix", value["prefix"], errors);
}
function parseRead(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "read")) {
obj.read = parseRead(location + "/read", value["read"], errors);
}
function parseVersion(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "version")) {
obj.version = parseVersion(location + "/version", value["version"], errors);
}
function parseWrite(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "write")) {
obj.write = parseWrite(location + "/write", value["write"], errors);
}
return obj;
}
if (type(value) != "object")
push(errors, [ location, "must be of type object" ]);
return value;
}
if (exists(value, "private_access")) {
obj.private_access = parsePrivate_access(location + "/private_access", value["private_access"], errors);
}
return obj;
}
@@ -9577,6 +9787,106 @@ function instantiateServiceSnmpdCom2sec(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parsePublic(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parseCommunity(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "community")) {
obj.community = parseCommunity(location + "/community", value["community"], errors);
}
function parseSecname(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "secname")) {
obj.secname = parseSecname(location + "/secname", value["secname"], errors);
}
function parseSource(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "source")) {
obj.source = parseSource(location + "/source", value["source"], errors);
}
return obj;
}
if (type(value) != "object")
push(errors, [ location, "must be of type object" ]);
return value;
}
if (exists(value, "public")) {
obj.public = parsePublic(location + "/public", value["public"], errors);
}
function parsePrivate(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parseCommunity(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "community")) {
obj.community = parseCommunity(location + "/community", value["community"], errors);
}
function parseSecname(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "secname")) {
obj.secname = parseSecname(location + "/secname", value["secname"], errors);
}
function parseSource(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "source")) {
obj.source = parseSource(location + "/source", value["source"], errors);
}
return obj;
}
if (type(value) != "object")
push(errors, [ location, "must be of type object" ]);
return value;
}
if (exists(value, "private")) {
obj.private = parsePrivate(location + "/private", value["private"], errors);
}
return obj;
}
@@ -9674,6 +9984,206 @@ function instantiateServiceSnmpdGroup(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parsePublic_v1(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parseGroup(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "group")) {
obj.group = parseGroup(location + "/group", value["group"], errors);
}
function parseSecname(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "secname")) {
obj.secname = parseSecname(location + "/secname", value["secname"], errors);
}
function parseVersion(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "version")) {
obj.version = parseVersion(location + "/version", value["version"], errors);
}
return obj;
}
if (type(value) != "object")
push(errors, [ location, "must be of type object" ]);
return value;
}
if (exists(value, "public_v1")) {
obj.public_v1 = parsePublic_v1(location + "/public_v1", value["public_v1"], errors);
}
function parsePrivate_v1(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parseGroup(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "group")) {
obj.group = parseGroup(location + "/group", value["group"], errors);
}
function parseSecname(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "secname")) {
obj.secname = parseSecname(location + "/secname", value["secname"], errors);
}
function parseVersion(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "version")) {
obj.version = parseVersion(location + "/version", value["version"], errors);
}
return obj;
}
if (type(value) != "object")
push(errors, [ location, "must be of type object" ]);
return value;
}
if (exists(value, "private_v1")) {
obj.private_v1 = parsePrivate_v1(location + "/private_v1", value["private_v1"], errors);
}
function parsePrivate_v2c(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parseGroup(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "group")) {
obj.group = parseGroup(location + "/group", value["group"], errors);
}
function parseSecname(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "secname")) {
obj.secname = parseSecname(location + "/secname", value["secname"], errors);
}
function parseVersion(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "version")) {
obj.version = parseVersion(location + "/version", value["version"], errors);
}
return obj;
}
if (type(value) != "object")
push(errors, [ location, "must be of type object" ]);
return value;
}
if (exists(value, "private_v2c")) {
obj.private_v2c = parsePrivate_v2c(location + "/private_v2c", value["private_v2c"], errors);
}
function parsePublic_v2c(location, value, errors) {
if (type(value) == "object") {
let obj = {};
function parseGroup(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "group")) {
obj.group = parseGroup(location + "/group", value["group"], errors);
}
function parseSecname(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "secname")) {
obj.secname = parseSecname(location + "/secname", value["secname"], errors);
}
function parseVersion(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "version")) {
obj.version = parseVersion(location + "/version", value["version"], errors);
}
return obj;
}
if (type(value) != "object")
push(errors, [ location, "must be of type object" ]);
return value;
}
if (exists(value, "public_v2c")) {
obj.public_v2c = parsePublic_v2c(location + "/public_v2c", value["public_v2c"], errors);
}
return obj;
}

View File

@@ -4435,88 +4435,84 @@
"access": {
"description": "List of access types for SNMP.",
"type": "object",
"properties": [
{
"public_access": {
"type": "object",
"description": "Configuration of public access.",
"properties": {
"context": {
"description": "A collection of management information accessible by an SNMP entity.",
"type": "string"
},
"group": {
"description": "Group related to the access.",
"type": "string"
},
"level": {
"description": "Level of authorization.",
"type": "string"
},
"notify": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"prefix": {
"description": "Specifies how CONTEXT should be matched against the context of the incoming request.",
"type": "string"
},
"read": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
},
"write": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
}
"properties": {
"public_access": {
"type": "object",
"description": "Configuration of public access.",
"properties": {
"context": {
"description": "A collection of management information accessible by an SNMP entity.",
"type": "string"
},
"group": {
"description": "Group related to the access.",
"type": "string"
},
"level": {
"description": "Level of authorization.",
"type": "string"
},
"notify": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"prefix": {
"description": "Specifies how CONTEXT should be matched against the context of the incoming request.",
"type": "string"
},
"read": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
},
"write": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
}
}
},
{
"private_access": {
"type": "object",
"description": "Configuration of public access.",
"properties": {
"context": {
"description": "A collection of management information accessible by an SNMP entity.",
"type": "string"
},
"group": {
"description": "Group related to the access.",
"type": "string"
},
"level": {
"description": "Level of authorization.",
"type": "string"
},
"notify": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"prefix": {
"description": "Specifies how CONTEXT should be matched against the context of the incoming request.",
"type": "string"
},
"read": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
},
"write": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
}
"private_access": {
"type": "object",
"description": "Configuration of public access.",
"properties": {
"context": {
"description": "A collection of management information accessible by an SNMP entity.",
"type": "string"
},
"group": {
"description": "Group related to the access.",
"type": "string"
},
"level": {
"description": "Level of authorization.",
"type": "string"
},
"notify": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"prefix": {
"description": "Specifies how CONTEXT should be matched against the context of the incoming request.",
"type": "string"
},
"read": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
},
"write": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
}
}
}
]
}
},
"agentx": {
"description": "Configure the role in AgentX protocol.",
@@ -4532,48 +4528,44 @@
"com2sec": {
"description": "Map an SNMPv1 or SNMPv2c community string to a security name..",
"type": "object",
"properties": [
{
"public": {
"description": "Public com2sec.",
"type": "object",
"properties": {
"community": {
"description": "Community name.",
"type": "string"
},
"secname": {
"description": "Security name.",
"type": "string"
},
"source": {
"description": "A restricted source can either be a specific hostname or a subnet.",
"type": "string"
}
"properties": {
"public": {
"description": "Public com2sec.",
"type": "object",
"properties": {
"community": {
"description": "Community name.",
"type": "string"
},
"secname": {
"description": "Security name.",
"type": "string"
},
"source": {
"description": "A restricted source can either be a specific hostname or a subnet.",
"type": "string"
}
}
},
{
"private": {
"description": "Private com2sec.",
"type": "object",
"properties": {
"community": {
"description": "Community name.",
"type": "string"
},
"secname": {
"description": "Security name.",
"type": "string"
},
"source": {
"description": "A restricted source can either be a specific hostname or a subnet.",
"type": "string"
}
"private": {
"description": "Private com2sec.",
"type": "object",
"properties": {
"community": {
"description": "Community name.",
"type": "string"
},
"secname": {
"description": "Security name.",
"type": "string"
},
"source": {
"description": "A restricted source can either be a specific hostname or a subnet.",
"type": "string"
}
}
}
]
}
},
"general": {
"description": "General options for SNMP service.",
@@ -4610,84 +4602,76 @@
"group": {
"description": "List of pass sections for SNMP.",
"type": "object",
"properties": [
{
"public_v1": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"properties": {
"public_v1": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
}
},
{
"private_v1": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"private_v1": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
}
},
{
"private_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"private_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
}
},
{
"public_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"public_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
}
}
]
}
},
"system": {
"description": "System information used by SNMP service.",

View File

@@ -3373,88 +3373,66 @@
},
"service.snmpd.access": {
"type": "object",
"properties": [
{
"public_access": {
"type": "object",
"description": "Configuration of public access.",
"properties": {
"context": {
"description": "A collection of management information accessible by an SNMP entity.",
"type": "string"
},
"group": {
"description": "Group related to the access.",
"type": "string"
},
"level": {
"description": "Level of authorization.",
"type": "string"
},
"notify": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"prefix": {
"description": "Specifies how CONTEXT should be matched against the context of the incoming request.",
"type": "string"
},
"read": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
},
"write": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
}
"properties": {
"public_access": {
"type": "object",
"properties": {
"context": {
"type": "string"
},
"group": {
"type": "string"
},
"level": {
"type": "string"
},
"notify": {
"type": "string"
},
"prefix": {
"type": "string"
},
"read": {
"type": "string"
},
"version": {
"type": "string"
},
"write": {
"type": "string"
}
}
},
{
"private_access": {
"type": "object",
"description": "Configuration of public access.",
"properties": {
"context": {
"description": "A collection of management information accessible by an SNMP entity.",
"type": "string"
},
"group": {
"description": "Group related to the access.",
"type": "string"
},
"level": {
"description": "Level of authorization.",
"type": "string"
},
"notify": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"prefix": {
"description": "Specifies how CONTEXT should be matched against the context of the incoming request.",
"type": "string"
},
"read": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
},
"write": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
}
"private_access": {
"type": "object",
"properties": {
"context": {
"type": "string"
},
"group": {
"type": "string"
},
"level": {
"type": "string"
},
"notify": {
"type": "string"
},
"prefix": {
"type": "string"
},
"read": {
"type": "string"
},
"version": {
"type": "string"
},
"write": {
"type": "string"
}
}
}
]
}
},
"service.snmpd.agentx": {
"type": "object",
@@ -3467,48 +3445,36 @@
},
"service.snmpd.com2sec": {
"type": "object",
"properties": [
{
"public": {
"description": "Public com2sec.",
"type": "object",
"properties": {
"community": {
"description": "Community name.",
"type": "string"
},
"secname": {
"description": "Security name.",
"type": "string"
},
"source": {
"description": "A restricted source can either be a specific hostname or a subnet.",
"type": "string"
}
"properties": {
"public": {
"type": "object",
"properties": {
"community": {
"type": "string"
},
"secname": {
"type": "string"
},
"source": {
"type": "string"
}
}
},
{
"private": {
"description": "Private com2sec.",
"type": "object",
"properties": {
"community": {
"description": "Community name.",
"type": "string"
},
"secname": {
"description": "Security name.",
"type": "string"
},
"source": {
"description": "A restricted source can either be a specific hostname or a subnet.",
"type": "string"
}
"private": {
"type": "object",
"properties": {
"community": {
"type": "string"
},
"secname": {
"type": "string"
},
"source": {
"type": "string"
}
}
}
]
}
},
"service.snmpd.general": {
"type": "object",
@@ -3538,84 +3504,64 @@
},
"service.snmpd.group": {
"type": "object",
"properties": [
{
"public_v1": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"properties": {
"public_v1": {
"type": "object",
"properties": {
"group": {
"type": "string"
},
"secname": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
{
"private_v1": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"private_v1": {
"type": "object",
"properties": {
"group": {
"type": "string"
},
"secname": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
{
"private_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"private_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string"
},
"secname": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
{
"public_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"public_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string"
},
"secname": {
"type": "string"
},
"version": {
"type": "string"
}
}
}
]
}
},
"service.snmpd.system": {
"type": "object",

View File

@@ -3874,88 +3874,84 @@
"service.snmpd.access": {
"description": "List of access types for SNMP.",
"type": "object",
"properties": [
{
"public_access": {
"type": "object",
"description": "Configuration of public access.",
"properties": {
"context": {
"description": "A collection of management information accessible by an SNMP entity.",
"type": "string"
},
"group": {
"description": "Group related to the access.",
"type": "string"
},
"level": {
"description": "Level of authorization.",
"type": "string"
},
"notify": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"prefix": {
"description": "Specifies how CONTEXT should be matched against the context of the incoming request.",
"type": "string"
},
"read": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
},
"write": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
}
"properties": {
"public_access": {
"type": "object",
"description": "Configuration of public access.",
"properties": {
"context": {
"description": "A collection of management information accessible by an SNMP entity.",
"type": "string"
},
"group": {
"description": "Group related to the access.",
"type": "string"
},
"level": {
"description": "Level of authorization.",
"type": "string"
},
"notify": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"prefix": {
"description": "Specifies how CONTEXT should be matched against the context of the incoming request.",
"type": "string"
},
"read": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
},
"write": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
}
}
},
{
"private_access": {
"type": "object",
"description": "Configuration of public access.",
"properties": {
"context": {
"description": "A collection of management information accessible by an SNMP entity.",
"type": "string"
},
"group": {
"description": "Group related to the access.",
"type": "string"
},
"level": {
"description": "Level of authorization.",
"type": "string"
},
"notify": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"prefix": {
"description": "Specifies how CONTEXT should be matched against the context of the incoming request.",
"type": "string"
},
"read": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
},
"write": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
}
"private_access": {
"type": "object",
"description": "Configuration of public access.",
"properties": {
"context": {
"description": "A collection of management information accessible by an SNMP entity.",
"type": "string"
},
"group": {
"description": "Group related to the access.",
"type": "string"
},
"level": {
"description": "Level of authorization.",
"type": "string"
},
"notify": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"prefix": {
"description": "Specifies how CONTEXT should be matched against the context of the incoming request.",
"type": "string"
},
"read": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
},
"write": {
"description": "Specifies the view to be used for GET*, SET and TRAP/INFORM requests.",
"type": "string"
}
}
}
]
}
},
"service.snmpd.agentx": {
"description": "Configure the role in AgentX protocol.",
@@ -3971,48 +3967,44 @@
"service.snmpd.com2sec": {
"description": "Map an SNMPv1 or SNMPv2c community string to a security name..",
"type": "object",
"properties": [
{
"public": {
"description": "Public com2sec.",
"type": "object",
"properties": {
"community": {
"description": "Community name.",
"type": "string"
},
"secname": {
"description": "Security name.",
"type": "string"
},
"source": {
"description": "A restricted source can either be a specific hostname or a subnet.",
"type": "string"
}
"properties": {
"public": {
"description": "Public com2sec.",
"type": "object",
"properties": {
"community": {
"description": "Community name.",
"type": "string"
},
"secname": {
"description": "Security name.",
"type": "string"
},
"source": {
"description": "A restricted source can either be a specific hostname or a subnet.",
"type": "string"
}
}
},
{
"private": {
"description": "Private com2sec.",
"type": "object",
"properties": {
"community": {
"description": "Community name.",
"type": "string"
},
"secname": {
"description": "Security name.",
"type": "string"
},
"source": {
"description": "A restricted source can either be a specific hostname or a subnet.",
"type": "string"
}
"private": {
"description": "Private com2sec.",
"type": "object",
"properties": {
"community": {
"description": "Community name.",
"type": "string"
},
"secname": {
"description": "Security name.",
"type": "string"
},
"source": {
"description": "A restricted source can either be a specific hostname or a subnet.",
"type": "string"
}
}
}
]
}
},
"service.snmpd.general": {
"description": "General options for SNMP service.",
@@ -4049,84 +4041,76 @@
"service.snmpd.group": {
"description": "List of pass sections for SNMP.",
"type": "object",
"properties": [
{
"public_v1": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"properties": {
"public_v1": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
}
},
{
"private_v1": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"private_v1": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
}
},
{
"private_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"private_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
}
},
{
"public_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
"public_v2c": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Group name."
},
"secname": {
"description": "Related security name.",
"type": "string"
},
"version": {
"description": "SNMP version.",
"type": "string"
}
}
}
]
}
},
"service.snmpd.system": {
"description": "System information used by SNMP service.",