-
Notifications
You must be signed in to change notification settings - Fork 22
/
of-config1.1.1.xsd
2715 lines (2541 loc) · 107 KB
/
of-config1.1.1.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:yin="urn:ietf:params:xml:schema:yang:yin:1"
targetNamespace="urn:onf:of111:config:yang"
xmlns="urn:onf:of111:config:yang"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="2011-12-07"
xml:lang="en"
xmlns:yang="urn:ietf:params:xml:ns:yang:ietf-yang-types"
xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types"
xmlns:of11-config="urn:onf:of111:config:yang">
<xs:import namespace="urn:ietf:params:xml:ns:yang:ietf-yang-types"
schemaLocation="ietf-yang-types.xsd"/>
<xs:import namespace="urn:ietf:params:xml:ns:yang:ietf-inet-types"
schemaLocation="ietf-inet-types.xsd"/>
<xs:annotation>
<xs:documentation>
This schema was generated from the YANG module of-config1.1.1
by pyang version 1.2.
The schema describes an instance document consisting
of the entire configuration data store, operational
data, rpc operations, and notifications.
This schema can thus NOT be used as-is to
validate NETCONF PDUs.
</xs:documentation>
</xs:annotation>
<xs:annotation>
<xs:documentation>
tbd
NETCONF Operational Considerations
Elements that are configurable, optional and have a default
value MAY be reported by replies to NETCONF <get-config>
requests. All non-configurable values SHOULD be reported by
replies to NETCONF <get> requests.
Attemps to modify non-configurable elements with a NETCONF
<edit-config> operation MUST result in an
'operation-not-supported' error with type 'application'.
When validating an <edit‑config> operation the following
errors MUST be detected:
* Delete requests for non-existent data. In this case a
'data-missing' error is returned.
* Create requests for existent data. In this case a
'data-exists' error is returned.
* If the NETCONF operation creates data nodes under a
'choice', any existing nodes from other branches are
deleted.
</xs:documentation>
</xs:annotation>
<!-- YANG typedefs -->
<xs:simpleType name="OFConfigId">
<xs:annotation>
<xs:documentation>
Generic type of an identifier in OF-CONFIG
</xs:documentation>
</xs:annotation>
<xs:restriction base="inet:uri">
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OFConfigurationPointProtocolType">
<xs:annotation>
<xs:documentation>
Possible protocols to connect ot an OF
Configuration Point
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="ssh"/>
<xs:enumeration value="soap"/>
<xs:enumeration value="tls"/>
<xs:enumeration value="beep"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OFOpenFlowVersionType">
<xs:annotation>
<xs:documentation>
This enumeration contains the all OpenFlow
versions released so far.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="not-applicable"/>
<xs:enumeration value="1.0"/>
<xs:enumeration value="1.0.1"/>
<xs:enumeration value="1.1"/>
<xs:enumeration value="1.2"/>
<xs:enumeration value="1.3"/>
<xs:enumeration value="1.3.1"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="datapath-id-type">
<xs:annotation>
<xs:documentation>
The datapath-id type represents an OpenFlow
datapath identifier.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){7}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OFTenthOfAPercentType">
<xs:annotation>
<xs:documentation>
This type defines a value in tenth of a percent.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:unsignedShort">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="1000"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OFUpDownStateType">
<xs:annotation>
<xs:documentation>
Type to specify state information for a port or a
connection.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="up"/>
<xs:enumeration value="down"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OFPortRateType">
<xs:annotation>
<xs:documentation>
Type to specify the rate of a port including the
duplex transmission feature. Possible rates are 10Mb, 100Mb,
1Gb, 10Gb, 40Gb, 100Gb, 1Tb or other. Rates of 10Mb, 100Mb
and 1 Gb can support half or full duplex transmission.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="10Mb-HD"/>
<xs:enumeration value="10Mb-FD"/>
<xs:enumeration value="100Mb-HD"/>
<xs:enumeration value="100Mb-FD"/>
<xs:enumeration value="1Gb-HD"/>
<xs:enumeration value="1Gb-FD"/>
<xs:enumeration value="10Gb"/>
<xs:enumeration value="40Gb"/>
<xs:enumeration value="100Gb"/>
<xs:enumeration value="1Tb"/>
<xs:enumeration value="other"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OFActionType">
<xs:annotation>
<xs:documentation>
The types of actions defined in OpenFlow Switch
Specification versions 1.2, 1.3, and 1.3.1
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="output"/>
<xs:enumeration value="copy-ttl-out"/>
<xs:enumeration value="copy-ttl-in"/>
<xs:enumeration value="set-mpls-ttl"/>
<xs:enumeration value="dec-mpls-ttl"/>
<xs:enumeration value="push-vlan"/>
<xs:enumeration value="pop-vlan"/>
<xs:enumeration value="push-mpls"/>
<xs:enumeration value="pop-mpls"/>
<xs:enumeration value="set-queue"/>
<xs:enumeration value="group"/>
<xs:enumeration value="set-nw-ttl"/>
<xs:enumeration value="dec-nw-ttl"/>
<xs:enumeration value="set-field"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OFInstructionType">
<xs:annotation>
<xs:documentation>
The types of instructions defined in OpenFlow
Switch Specification versions 1.2, 1.3, and 1.3.1.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="apply-actions"/>
<xs:enumeration value="clear-actions"/>
<xs:enumeration value="write-actions"/>
<xs:enumeration value="write-metadata"/>
<xs:enumeration value="goto-table"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OFMatchFieldType">
<xs:annotation>
<xs:documentation>
The types of match field defined in OpenFlow
Switch Specification versions 1.2, 1.3, and 1.3.1.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="input-port"/>
<xs:enumeration value="physical-input-port"/>
<xs:enumeration value="metadata"/>
<xs:enumeration value="ethernet-dest"/>
<xs:enumeration value="ethernet-src"/>
<xs:enumeration value="ethernet-frame-type"/>
<xs:enumeration value="vlan-id"/>
<xs:enumeration value="vlan-priority"/>
<xs:enumeration value="ip-dscp"/>
<xs:enumeration value="ip-ecn"/>
<xs:enumeration value="ip-protocol"/>
<xs:enumeration value="ipv4-src"/>
<xs:enumeration value="ipv4-dest"/>
<xs:enumeration value="tcp-src"/>
<xs:enumeration value="tcp-dest"/>
<xs:enumeration value="udp-src"/>
<xs:enumeration value="udp-dest"/>
<xs:enumeration value="sctp-src"/>
<xs:enumeration value="sctp-dest"/>
<xs:enumeration value="icmpv4-type"/>
<xs:enumeration value="icmpv4-code"/>
<xs:enumeration value="arp-op"/>
<xs:enumeration value="arp-src-ip-address"/>
<xs:enumeration value="arp-target-ip-address"/>
<xs:enumeration value="arp-src-hardware-address"/>
<xs:enumeration value="arp-target-hardware-address"/>
<xs:enumeration value="ipv6-src"/>
<xs:enumeration value="ipv6-dest"/>
<xs:enumeration value="ipv6-flow-label"/>
<xs:enumeration value="icmpv6-type"/>
<xs:enumeration value="icmpv6-code"/>
<xs:enumeration value="ipv6-nd-target"/>
<xs:enumeration value="ipv6-nd-source-link-layer"/>
<xs:enumeration value="ipv6-nd-target-link-layer"/>
<xs:enumeration value="mpls-label"/>
<xs:enumeration value="mpls-tc"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="hex-binary">
<xs:annotation>
<xs:documentation>
hex binary encoded string
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:base64Binary">
</xs:restriction>
</xs:simpleType>
<!-- YANG groupings -->
<xs:group name="OFPortCurrentFeatureListType">
<xs:annotation>
<xs:documentation>
The current features of a port.
Elements in the type OFPortCurrentFeatureListType are not
configurable and can only be retrieved by NETCONF <get>
operations. Attemps to modify this element and its children
with a NETCONF <edit-config> operation MUST result in an
'operation-not-supported' error with type 'application'.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="rate" type="OFPortRateType">
<xs:annotation>
<xs:documentation>
The transmission rate that is currently used.
The value MUST indicate a valid forwarding rate.
The current Port Feature set MUST contain this element
exactly once. The other Port Feature sets MAY contain this
element more than once. If this element appears more than
once in a Port Feature set than the value MUST be unique
within the Port Feature set.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="auto-negotiate" type="xs:boolean">
<xs:annotation>
<xs:documentation>
Specifies the administrative state of the
forwarding rate auto-negotiation protocol at this OpenFlow
Port.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="medium">
<xs:annotation>
<xs:documentation>
This element MUST indicate a valid physical
medium used by the OpenFlow Port.
The current Port Feature set MUST contain this element
exactly once. The other Port Feature sets MAY contain this
element more than once. If this element appears more than
once in a Port Feature set than the value MUST be unique
within the Port Feature set.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="copper"/>
<xs:enumeration value="fiber"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="pause">
<xs:annotation>
<xs:documentation>
Specifies if pausing of transmission is
supported at all and if yes if it is asymmetric or
symmetric.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="unsupported"/>
<xs:enumeration value="symmetric"/>
<xs:enumeration value="asymmetric"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="OFPortOtherFeatureListType">
<xs:annotation>
<xs:documentation>
The features of a port that are supported or
advertised.
If the elements in the OFPortOtherFeatureListType ares used
as configurable elements the NETCONF <edit-config> operations
MUST be implemented as follows:
* The 'resource-id' element MUST be present in the path or in
the filter at all <edit-config> operations to identify the
resource.
* If the operation is 'merge' or 'replace', the element is
created if it does not exist, and its value is set to the
value found in the XML RPC data.
* If the operation is 'create', the element is created if it
does not exist. If the element already exists, a
'data‑exists' error is returned.
* If the operation is 'delete', the element is deleted if it
exists. If the element does not exist, a 'data‑missing'
error is returned.
If elements in the type OFPortOtherFeatureListType are used
in an non-configurable way, they only be retrieved by NETCONF
<get> operations. Attemps to modify this element and its
children with a NETCONF <edit-config> operation MUST result
in an 'operation-not-supported' error with type
'application'.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="rate" type="OFPortRateType">
<xs:annotation>
<xs:documentation>
The transmission rate that is supported or
advertised. Multiple transmissions rates are allowed.
At least one element MUST be present in the NETCONF data
store. If none of this elements is are present in a NETCONF
<edit-config> operation 'create', 'merge' or 'replace' and
the parent element does not exist, a 'data-missing' error
is returned.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="auto-negotiate" type="xs:boolean">
<xs:annotation>
<xs:documentation>
Specifies if auto-negotiation of transmission
parameters is enabled for the port.
This element is optional. If this element is not present it
defaults to 'true'.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="medium">
<xs:annotation>
<xs:documentation>
The transmission medium used by the port.
Multiple media are allowed.
At least one element MUST be present in the NETCONF data
store. If none of this elements is are present in a NETCONF
<edit-config> operation 'create', 'merge' or 'replace' and
the parent element does not exist, a 'data-missing' error
is returned.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="copper"/>
<xs:enumeration value="fiber"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="pause">
<xs:annotation>
<xs:documentation>
Specifies if pausing of transmission is
supported at all and if yes if it is asymmetric or
symmetric.
This element MUST be present in the NETCONF data store.
If this element is not present in a NETCONF <edit-config>
operation 'create', 'merge' or 'replace' and the parent
element does not exist, a 'data-missing' error is
returned.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="unsupported"/>
<xs:enumeration value="symmetric"/>
<xs:enumeration value="asymmetric"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="DSAKeyValueType">
<xs:annotation>
<xs:documentation>
DSA keys and the DSA signature algorithm are
specified in 'FIPS PUB 186-2, Digital Signature Standard (DSS),
U.S. Department of Commerce/National Institute of Standards and
Technology,
http://csrc.nist.gov/publications/fips/fips186-2/fips186-2.pdf'.
DSA public key values can have the following fields:
P
a prime modulus meeting the requirements of the standard
above
Q
an integer in the range 2**159 < Q < 2**160 which is a
prime divisor of P-1
G
an integer with certain properties with respect to P and Q
J
(P - 1) / Q
Y
G**X mod P (where X is part of the private key and not made
public)
seed
a DSA prime generation seed
pgenCounter
a DSA prime generation counter
Parameter J is avilable for inclusion solely for efficiency as
it is calculatable from P and Q. Parameters seed and
pgenCounter are used in the DSA prime number generation
algorithm specified in the above standard. As such, they are
optional but MUST either both be present or both be absent.
This prime generation algorithm is designed to provide
assurance that a weak prime is not being used and it yields a P
and Q value. Parameters P, Q, and G can be public and common to
a group of users. They might be known from application context.
As such, they are optional but P and Q MUST either both appear
or both be absent. If all of P, Q, seed, and pgenCounter are
present, implementations are not required to check if they are
consistent and are free to use either P and Q or seed and
pgenCounter. All parameters are encoded as base64 values.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="P" type="xs:base64Binary">
<xs:annotation>
<xs:documentation>
This element is optional. It MUST be present in
the NETCONF data store, if the element 'Q' is present.
If element 'Q' is present in a NETCONF <edit-config>
operation 'create', 'merge' or 'replace' and this element
is missing, a 'data-missing' error is returned.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Q" type="xs:base64Binary">
<xs:annotation>
<xs:documentation>
This element is optional. It MUST be present in
the NETCONF data store, if the element 'P' is present.
If element 'P' is present in a NETCONF <edit-config>
operation 'create', 'merge' or 'replace' and this element
is missing, a 'data-missing' error is returned.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="J" type="xs:base64Binary">
<xs:annotation>
<xs:documentation>
This element is optional.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="G" type="xs:base64Binary">
<xs:annotation>
<xs:documentation>
This element is optional.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Y" type="xs:base64Binary">
<xs:annotation>
<xs:documentation>
This element MUST be present in the NETCONF data
store. If this element is not present in a NETCONF
<edit-config> operation 'create', 'merge' or 'replace' and
the parent element does not exist, a 'data-missing' error
is returned.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Seed" type="xs:base64Binary">
<xs:annotation>
<xs:documentation>
This element is optional. It MUST be present in
the NETCONF data store, if the element 'PgenCounter' is
present.
If element 'PgenCounter' is present in a NETCONF
<edit-config> operation 'create', 'merge' or 'replace' and
this element is missing, a 'data-missing' error is
returned.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PgenCounter" type="xs:base64Binary">
<xs:annotation>
<xs:documentation>
This element is optional. It MUST be present in
the NETCONF data store, if the element 'Seed' is present.
If element 'Seed' is present in a NETCONF <edit-config>
operation 'create', 'merge' or 'replace' and this element
is missing, a 'data-missing' error is returned.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="OFPortBaseTunnelType">
<xs:annotation>
<xs:documentation>
A group of common elements that are included
in every supported tunnel type. Tunnels are modeled as
logical ports.
One pair of local/remote endpoints must exist for a tunnel
configuration.
Only elements from one choice must exist at a time.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:sequence>
<xs:element name="local-endpoint-ipv4-adress" type="inet:ipv4-address">
<xs:annotation>
<xs:documentation>
The IPv4 address of the local tunnel
endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="remote-endpoint-ipv4-adress" type="inet:ipv4-address">
<xs:annotation>
<xs:documentation>
The IPv4 address of the remote tunnel
endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:sequence>
<xs:element name="local-endpoint-ipv6-adress" type="inet:ipv6-address">
<xs:annotation>
<xs:documentation>
The IPv6 address of the local tunnel
endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="remote-endpoint-ipv6-adress" type="inet:ipv6-address">
<xs:annotation>
<xs:documentation>
The IPv6 address of the remote tunnel
endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:sequence>
<xs:element name="local-endpoint-mac-adress" type="yang:mac-address">
<xs:annotation>
<xs:documentation>
The MAC address of the local tunnel
endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="remote-endpoint-mac-adress" type="yang:mac-address">
<xs:annotation>
<xs:documentation>
The MAC address of the remote tunnel
endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:group name="OFPortIPGRETunnelType">
<xs:annotation>
<xs:documentation>
Properties of a IP-in-GRE tunnel with key,
checksum, and sequence number information.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="OFPortBaseTunnelType"/>
<xs:element name="checksum-present" type="xs:boolean">
<xs:annotation>
<xs:documentation>
Indicates presence of the GRE checksum.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="key-present" type="xs:boolean">
<xs:annotation>
<xs:documentation>
Indicates presence of the GRE key.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="key" type="xs:unsignedInt">
<xs:annotation>
<xs:documentation>
The (optional) key of the GRE tunnel. It MAY
be used to set the OXM_OF_TUNNEL_ID match field metadata
in the OpenFlow protocol
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="sequence-number-present" type="xs:boolean">
<xs:annotation>
<xs:documentation>
Indicates presence of the GRE sequence
number.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="OFPortNVGRETunnelType">
<xs:annotation>
<xs:documentation>
Properties of a NVGRE tunnel.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="OFPortBaseTunnelType"/>
<xs:element name="tni" type="xs:unsignedInt">
<xs:annotation>
<xs:documentation>
Specifies the tenant network identifier
assigned to all packets sent on the tunnel
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="tni-resv" type="xs:unsignedInt">
<xs:annotation>
<xs:documentation>
Used to set the reserved user-defined bits of
the GRE key field
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="tni-multicast-group" type="inet:ip-address">
<xs:annotation>
<xs:documentation>
If IP multicast is used to support broadcast
on the tunnel this element specifies the corresponding
multicast IP address
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="OFQueueType">
<xs:annotation>
<xs:documentation>
This grouping specifies all properties of a queue
resource.
NETCONF <edit-config> operations MUST be implemented as
follows:
* The 'resource-id' element of OFResoureType MUST be present
at all <edit-config> operations to identify the port.
* If the operation is 'merge' or 'replace', the element is
created if it does not exist, and its value is set to the
value found in the XML RPC data.
* If the operation is 'create', the element is created if it
does not exist. If the element already exists, a
'data‑exists' error is returned.
* If the operation is 'delete', the element is deleted if it
exists. If the element does not exist, a 'data‑missing'
error is returned.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="OFResourceType"/>
<xs:element name="id" type="xs:unsignedLong">
<xs:annotation>
<xs:documentation>
This id identifies the OpenFlow Queue to
OpenFlow Controllers. It is assigned to an OpenFlow Queue
latest when the OpenFlow Queue is associated with and
OpenFlow Logical Switch. If the OpenFlow Queue is
associated with an OpenFlow Logical Switch, this element
MUST be unique within the context of the OpenFlow Logical
Switch.
OpenFlow Capable Switch implementations may choose to
assign values to OpenFlow Queues that are unique within the
context of the OpenFlow Logical Switch. These id can be
used independent of assignments to OpenFlow Logical
Switches.
Other implementations may assign values to this element
only if the OpenFlow Queue is assigned to an OpenFlow
Logical Switch. If no value is currently assigned to this
element then this element MUST NOT be included in replies
to NETCONF <get> requests. Since this element is not
configurable with the NETCONF protocol it MUST NOT be
included in replies to NETCONF <get-config> requests.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="port">
<xs:annotation>
<xs:documentation>
Reference to port resources in the Capable
Switch.
This element associates an OpenFlow Queue with an OpenFlow
Port. If the OpenFlow Queue is associated with an OpenFlow
Logical Switch S and this element is present, then it MUST
be set to the value of element resource-id of an OpenFlow
Port which is associated with the OpenFlow Logical Switch
S.
The element MUST refer to an element at the following path:
/capable-switch/resources/port/resource-id
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="inet:uri">
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="properties">
<xs:annotation>
<xs:documentation>
The queue properties currently configured.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="min-rate" minOccurs="0" type="OFTenthOfAPercentType">
<xs:annotation>
<xs:documentation>
The minimal rate that is reserved for this
queue in 1/10 of a percent of the actual rate.
This element is optional. If not present a min-rate is
not set.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="max-rate" minOccurs="0" type="OFTenthOfAPercentType">
<xs:annotation>
<xs:documentation>
The maximum rate that is reserved for this
queue in 1/10 of a percent of the actual rate.
This element is optional. If not present the max-rate is
not set.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="experimenter" minOccurs="0" maxOccurs="unbounded" type="xs:unsignedInt">
<xs:annotation>
<xs:documentation>
A list of experimenter identifiers of queue
properties used.
This element is optional.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="OFOwnedCertificateType">
<xs:annotation>
<xs:documentation>
This grouping specifies a certificate and a
private key. It can be used by an OpenFlow Logical Switch for
authenticating itself to a controller when a TLS connection
is established.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="OFResourceType"/>
<xs:element name="certificate" type="xs:string">
<xs:annotation>
<xs:documentation>
An X.509 certificate in DER format base64
encoded.
This element MUST be present in the NETCONF data store.
If this element is not present in a NETCONF <edit-config>
operation 'create', 'merge' or 'replace' and the parent
element does not exist, a 'data-missing' error is
returned.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="private-key">
<xs:annotation>
<xs:documentation>
This element contains the private key
corresponding to the certificate. The private key is
encoded as specified in XML-Signature Syntax and Processing
(http://www.w3.org/TR/2001/PR-xmldsig-core-20010820/).
Currently the specification only support DSA and RSA keys.
This element MUST be present in the NETCONF data store.
If this element is not present in a NETCONF <edit-config>
operation 'create', 'merge' or 'replace' and the parent
element does not exist, a 'data-missing' error is
returned.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:group ref="KeyValueType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="OFExternalCertificateType">
<xs:annotation>
<xs:documentation>
This grouping specifies a certificate that can be
used by an OpenFlow Logical Switch for authenticating a
controller when a TLS connection is established.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="OFResourceType"/>
<xs:element name="certificate" type="xs:string">
<xs:annotation>
<xs:documentation>
An X.509 certificate in DER format base64
encoded.
This element MUST be present in the NETCONF data store.
If this element is not present in a NETCONF <edit-config>
operation 'create', 'merge' or 'replace' and the parent
element does not exist, a 'data-missing' error is
returned.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="OFConfigurationPointType">
<xs:annotation>
<xs:documentation>
Representation of an OpenFlow Configuration Point.
Instances of the Configuration Point class SHOULD be stored
persistently across reboots of the OpenFlow Capable Switch.
When a connection is established between an OpenFlow Capable
Switch and a Configuration Point the switch MUST store the
connection information in an instance of the Configuration
Point class. If such an instance does not exist, the OpenFlow
Capable Switch MUST create an instance where it then stores
the connection information.
An OpenFlow Capable Switch that cannot initiate a connection
to a configuration point does not have to implement the
Configuration Point class. It SHOULD block attempts to write
to instances of the Configuration Point class with NETCONF
<edit-config> operations.
NETCONF <edit-config> operations MUST be implemented as
follows:
* The 'id' element MUST be present at all <edit-config>
operations to identify the configuration point.
* If the operation is 'merge' or 'replace', the element is
created if it does not exist, and its value is set to the
value found in the XML RPC data.
* If the operation is 'create', the element is created if it
does not exist. If the element already exists, a
'data‑exists' error is returned.
* If the operation is 'delete', the element is deleted if it
exists. If the element does not exist, a 'data‑missing'
error is returned.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="id" type="OFConfigId">
<xs:annotation>
<xs:documentation>
A unique but locally arbitrary identifier that
identifies a Configuration Point within the context of an
OpenFlow Capable Switch.
This element MUST be present to identify the configuration
point.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="uri" type="inet:uri">
<xs:annotation>
<xs:documentation>
A locator of the Configuration Point. It
identifies the location of the Configuration Point as a
service resource and MUST include all information necessary
for the OpenFlow Capable Switch to connect to the
Configuration Point or re-connect to it should it become
disconnected. Such information MAY include, for example,
protocol, fully qualified domain name, IP address, port
number, etc.
This element MUST be present in the NETCONF data store.
If this element is not present in a NETCONF <edit-config>
operation 'create', 'merge' or 'replace' and the parent
element does not exist, a 'data-missing' error is
returned.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="protocol" type="OFConfigurationPointProtocolType">
<xs:annotation>
<xs:documentation>
The transport protocol that the Configuration
Point uses when communicating via NETCONF with the OpenFlow
Capable Switch.
This element is optional. If it is not present its value