blob: fea36dbbd5ee9cd31b12470e713a91ad30e8afaf [file] [log] [blame]
Sean Condon081290d2017-11-02 13:15:08 +00001{
2 "type": "object",
3 "title": "ma",
4 "required": [
5 "ma"
6 ],
7 "properties": {
8 "ma": {
9 "type": "object",
10 "title": "maprops",
11 "required": [
12 "maName",
13 "maNameType"
14 ],
15 "properties": {
16 "maName": {
17 "type": "string",
18 "maxLength": 45,
19 "description": "MA identifier [a-zA-Z0-9-:.]",
20 "example": "ma-vlan-101"
21 },
22 "maNameType": {
23 "type": "string",
24 "enum": ["CHARACTERSTRING", "TWOOCTET", "ICCY1731", "PRIMARYVID", "RFC2685VPNID"],
25 "description": "MA identifier type",
26 "example": "CHARACTERSTRING"
27 },
28 "maNumericId": {
29 "type": "uint16",
30 "minimum": 1,
31 "maximum": 32767,
32 "description": "Optional numeric id",
33 "example": 1
34 },
35 "ccm-interval": {
36 "type": "string",
37 "enum": ["INVALID", "INTERVAL_3MS", "INTERVAL_10MS", "INTERVAL_100MS", "INTERVAL_1S", "INTERVAL_10S", "INTERVAL_1MIN", "INTERVAL_10MIN"],
38 "description": "CCM interval for the Maintenance Association",
39 "example": "INTERVAL_1S"
40 },
41 "component-list": {
42 "type": "array" ,
43 "xml": {
44 "name": "components",
45 "wrapped": true
46 },
47 "items": {
48 "type": "object",
49 "title": "component",
50 "required": [
51 "component-id"
52 ],
53 "properties": {
54 "component": {
55 "type": "object",
56 "properties": {
57 "component-id": {
58 "type": "uint8",
59 "minimum": 1,
60 "maximum": 8,
61 "description": "An id for the component",
62 "example": 1
63 },
64 "vid-list": {
65 "type": "array",
66 "xml": {
67 "name": "vid",
68 "wrapped": true
69 },
70 "items": {
71 "type": "object",
72 "properties": {
73 "vid": {
74 "type": "uint16",
75 "minimum": 1,
76 "maximum": 4094,
77 "description": "VID of component",
78 "example": 101
79 }
80 }
81 }
82 },
83 "mhf-creation-type": {
84 "type": "string",
85 "enum": [
86 "NONE",
87 "DEFAULT",
88 "EXPLICIT",
89 "DEFER"
90 ],
91 "description": "Defines how the MA can create MHFs (MIP Half Function) for this VID at this MA"
92 },
93 "id-permission": {
94 "type": "string",
95 "enum": [
96 "NONE",
97 "CHASSIS",
98 "MANAGE",
99 "CHASSIS_MANAGE",
100 "DEFER"
101 ],
102 "description": "indicates what, if anything, is to be included in the Sender ID TLV"
103 },
104 "tag-type": {
105 "type": "string",
106 "enum": [
107 "VLAN_NONE",
108 "VLAN_CTAG",
109 "VLAN_STAG"
110 ],
111 "description": "Indicates the tag type for this component",
112 "example": "VLAN_STAG"
113 }
114 }
115 }
116 }
117 }
118 },
119 "rmep-list": {
120 "type": "array",
121 "xml": {
122 "name": "rmep",
123 "wrapped": true
124 },
125 "items": {
126 "type": "object",
127 "properties": {
128 "rmep": {
129 "type": "uint16",
130 "minimum": 1,
131 "maximum": 8191,
132 "description": "Remote MEP ID"
133 }
134 }
135 },
136 "example": [{"rmep": 10}, {"rmep": 20}]
137 }
138 }
139 }
140 }
141}