Skip to content

Commit 4a1e651

Browse files
Updated cfm header
1 parent 12e7d61 commit 4a1e651

File tree

1 file changed

+104
-25
lines changed

1 file changed

+104
-25
lines changed

flow/packet-headers/cfm.yaml

Lines changed: 104 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@ components:
44
description: Defines the fields of a Connectivity Fault Management (CFM)
55
Packet Data Unit (PDU) as specified by IEEE 802.1.
66
type: object
7-
properties:
8-
common_header:
9-
$ref: '#/components/schemas/Flow.Cfm.CommonHdr'
10-
x-field-uid: 1
11-
select_packet_header:
12-
$ref: '#/components/schemas/Flow.Cfm.SelectPktHdr'
13-
x-field-uid: 2
14-
tlvs:
15-
type: array
16-
minItems: 1
17-
items:
18-
$ref: '#/components/schemas/Flow.Cfm.Tlvs'
19-
x-field-uid: 3
20-
Flow.Cfm.CommonHdr:
21-
description: Defines the CFM message header.
22-
type: object
237
properties:
248
md_level:
259
x-field-pattern:
@@ -89,6 +73,15 @@ components:
8973
features:
9074
- count
9175
x-field-uid: 5
76+
select_packet_header:
77+
$ref: '#/components/schemas/Flow.Cfm.SelectPktHdr'
78+
x-field-uid: 6
79+
tlvs:
80+
type: array
81+
minItems: 1
82+
items:
83+
$ref: '#/components/schemas/Flow.Cfm.Tlvs'
84+
x-field-uid: 7
9285
Flow.Cfm.SelectPktHdr:
9386
description: Select message header. Currently only Continuity Check Message
9487
(CCM) is supported.
@@ -159,40 +152,126 @@ components:
159152
x-enum:
160153
maid_present:
161154
x-field-uid: 1
155+
maid_not_present:
156+
x-field-uid: 2
162157
maid_present:
163158
$ref: '#/components/schemas/Flow.Cfm.MAIDPresent'
164159
x-field-uid: 2
160+
maid_not_present:
161+
$ref: '#/components/schemas/Flow.Cfm.MAIDNotPresent'
162+
x-field-uid: 3
165163
Flow.Cfm.MAIDPresent:
166-
description: Maintenance association endPoint identifier
164+
description: Maintenance domain present
167165
type: object
168166
properties:
169167
md_name_format:
168+
description: >-
169+
Maintenance domain name format
170+
type: string
171+
default: char_str
172+
x-enum:
173+
domain_name_str:
174+
x-field-uid: 1
175+
mac_addr:
176+
x-field-uid: 2
177+
char_str:
178+
x-field-uid: 3
179+
x-field-uid: 1
180+
md_name_length:
170181
x-field-pattern:
171182
description: >-
172-
Maintenance domain name format
183+
Maintenance domain name length
173184
format: integer
174185
length: 8
175-
default: 4
186+
default: 1
176187
features:
177188
- count
178-
x-field-uid: 1
179-
md_name_length:
189+
x-field-uid: 2
190+
md_name:
191+
description: >-
192+
Maintenance domain name
193+
type: string
194+
format: hex
195+
default: '00'
196+
x-field-uid: 3
197+
short_ma_name_format:
198+
description: >-
199+
Short MA name format
200+
type: string
201+
default: char_str
202+
x-enum:
203+
primary_vid:
204+
x-field-uid: 1
205+
char_str:
206+
x-field-uid: 2
207+
two_oct_int:
208+
x-field-uid: 3
209+
rfc_2685_vpn_id:
210+
x-field-uid: 4
211+
x-field-uid: 4
212+
short_ma_name_length:
180213
x-field-pattern:
181214
description: >-
182-
Maintenance domain name format
215+
Short MA name length
183216
format: integer
184217
length: 8
185218
default: 1
186219
features:
187220
- count
188-
x-field-uid: 2
189-
md_name:
221+
x-field-uid: 5
222+
short_ma_name:
190223
description: >-
191-
Maintenance domain name format
224+
Short MA name
192225
type: string
193226
format: hex
194227
default: '00'
228+
x-field-uid: 6
229+
Flow.Cfm.MAIDNotPresent:
230+
description: Maintenance domain not present
231+
type: object
232+
properties:
233+
md_name_format:
234+
x-field-pattern:
235+
description: >-
236+
Maintenance domain name format
237+
format: integer
238+
length: 8
239+
default: 1
240+
features:
241+
- auto
242+
x-field-uid: 1
243+
short_ma_name_format:
244+
description: >-
245+
Short MA name format
246+
type: string
247+
default: char_str
248+
x-enum:
249+
primary_vid:
250+
x-field-uid: 1
251+
char_str:
252+
x-field-uid: 2
253+
two_oct_int:
254+
x-field-uid: 3
255+
rfc_2685_vpn_id:
256+
x-field-uid: 4
257+
x-field-uid: 2
258+
short_ma_name_length:
259+
x-field-pattern:
260+
description: >-
261+
Short MA name length
262+
format: integer
263+
length: 8
264+
default: 1
265+
features:
266+
- count
195267
x-field-uid: 3
268+
short_ma_name:
269+
description: >-
270+
Short MA name
271+
type: string
272+
format: hex
273+
default: '00'
274+
x-field-uid: 4
196275
Flow.Cfm.Tlvs:
197276
description: The CFM TLV format is defined in 8021Q. Common fields are
198277
Type (1 octet) defined by choice below, Length (2 octet) and Value (variable)

0 commit comments

Comments
 (0)