-
Notifications
You must be signed in to change notification settings - Fork 0
/
draft-ietf-lsr-ospfv3-extended-lsa-yang-01.xml
1420 lines (1330 loc) · 50.7 KB
/
draft-ietf-lsr-ospfv3-extended-lsa-yang-01.xml
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="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY RFC2119 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml'>
<!ENTITY RFC3688 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.3688.xml'>
<!ENTITY RFC5340 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.5340.xml'>
<!ENTITY RFC5246 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.5246.xml'>
<!ENTITY RFC6020 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.6020.xml'>
<!ENTITY RFC6241 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.6241.xml'>
<!ENTITY RFC6242 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.6242.xml'>
<!ENTITY RFC6536 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.6536.xml'>
<!ENTITY RFC7950 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.7950.xml'>
<!ENTITY RFC8022 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.8022.xml'>
<!ENTITY RFC8040 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.8040.xml'>
<!ENTITY RFC8349 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.8349.xml'>
<!ENTITY RFC8362 PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml/reference.RFC.8362.xml'>
<!ENTITY I-D.ietf-ospf-yang PUBLIC ''
'http://xml.resource.org/public/rfc/bibxml-ids/reference.I-D.ietf-ospf-yang'>
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="no" ?>
<?rfc toc="yes" ?>
<?rfc symrefs="yes" ?>
<?rfc sortrefs="yes"?>
<?rfc rfcedstyle="yes" ?>
<?rfc subcompact="no" ?>
<rfc category="std" docName="draft-ietf-lsr-ospfv3-extended-lsa-yang-01" ipr="trust200902">
<!-- category values: std, bcp, info, exp, and historic
ipr values: full3667, noModification3667, noDerivatives3667
you can add the attributes updates="NNNN" and obsoletes="NNNN"
they will automatically be output with "(if approved)" -->
<!-- ***** FRONT MATTER ***** -->
<front>
<!-- The abbreviated title is used in the page header - it is only necessary if the
full title is longer than 39 characters -->
<title abbrev="OSPFv3 Extended LSAs YANG">YANG Model for OSPFv3 Extended LSAs</title>
<!-- add 'role="editor"' below for the editors if appropriate -->
<!-- Another author who claims to be an editor -->
<author fullname="Acee Lindem" initials="A." surname="Lindem">
<organization>Cisco Systems</organization>
<address>
<postal>
<street>301 Midenhall Way</street>
<city>Cary, NC 27513</city>
</postal>
<email>[email protected]</email>
</address>
</author>
<author fullname="Sharmila Palani" initials="S." surname="Palani">
<organization>Cisco Systems</organization>
<address>
<postal>
<street>170 West Tasman Drive</street>
<city>San Jose, CA 95134</city>
</postal>
<email>[email protected]</email>
</address>
</author>
<author fullname="Yingzhen Qu" initials="Y" surname="Qu">
<organization>Futurewei</organization>
<address>
<postal>
<street>2330 Central Expressway</street>
<city>Santa Clara</city>
<region>CA</region>
<code>95050</code>
<country>USA</country>
</postal>
<phone></phone>
<email>[email protected]</email>
</address>
</author>
<date/>
<!-- If the month and year are both specified and are the current ones, xml2rfc will fill
in the current day for you. If only the current year is specified, xml2rfc will fill
in the current day and month for you. If the year is not the current one, it is
necessary to specify at least a month (xml2rfc assumes day="1" if not specified for the
purpose of calculating the expiry date). With drafts it is normally sufficient to
specify just the year. -->
<!-- Meta-data Declarations -->
<area>General</area>
<workgroup>Internet</workgroup>
<!-- WG name at the upperleft corner of the doc,
IETF is fine for individual submissions.
If this element is not present, the default is "Network Working Group",
which is used by the RFC Editor as a nod to the history of the IETF. -->
<!-- Keywords will be incorporated into HTML output
files in a meta tag but they have no effect on text or nroff
output. If you submit your draft to the RFC Editor, the
keywords will be used for the search engine. -->
<abstract>
<t>This document defines a YANG data model augmenting the IETF OSPF
YANG model to provide support for
OSPFv3 Link State Advertisment (LSA) Extensibility as defined in
RFC 8362. OSPFv3 Extended LSAs provide extensible TLV-based LSAs for the
base LSA types defined in RFC 5340.</t>
</abstract>
</front>
<middle>
<section title="Overview">
<t>YANG <xref target="RFC6020"></xref> <xref target="RFC7950"></xref> is a
data definition language
used to define the contents of a conceptual data store
that allows networked devices to be managed using NETCONF
<xref target="RFC6241"/>. YANG is proving relevant beyond its
initial confines, as bindings to other interfaces (e.g., ReST) and
encodings other than XML (e.g., JSON) are being defined. Furthermore,
YANG data models can be used as the basis for implementation of other
interfaces, such as CLI and programmatic APIs.</t>
<t>This document defines a YANG data model augmenting the IETF OSPF
YANG model <xref target="I-D.ietf-ospf-yang"/>, which itself augments
<xref target="RFC8349"/>, to provide support for configuration and
operational state for OSPFv3 Extended LSAs as defined in
<xref target="RFC8362"/>.
</t>
<section title="Requirements Language">
<t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in <xref target="RFC2119"></xref>.</t>
</section>
</section>
<section title="OSPFv3 Extended LSAs">
<t>This document defines a model for the OSPFv3 Extended LSA feature. It is an
augmentation of the OSPF base model provided support for OSPFv3 Link State
Advertisement (LSA) Extensibility <xref target="RFC8362"/>.
OSPFv3 Extended LSAs provide extensible TLV-based LSAs for the
base LSA types defined in <xref target="RFC5340"/>.</t>
<t>The OSPFv3 Extended LSA YANG module requires support for the OSPF base
model<xref target="I-D.ietf-ospf-yang"></xref> which defines basic OSPF
configuration and state. The OSPF YANG model augments the ietf-routing YANG
model defined in <xref target="RFC8022"/>.
The augmentations defined in the ietf-ospfv3-extended-lsa YANG
model will provide global configuration, area configuration, and addition of OSPFv3
Extended LSAs to the Link State Database (LSDB) operational state.</t>
<figure align="left">
<artwork align="left">
module: ietf-ospfv3-extended-lsa
augment /rt:routing/rt:control-plane-protocols
/rt:control-plane-protocol/ospf:ospf:
+--rw extended-lsa-support? boolean {extended-lsa-support}?
augment /rt:routing/rt:control-plane-protocols
/rt:control-plane-protocol/ospf:ospf/ospf:areas/ospf:area:
+--rw extended-lsa-support? boolean {extended-lsa-support}?
augment /rt:routing/rt:control-plane-protocols
/rt:control-plane-protocol/ospf:ospf/ospf:areas/ospf:area
/ospf:interfaces/ospf:interface/ospf:database
/ospf:link-scope-lsa-type/ospf:link-scope-lsas
/ospf:link-scope-lsa/ospf:version/ospf:ospfv3
/ospf:ospfv3/ospf:body:
augment /rt:routing/rt:control-plane-protocols
/rt:control-plane-protocol/ospf:ospf/ospf:areas/ospf:area
/ospf:database/ospf:area-scope-lsa-type
/ospf:area-scope-lsas/ospf:area-scope-lsa/ospf:version
/ospf:ospfv3/ospf:ospfv3/ospf:body:
+--ro e-router
| +--ro router-bits
| | +--ro rtr-lsa-bits* identityref
| +--ro lsa-options
| | +--ro lsa-options* identityref
| +--ro e-router-tlvs*
| +--ro unknown-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro link-tlv
| +--ro link-tlv-length? uint16
| +--ro interface-id? uint32
| +--ro neighbor-interface-id? uint32
| +--ro neighbor-router-id? rt-types:router-id
| +--ro type? uint8
| +--ro metric? uint16
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro e-network
| +--ro lsa-options
| | +--ro lsa-options* identityref
| +--ro e-network-tlvs*
| +--ro unknown--tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro attached-router-tlv
| +--ro attached-router-tlv-length? uint16
| +--ro Adjacent-neighbor-router-id? rt-types:router-id
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro e-inter-area-prefix
| +--ro e-inter-prefix-tlvs*
| +--ro unknown--tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro inter-prefix-tlv
| +--ro inter-prefix-tlv-length? uint16
| +--ro metric? rt-types:uint24
| +--ro prefix? inet:ip-prefix
| +--ro prefix-options
| | +--ro prefix-options* identityref
| +--ro prefix-length? uint8
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro e-inter-area-router
| +--ro e-inter-router-tlvs*
| +--ro unknown-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro inter-router-tlv
| +--ro inter-router-tlv-length? uint16
| +--ro router-bits
| | +--ro rtr-lsa-bits* identityref
| +--ro lsa-options
| | +--ro lsa-options* identityref
| +--ro metric? rt-types:uint24
| +--ro destination-router-id? rt-types:router-id
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro e-as-external
| +--ro e-external-tlvs*
| +--ro unknown-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro external-prefix-tlv
| +--ro external-prefix-tlv-length? uint16
| +--ro flags
| | +--ro ospfv3-e-external-prefix-bits* identityref
| +--ro metric? rt-types:uint24
| +--ro prefix? inet:ip-prefix
| +--ro prefix-options
| | +--ro prefix-options* identityref
| +--ro prefix-length? uint8
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro ipv6-fwd-addr-sub-tlv
| | +--ro ipv6-fwd-addr-sub-tlv-length? uint16
| | +--ro forwarding-address? inet:ipv6-address
| +--ro ipv4-fwd-addr-sub-tlv
| | +--ro ipv4-fwd-addr-sub-tlv-length? uint16
| | +--ro forwarding-address? inet:ipv4-address
| +--ro route-tag-sub-tlv
| +--ro route-tag-sub-tlv-length? uint16
| +--ro route-tag? uint32
+--ro e-nssa
| +--ro e-external-tlvs*
| +--ro unknown-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro external-prefix-tlv
| +--ro external-prefix-tlv-length? uint16
| +--ro flags
| | +--ro ospfv3-e-external-prefix-bits* identityref
| +--ro metric? rt-types:uint24
| +--ro prefix? inet:ip-prefix
| +--ro prefix-options
| | +--ro prefix-options* identityref
| +--ro prefix-length? uint8
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro ipv6-fwd-addr-sub-tlv
| | +--ro ipv6-fwd-addr-sub-tlv-length? uint16
| | +--ro forwarding-address? inet:ipv6-address
| +--ro ipv4-fwd-addr-sub-tlv
| | +--ro ipv4-fwd-addr-sub-tlv-length? uint16
| | +--ro forwarding-address? inet:ipv4-address
| +--ro route-tag-sub-tlv
| +--ro route-tag-sub-tlv-length? uint16
| +--ro route-tag? uint32
+--ro e-link
| +--ro rtr-priority? uint8
| +--ro lsa-options
| | +--ro lsa-options* identityref
| +--ro e-link-tlvs*
| +--ro unknown-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro intra-prefix-tlv
| | +--ro intra-prefix-tlv-length? uint16
| | +--ro metric? rt-types:uint24
| | +--ro prefix? inet:ip-prefix
| | +--ro prefix-options
| | | +--ro prefix-options* identityref
| | +--ro prefix-length? uint8
| | +--ro sub-tlvs*
| | +--ro unknown-sub-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro ipv6-link-local-tlv
| | +--ro ipv6-link-local-tlv-length? uint16
| | +--ro link-local-address? inet:ipv6-address
| | +--ro sub-tlvs*
| | +--ro unknown-sub-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro ipv4-link-local-tlv
| +--ro ipv4-link-local-tlv-length? uint16
| +--ro link-local-address? inet:ipv4-address
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro e-intra-area-prefix
+--ro referenced-ls-type? uint16
+--ro referenced-link-state-id? uint32
+--ro referenced-adv-router? rt-types:router-id
+--ro e-intra-prefix-tlvs*
+--ro unknown-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro intra-prefix-tlv
+--ro intra-prefix-tlv-length? uint16
+--ro metric? rt-types:uint24
+--ro prefix? inet:ip-prefix
+--ro prefix-options
| +--ro prefix-options* identityref
+--ro prefix-length? uint8
+--ro sub-tlvs*
+--ro unknown-sub-tlv
+--ro type? uint16
+--ro length? uint16
+--ro value? yang:hex-string
augment /rt:routing/rt:control-plane-protocols
/rt:control-plane-protocol/ospf:ospf/ospf:database
/ospf:as-scope-lsa-type/ospf:as-scope-lsas
/ospf:as-scope-lsa/ospf:version/ospf:ospfv3
/ospf:ospfv3/ospf:body:
+--ro e-router
| +--ro router-bits
| | +--ro rtr-lsa-bits* identityref
| +--ro lsa-options
| | +--ro lsa-options* identityref
| +--ro e-router-tlvs*
| +--ro unknown-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro link-tlv
| +--ro link-tlv-length? uint16
| +--ro interface-id? uint32
| +--ro neighbor-interface-id? uint32
| +--ro neighbor-router-id? rt-types:router-id
| +--ro type? uint8
| +--ro metric? uint16
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro e-network
| +--ro lsa-options
| | +--ro lsa-options* identityref
| +--ro e-network-tlvs*
| +--ro unknown--tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro attached-router-tlv
| +--ro attached-router-tlv-length? uint16
| +--ro Adjacent-neighbor-router-id? rt-types:router-id
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro e-inter-area-prefix
| +--ro e-inter-prefix-tlvs*
| +--ro unknown--tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro inter-prefix-tlv
| +--ro inter-prefix-tlv-length? uint16
| +--ro metric? rt-types:uint24
| +--ro prefix? inet:ip-prefix
| +--ro prefix-options
| | +--ro prefix-options* identityref
| +--ro prefix-length? uint8
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro e-inter-area-router
| +--ro e-inter-router-tlvs*
| +--ro unknown-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro inter-router-tlv
| +--ro inter-router-tlv-length? uint16
| +--ro router-bits
| | +--ro rtr-lsa-bits* identityref
| +--ro lsa-options
| | +--ro lsa-options* identityref
| +--ro metric? rt-types:uint24
| +--ro destination-router-id? rt-types:router-id
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro e-as-external
| +--ro e-external-tlvs*
| +--ro unknown-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro external-prefix-tlv
| +--ro external-prefix-tlv-length? uint16
| +--ro flags
| | +--ro ospfv3-e-external-prefix-bits* identityref
| +--ro metric? rt-types:uint24
| +--ro prefix? inet:ip-prefix
| +--ro prefix-options
| | +--ro prefix-options* identityref
| +--ro prefix-length? uint8
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro ipv6-fwd-addr-sub-tlv
| | +--ro ipv6-fwd-addr-sub-tlv-length? uint16
| | +--ro forwarding-address? inet:ipv6-address
| +--ro ipv4-fwd-addr-sub-tlv
| | +--ro ipv4-fwd-addr-sub-tlv-length? uint16
| | +--ro forwarding-address? inet:ipv4-address
| +--ro route-tag-sub-tlv
| +--ro route-tag-sub-tlv-length? uint16
| +--ro route-tag? uint32
+--ro e-nssa
| +--ro e-external-tlvs*
| +--ro unknown-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro external-prefix-tlv
| +--ro external-prefix-tlv-length? uint16
| +--ro flags
| | +--ro ospfv3-e-external-prefix-bits* identityref
| +--ro metric? rt-types:uint24
| +--ro prefix? inet:ip-prefix
| +--ro prefix-options
| | +--ro prefix-options* identityref
| +--ro prefix-length? uint8
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro ipv6-fwd-addr-sub-tlv
| | +--ro ipv6-fwd-addr-sub-tlv-length? uint16
| | +--ro forwarding-address? inet:ipv6-address
| +--ro ipv4-fwd-addr-sub-tlv
| | +--ro ipv4-fwd-addr-sub-tlv-length? uint16
| | +--ro forwarding-address? inet:ipv4-address
| +--ro route-tag-sub-tlv
| +--ro route-tag-sub-tlv-length? uint16
| +--ro route-tag? uint32
+--ro e-link
| +--ro rtr-priority? uint8
| +--ro lsa-options
| | +--ro lsa-options* identityref
| +--ro e-link-tlvs*
| +--ro unknown-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro intra-prefix-tlv
| | +--ro intra-prefix-tlv-length? uint16
| | +--ro metric? rt-types:uint24
| | +--ro prefix? inet:ip-prefix
| | +--ro prefix-options
| | | +--ro prefix-options* identityref
| | +--ro prefix-length? uint8
| | +--ro sub-tlvs*
| | +--ro unknown-sub-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro ipv6-link-local-tlv
| | +--ro ipv6-link-local-tlv-length? uint16
| | +--ro link-local-address? inet:ipv6-address
| | +--ro sub-tlvs*
| | +--ro unknown-sub-tlv
| | +--ro type? uint16
| | +--ro length? uint16
| | +--ro value? yang:hex-string
| +--ro ipv4-link-local-tlv
| +--ro ipv4-link-local-tlv-length? uint16
| +--ro link-local-address? inet:ipv4-address
| +--ro sub-tlvs*
| +--ro unknown-sub-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro e-intra-area-prefix
+--ro referenced-ls-type? uint16
+--ro referenced-link-state-id? uint32
+--ro referenced-adv-router? rt-types:router-id
+--ro e-intra-prefix-tlvs*
+--ro unknown-tlv
| +--ro type? uint16
| +--ro length? uint16
| +--ro value? yang:hex-string
+--ro intra-prefix-tlv
+--ro intra-prefix-tlv-length? uint16
+--ro metric? rt-types:uint24
+--ro prefix? inet:ip-prefix
+--ro prefix-options
| +--ro prefix-options* identityref
+--ro prefix-length? uint8
+--ro sub-tlvs*
+--ro unknown-sub-tlv
+--ro type? uint16
+--ro length? uint16
+--ro value? yang:hex-string
</artwork>
</figure>
</section>
<section title="OSPFv3 Extended LSA Yang Module">
<t>
<figure>
<artwork><![CDATA[
<CODE BEGINS> file "[email protected]"
module ietf-ospfv3-extended-lsa {
yang-version 1.1;
namespace
"urn:ietf:params:xml:ns:yang:ietf-ospfv3-extended-lsa";
prefix ospfv3-e-lsa;
import ietf-routing-types {
prefix "rt-types";
}
import ietf-inet-types {
prefix "inet";
reference "RFC 6021 - Common YANG Data Types";
}
import ietf-routing {
prefix "rt";
reference "RFC 8349 - A YANG Data Model for Routing
Management (NMDA Version)";
}
import ietf-ospf {
prefix "ospf";
reference "RFC XXXX - A YANG Data Model for OSPF
Protocol";
}
organization
"IETF LSR - Link State Routing Working Group";
contact
"WG Web: <http://tools.ietf.org/wg/lsr/>
WG List: <mailto:[email protected]>
Author: Acee Lindem
<mailto:[email protected]>
Author: Sharmila Palani
<mailto:[email protected]>
Author: Yingzhen Qu
<mailto:[email protected]>";
description
"This YANG module defines the configuration
and operational state for OSPFv3 Extended LSAs, which is
common across all of the vendor implementations.
Copyright (c) 2019 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(http://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX;
see the RFC itself for full legal notices.";
reference "RFC XXXX";
revision 2020-04-24 {
description
"Initial revision.";
reference
"RFC XXXX: A YANG Data Model for OSPFv3 Extended LSAs.";
}
feature extended-lsa-support {
description
"Support for OSPFv3 Extended LSAs";
reference
"RFC 8362 - OSPFv3 Link State Advertisement (LSA)
Extensibility";
}
/*
* OSPFv3 Extend LSA Type Identities
*/
identity ospfv3-e-router-lsa {
base ospf:ospfv3-lsa-type;
description
"OSPFv3 Extended Router LSA - Type 0xA021";
}
identity ospfv3-e-network-lsa {
base ospf:ospfv3-lsa-type;
description
"OSPFv3 Extended Network LSA - Type 0xA022";
}
identity ospfv3-e-summary-lsa-type {
base ospf:ospfv3-lsa-type;
description
"OSPFv3 Extended Summary LSA types";
}
identity ospfv3-e-inter-area-prefix-lsa {
base ospfv3-e-summary-lsa-type;
description
"OSPFv3 Extended Inter-area Prefix LSA - Type 0xA023";
}
identity ospfv3-e-inter-area-router-lsa {
base ospfv3-e-summary-lsa-type;
description
"OSPFv3 Exteneded Inter-area Router LSA - Type 0xA024";
}
identity ospfv3-e-external-lsa-type {
base ospf:ospfv3-lsa-type;
description
"OSPFv3 Extended External LSA types";
}
identity ospfv3-e-as-external-lsa {
base ospfv3-e-external-lsa-type;
description
"OSPFv3 Extended AS-External LSA - Type 0xC025";
}
identity ospfv3-e-nssa-lsa {
base ospfv3-e-external-lsa-type;
description
"OSPFv3 Extended Not-So-Stubby-Area (NSSA) LSA -
Type 0xA027";
}
identity ospfv3-e-link-lsa {
base ospf:ospfv3-lsa-type;
description
"OSPFv3 Extended Link LSA - Type 0x8028";
}
identity ospfv3-e-intra-area-prefix-lsa {
base ospf:ospfv3-lsa-type;
description
"OSPFv3 Extended Intra-area Prefix LSA - Type 0xA029";
}
identity ospfv3-e-prefix-option {
description
"Base identity for OSPFv3 Prefix Options.";
}
identity nu-bit {
base ospfv3-e-prefix-option;
description
"When set, the prefix should be excluded
from IPv6 unicast calculations.";
}
identity la-bit {
base ospfv3-e-prefix-option;
description
"When set, the prefix is actually an IPv6 interface
address of the Advertising Router.";
}
identity p-bit {
base ospfv3-e-prefix-option;
description
"When set, the NSSA area prefix should be
translated to an AS External LSA and advertised
by the translating NSSA Border Router.";
}
identity dn-bit {
base ospfv3-e-prefix-option;
description
"When set, the inter-area-prefix LSA or
AS-external LSA prefix has been advertised as an
L3VPN prefix.";
}
identity ospfv3-e-external-prefix-option {
description
"Base identity for OSPFv3 External Prefix Options.";
}
identity e-bit {
base ospfv3-e-external-prefix-option;
description
"When set, the metric specified is a Type 2
external metric.";
}
grouping unknown-sub-tlv {
description
"Unknown TLV grouping";
container unknown-sub-tlv {
uses ospf:tlv;
description "Unknown External TLV Sub-TLV";
}
}
grouping ospfv3-lsa-prefix {
description
"OSPFv3 LSA prefix";
leaf prefix {
type inet:ip-prefix;
description
"LSA Prefix";
}
container prefix-options {
leaf-list prefix-options {
type identityref {
base ospfv3-e-prefix-option;
}
description
"OSPFv3 prefix option flag list. This list will
contain the identities for the OSPFv3 options
that are set for the OSPFv3 prefix.";
}
description "Prefix options.";
}
leaf prefix-length {
type uint8 {
range "0..128";
}
description "Prefix length.";
}
}
grouping ipv6-fwd-addr-sub-tlv {
container ipv6-fwd-addr-sub-tlv {
description
"IPv6 Forwarding Address Sub-TLV";
leaf ipv6-fwd-addr-sub-tlv-length {
type uint16;
description
"IPv6 Forwarding Addrss Sub-TLV Length - 16
for IPv6 address";
}
leaf forwarding-address {
type inet:ipv6-address;
description
"Forwarding address";
}
}
description
"IPv6 Forwarding Address Sub-TLV grouping";
}
grouping ipv4-fwd-addr-sub-tlv {
container ipv4-fwd-addr-sub-tlv {
description
"IPv4 Forwarding Address Sub-TLV";
leaf ipv4-fwd-addr-sub-tlv-length {
type uint16;
description
"IPv4 Forwarding Addrss Sub-TLV Length - 4
for IPv4 address";
}
leaf forwarding-address {
type inet:ipv4-address;
description
"Forwarding address";
}
}
description
"IPv4 Forwarding Address Sub-TLV grouping";
}
grouping route-tag-sub-tlv {
container route-tag-sub-tlv {
description
"Route Tag Sub-TLV";
leaf route-tag-sub-tlv-length {
type uint16;
description
"Route Tag Sub-TLV Length - 4 for 32-bit tag";
}
leaf route-tag {
type uint32;
description
"Route Tag";
}
}
description
"Route Tag Sub-TLV grouping";
}
grouping external-prefix-tlv {
container external-prefix-tlv {
description "External Prefix LSA TLV";
leaf external-prefix-tlv-length {
type uint16;
description
"External Prefix TLV Length - Variable dependent
on sub-TLVs";
}
container flags {
leaf-list ospfv3-e-external-prefix-bits {
type identityref {
base ospfv3-e-external-prefix-option;
}
description "OSPFv3 exernal-prefix TLV bits list.";
}
description "External Prefix Flags";
}
leaf metric {
type rt-types:uint24;
description "External Prefix Metric";
}
uses ospfv3-lsa-prefix;
list sub-tlvs {
description "External Prefix TLV Sub-TLVs";
uses unknown-sub-tlv;
uses ipv6-fwd-addr-sub-tlv;
uses ipv4-fwd-addr-sub-tlv;
uses route-tag-sub-tlv;
}
}
description "External Prefix TLV Grouping";
}
grouping intra-area-prefix-tlv {
container intra-prefix-tlv {
description "Intra-Area Prefix LSA TLV";
leaf intra-prefix-tlv-length {
type uint16;
description
"Intra-Area Prefix TLV Length - Variable dependent
on sub-TLVs";
}
leaf metric {
type rt-types:uint24;
description "Intra-Area Prefix Metric";
}
uses ospfv3-lsa-prefix;
list sub-tlvs {
description "Intra-Area Prefix TLV Sub-TLVs";
uses unknown-sub-tlv;
}
}
description "Intra-Area Prefix TLV Grouping";
}
grouping ipv6-link-local-tlv {
container ipv6-link-local-tlv {
description "IPv6 Link-Local LSA TLV";
leaf ipv6-link-local-tlv-length {
type uint16;
description
"IPv6 Link-Local TLV Length - Variable dependent
on sub-TLVs";
}
leaf link-local-address {
type inet:ipv6-address;
description
"IPv6 Link Local address";
}
list sub-tlvs {
description "IPv6 Link Local TLV Sub-TLVs";
uses unknown-sub-tlv;
}
}
description "IPv6 Link-Local TLV Grouping";
}
grouping ipv4-link-local-tlv {
container ipv4-link-local-tlv {
description "IPv6 Link-Local LSA TLV";
leaf ipv4-link-local-tlv-length {
type uint16;
description
"IPv4 Link-Local TLV Length - Variable dependent
on sub-TLVs";
}
leaf link-local-address {
type inet:ipv4-address;
description
"IPv4 Link Local address";
}
list sub-tlvs {
description "IPv4 Link Local TLV Sub-TLVs";
uses unknown-sub-tlv;
}
}
description "IPv4 Link-Local TLV Grouping";
}
grouping ospfv3-e-lsa-body {
description "OSPFv3 Extended LSA body.";
container e-router {
when "derived-from(../../ospf:header/ospf:type, "
+ "'ospfv3-e-router-lsa')" {
description "Only valid for OSPFv3 Extended-Router LSAs";
}
description "OSPv3 Extended Router LSA";
uses ospf:ospf-router-lsa-bits;
uses ospf:ospfv3-lsa-options;
list e-router-tlvs {
description "E-Router LSA TLVs";
container unknown-tlv {
uses ospf:tlv;
description "Unknown E-Router TLV";
}
container link-tlv {
description "E-Router LSA TLV";
leaf link-tlv-length {
type uint16;
description
"Link TLV Length - Variable dependent on sub-TLVs";
}
leaf interface-id {
type uint32;
description "Interface ID for link";
}
leaf neighbor-interface-id {
type uint32;
description "Neighbor's Interface ID for link";