-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathof-config.xsd
2259 lines (2215 loc) · 130 KB
/
of-config.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:config:yang"
xmlns="urn:onf:config:yang"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="2013-10-05"
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:of-config="urn:onf: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-config
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>
This module contains a collection of YANG definitions for
configuring OpenFlow datapaths. It is part of the OF-CONFIG
specification.
</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="xs:string">
</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:enumeration value="1.3.2"/>
</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>
<xs:element name="capable-switch">
<xs:annotation>
<xs:documentation>
The OpenFlow Capable Switch serves as the root element for an OpenFlow
configuration. It contains logical switches and resources that
can be assigned to logical switches. It may have relations to
OpenFlow Configuration Points.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="id" type="xs:string">
<xs:annotation>
<xs:documentation>
A unique but locally arbitrary identifier that uniquely identifies a
Capable Switch within the context of potential OpenFlow
Configuration Points. It MUST be persistent across reboots of
the OpenFlow Capable Switch.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="config-version" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation>
The maximum supported OF-CONFIG version that is supported by the
OpenFlow Capable Switch. For switches implementing this version
of the OF-CONFIG protocol this MUST always be 1.2.
This object can be used to identify the OF-CONFIG version
a capable switch supports beginning with version 1.1.1 of
OF-CONFIG. In addtion the supported version can be
determined by the namespace the OpenFlow Capable Switch
returns to configuration request of an element (like
capable-switch) that is present in all OF-CONFIG versions
specified so far. This is the only possiblity to identify
OF-CONFIG versions prior to OF-CONFIG 1.1.1.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="configuration-points" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="configuration-point" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
The list of all Configuration Points known to the OpenFlow Capable
Switch that may manage it using OF-CONFIG.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<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.
</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.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="protocol" minOccurs="0" type="OFConfigurationPointProtocolType">
<xs:annotation>
<xs:documentation>
The transport protocol that the Configuration
Point uses when communicating via NETCONF with the OpenFlow
Capable Switch.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
<xs:key name="key_configuration-points_capable-switch_configuration-point">
<xs:selector xpath="of-config:configuration-point"/>
<xs:field xpath="of-config:id"/>
</xs:key>
</xs:element>
<xs:element name="resources" minOccurs="0">
<xs:annotation>
<xs:documentation>
A lists containing all resources of the OpenFlow Capable Switch that can
be used by OpenFlow Logical Switches. Resources are listed here
independent of their actual assignment to OpenFlow Logical
Switches. They may be available to be assigned to an OpenFlow
Logical Switch or already in use by an OpenFlow Logical Switch.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="port" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
The list contains all port resources of the OpenFlow Capable Switch.
The element 'resource-id' of OFPortType MUST be unique within
this list.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="resource-id" type="inet:uri">
<xs:annotation>
<xs:documentation>
A unique but locally arbitrary identifier that uniquely identifies an
OpenFlow Port within the context of an OpenFlow Logical Switch.
It MUST be persistent across reboots of the OpenFlow Capable
Switch.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="number" minOccurs="0" type="xs:unsignedLong">
<xs:annotation>
<xs:documentation>
This number identifies the OpenFlow Port to OpenFlow Controllers. It is
assigned to an OpenFlow Port latest when the OpenFlow Port is
associated with and OpenFlow Logical Switch. If the OpenFlow
Port 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 Ports that are unique within the
context of the OpenFlow Logical Switch. These numbers can
be used independent of assignments to OpenFlow Logical
Switches.
Other implementations may assign values to this element
only if the OpenFlow Port is assigned to an OpenFlow
Logical Switch.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="name" minOccurs="0">
<xs:annotation>
<xs:documentation>
This element assists OpenFlow Controllers in identifying OpenFlow Ports.
This element is not to be set by the OP-CONFIG protocol,
but it is set by the switch implementation. It may be set
at start-up time of an OpenFlow Capable Switch or when the
OpenFlow Port is assigned to an OpenFlow Logical Switch.
It MAY also be not set at all. If this element is set to a
value other than the empty string when being assigned to an
OpenFlow Logical Switch, then the value of this element
MUST be unique within the context of the OpenFlow Logical
Switch.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="16"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="current-rate" minOccurs="0" type="xs:unsignedInt">
<xs:annotation>
<xs:documentation>
This element indicates the current bit rate of the port. Its values is
to be provided in units of kilobit per second (kbps). This
element is only valid if the element called 'rate' in the
current Port Features has a value of 'other'.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="max-rate" minOccurs="0" type="xs:unsignedInt">
<xs:annotation>
<xs:documentation>
This element indicates the maximum bit rate of the port. Its values is
to be provided in units of kilobit per second (kbps). This
element is only valid if the element called 'rate' in the
current Port Features has a value of 'other'.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="configuration" minOccurs="0">
<xs:annotation>
<xs:documentation>
This containter represents the general adminitrative configuration of the
OpenFlow Port.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="admin-state" minOccurs="0" type="OFUpDownStateType">
<xs:annotation>
<xs:documentation>
The administrative state of the port. If true, the port has been
administratively brought down and SHOULD not be used by
OpenFlow.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="no-receive" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>
If true, packets received at this OpenFlow port SHOULD be dropped.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="no-forward" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>
If true, packets forwarded to this OpenFlow port SHOULD be dropped.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="no-packet-in" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>
If true, packets received on that port that generate a table miss should
never trigger a packet-in message to the OpenFlow Controller.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="state" minOccurs="0">
<xs:annotation>
<xs:documentation>
This element represents the general operational state of the OpenFlow
Port.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="oper-state" minOccurs="0" type="OFUpDownStateType">
<xs:annotation>
<xs:documentation>
If the value of this element is 'down', it indicates that there is no
physical link present.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="blocked" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>
If the value of this element is 'true', it indicates that a switch
protocol outside of OpenFlow, such as 802.1D Spanning Tree, is
preventing the use of this OpenFlow port for OpenFlow
flooding.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="live" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>
If the value of this element is 'true', it indicates that this OpenFlow
Port is live and can be used for fast failover.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="features" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="current" minOccurs="0">
<xs:annotation>
<xs:documentation>
The features (rates, duplex, etc.) of the port, that are currently in
use.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="rate" minOccurs="0" 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" minOccurs="0" 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" minOccurs="0">
<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" minOccurs="0">
<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:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="advertised" minOccurs="0">
<xs:annotation>
<xs:documentation>
The features (rates, duplex, etc.) of the port, that are advertised to
the peer port.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="rate" minOccurs="1" maxOccurs="unbounded" type="OFPortRateType">
<xs:annotation>
<xs:documentation>
The transmission rate that is supported or advertised. Multiple
transmissions rates are allowed.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="auto-negotiate" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>
Specifies if auto-negotiation of transmission parameters is enabled for
the port.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="medium" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
The transmission medium used by the port. Multiple media are allowed.
</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:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="supported" minOccurs="0">
<xs:annotation>
<xs:documentation>
The features (rates, duplex, etc.) of the port, that are supported on
the port.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="rate" minOccurs="1" maxOccurs="unbounded" type="OFPortRateType">
<xs:annotation>
<xs:documentation>
The transmission rate that is supported or advertised. Multiple
transmissions rates are allowed.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="auto-negotiate" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>
Specifies if auto-negotiation of transmission parameters is enabled for
the port.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="medium" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
The transmission medium used by the port. Multiple media are allowed.
</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:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="advertised-peer" minOccurs="0">
<xs:annotation>
<xs:documentation>
The features (rates, duplex, etc.) that are currently advertised by the
peer port.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="rate" minOccurs="1" maxOccurs="unbounded" type="OFPortRateType">
<xs:annotation>
<xs:documentation>
The transmission rate that is supported or advertised. Multiple
transmissions rates are allowed.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="auto-negotiate" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>
Specifies if auto-negotiation of transmission parameters is enabled for
the port.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="medium" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
The transmission medium used by the port. Multiple media are allowed.
</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:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:choice>
<xs:annotation>
<xs:documentation>
Tunnels are modeled as logical ports.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="tunnel" minOccurs="0">
<xs:annotation>
<xs:documentation>
Properties of a basic IP-in-GRE tunnel.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:sequence>
<xs:element name="local-endpoint-ipv4-adress" minOccurs="0" 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" minOccurs="0" type="inet:ipv4-address">
<xs:annotation>
<xs:documentation>
The IPv4 address of the remote tunnel endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:sequence>
<xs:element name="local-endpoint-ipv6-adress" minOccurs="0" 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" minOccurs="0" type="inet:ipv6-address">
<xs:annotation>
<xs:documentation>
The IPv6 address of the remote tunnel endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:sequence>
<xs:element name="local-endpoint-mac-adress" minOccurs="0" 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" minOccurs="0" type="yang:mac-address">
<xs:annotation>
<xs:documentation>
The MAC address of the remote tunnel endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:choice>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:sequence>
<xs:element name="ipgre-tunnel" minOccurs="0">
<xs:annotation>
<xs:documentation>
Properties of a IP-in-GRE tunnel.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:sequence>
<xs:element name="local-endpoint-ipv4-adress" minOccurs="0" 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" minOccurs="0" type="inet:ipv4-address">
<xs:annotation>
<xs:documentation>
The IPv4 address of the remote tunnel endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:sequence>
<xs:element name="local-endpoint-ipv6-adress" minOccurs="0" 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" minOccurs="0" type="inet:ipv6-address">
<xs:annotation>
<xs:documentation>
The IPv6 address of the remote tunnel endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:sequence>
<xs:element name="local-endpoint-mac-adress" minOccurs="0" 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" minOccurs="0" type="yang:mac-address">
<xs:annotation>
<xs:documentation>
The MAC address of the remote tunnel endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:choice>
<xs:element name="checksum-present" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>
Indicates presence of the GRE checksum.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="key-present" minOccurs="0" 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" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>
Indicates presence of the GRE sequence number.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:sequence>
<xs:element name="vxlan-tunnel" minOccurs="0">
<xs:annotation>
<xs:documentation>
Properties of a VxLAN tunnel.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:sequence>
<xs:element name="local-endpoint-ipv4-adress" minOccurs="0" 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" minOccurs="0" type="inet:ipv4-address">
<xs:annotation>
<xs:documentation>
The IPv4 address of the remote tunnel endpoint.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:sequence>
<xs:element name="local-endpoint-ipv6-adress" minOccurs="0" 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" minOccurs="0" type="inet:ipv6-address">
<xs:annotation>