blob: 8c2cf4bdfc1220810094ca5a88c3cae9db45c8c7 [file] [log] [blame]
Sean Condon081290d2017-11-02 13:15:08 +00001{
2 "type": "object",
3 "title": "mep",
4 "required": [
5 "mep"
6 ],
7 "properties": {
8 "mep": {
9 "type": "object",
10 "title": "mepprops",
11 "required": [
12 "mepId",
13 "deviceId",
14 "port",
15 "direction"
16 ],
17 "properties": {
18 "mepId": {
19 "type": "uint16",
20 "minimum": 1,
21 "maximum": 8191,
22 "description": "Identifier of the MEP",
23 "example": 10
24 },
25 "deviceId": {
26 "type": "string",
27 "description": "The ID of a device in ONOS",
28 "example": "netconf:192.168.56.10:830"
29 },
30 "port": {
31 "type": "uint8",
32 "description": "A valid port identifier for the device",
33 "example": 0
34 },
35 "direction": {
36 "type": "string",
37 "enum": [
38 "UP_MEP",
39 "DOWN_MEP"
40 ],
41 "description": "the direction in which the MEP faces on the interface",
42 "example": "DOWN_MEP"
43 },
44 "primary-vid": {
45 "type": "uint16",
46 "minimum": 0,
47 "maximum": 4094,
48 "description": "Primary VID of the MEP",
49 "example": 101
50 },
51 "administrative-state": {
52 "type": "boolean",
53 "description": "The administrative state of the MEP",
54 "example": true
55 },
56 "cci-enabled": {
57 "type": "boolean",
58 "description": "whether the MEP is or is not to generate CCMs",
59 "example": true
60 },
61 "ccm-ltm-priority": {
62 "type": "uint8",
63 "minimum": 0,
64 "maximum": 7,
65 "description": "the priority parameter for CCMs and LTMs transmitted by the MEP",
66 "example": 3
67 },
68 "fng-address": {
69 "type": "object",
70 "description": "Configuration of the fault notification generator",
71 "properties": {
72 "address-type": {
73 "type": "string",
74 "enum": [
75 "IPV4",
76 "IPV6",
77 "NOT_TRANSMITTED",
78 "NOT_SPECIFIED"
79 ],
80 "description": "An address type for the FNG",
81 "example": "NOT_SPECIFIED"
82 },
83 "ip-address": {
84 "type": "string",
85 "description": "An address for the FNG",
86 "example": "192.168.56.100"
87 }
88 }
89 },
90 "lowest-fault-priority-defect": {
91 "type": "string",
92 "enum": [
93 "ALL_DEFECTS",
94 "MAC_FD_PLUS",
95 "REMOTE_FD_PLUS",
96 "ERROR_FD_PLUS",
97 "XCON_FD_ONLY"
98 ],
99 "description": "the lowest priority defect that is allowed to generate a Fault Alarm",
100 "example": "ALL_DEFECTS"
101 },
102 "defect-present-time": {
103 "type": "string",
104 "description": "the time that the Fault must be present before it is issued. Given as a Java duration literal",
105 "example": "PT10S"
106 },
107 "defect-absent-time": {
108 "type": "string",
109 "description": "the time that the Fault must be absent before it is reset. Given as a Java duration literal",
110 "example": "PT10S"
111 }
112 }
113 }
114 }
115}