Skip to content

Commit

Permalink
Merge latest yangcatalog work (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
xorrkaz authored Jul 28, 2024
1 parent 74d21c1 commit d6a6cf6
Show file tree
Hide file tree
Showing 283 changed files with 42,437 additions and 24,459 deletions.
66 changes: 66 additions & 0 deletions experimental/ietf-extracted-YANG-modules/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
module foo-ntwdev {
namespace "urn:example:foo-ntwdev";
prefix "netdevfoo";

import foo {
prefix "foo";
}

organization "Example Organization";
contact "[email protected]";
description "YANG model for foo-dev.";

revision "2024-07-05" {
description
"Initial version.";
reference
"RFC XXXX: YANG Model for foo-dev";
}

leaf foo {
type leafref {
path "/foo:foo";
}
description
"Reference to foo leaf from foo.yang";
}

container deployment {
description
"Deployment container.";

list ntw-element {
key "ne-id";
description
"List of network elements.";

leaf ne-id {
type string;
description
"Network element identifier.";
}
leaf devmod-alias {
type string;
description
"Device module alias for the deployment.";
}
}

list grp-ntw-elements {
key "grp-ne-id";
description
"List of group of network elements.";

leaf grp-ne-id {
type string;
description
"Group of network element identifier.";
}
leaf devmod-alias {
type string;
description
"Device module alias for the deployment.";
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ module iana-bfd-types {
"RFC 9127: YANG Data Model for Bidirectional Forwarding
Detection (BFD)";

revision 2024-07-04 {
description
"Add NULL and Meticulous ISAAC authentication type.";
reference
"I-D.ietf-bfd-optimizing-authentication:
Optimizing BFD Authentication,
I-D.ietf-bfd-stability: BFD Stability.";
}

revision 2021-10-21 {
description
"Initial revision.";
Expand Down Expand Up @@ -104,8 +113,8 @@ module iana-bfd-types {
reference
"RFC 5880: Bidirectional Forwarding Detection (BFD)
RFC 6428: Proactive Connectivity Verification, Continuity
Check, and Remote Defect Indication for the MPLS Transport
Profile";
Check, and Remote Defect Indication for the MPLS
Transport Profile";
}
}
description
Expand Down Expand Up @@ -148,12 +157,34 @@ module iana-bfd-types {
description
"Meticulous Keyed SHA1.";
}
enum null {
value 6;
description
"NULL Auth. Used for stability measurement.";
}
enum optimized-md5-meticulous-keyed-isaac {
value 7;
description
"BFD Optimized Authentication using Meticulous Keyed
MD5 as the strong authentication and Meticulous Keyed
ISAAC as the 'optimized' authentication.";
}
enum optimized-sha1-meticulous-keyed-isaac {
value 8;
description
"BFD Optimized Authentication using Meticulous Keyed
SHA-1 as the strong authentication and Meticulous Keyed
ISAAC as the 'optimized' authentication.";
}
}
description
"BFD authentication type as defined in RFC 5880. Values are
maintained in the 'BFD Authentication Types' IANA registry.
Range is 0 to 255.";
reference
"RFC 5880: Bidirectional Forwarding Detection (BFD)";
"RFC 5880: Bidirectional Forwarding Detection (BFD),
I-D.ietf-bfd-optimizing-authentication:
Optimizing BFD Authentication,
I-D.ietf-bfd-stability: BFD Stability.";
}
}
178 changes: 178 additions & 0 deletions experimental/ietf-extracted-YANG-modules/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
module iana-display-hints {
yang-version 1.1;
namespace "ari://iana-display-hints";
prefix ianadh;

import ietf-amm {
prefix amm;
}

organization
"IANA";
contact
"WG Web: <http://tools.ietf.org/wg/dtn/>
WG List: <mailto:[email protected]>
Editor: Brian Sipos
<mailto:[email protected]>";
description
"This module defines intermediate and leaf IDENT objects usable as
display-hint annotations derived from the base
<ari://ietf-amm/IDENT/display-hint> object.
The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
'MAY', and 'OPTIONAL' in this document are to be interpreted as
described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
they appear in all capitals, as shown here.
Copyright (c) 2024 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 Revised BSD License set
forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
The initial version of this YANG module is part of RFC XXXX
(https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself
for full legal notices.";
reference
"https://www.iana.org/assignments/DTNMA-TBA";

revision 2024-07-20 {
description
"Updated for latest ADM document.";
reference
"draft-ietf-dtn-adm-yang";
}
amm:enum 0;

// Integer number hints
amm:ident base-integer {
amm:enum 1;
description
"Intermediate base IDENT of display hints for integer values.
Hints derived from this object SHALL only apply to built-in types
BYTE, INT, UINT, VAST, and UVAST.";
amm:base "//ietf-amm/IDENT/display-hint";
}
amm:ident display-int-dec {
amm:enum 2;
description
"Display integers as decimal (base 10).";
amm:base "//ietf-amm/IDENT/base-integer";
}
amm:ident display-int-bin {
amm:enum 3;
description
"Display integers as binary (base 2).";
amm:base "//ietf-amm/IDENT/base-integer";
}
amm:ident display-int-hex {
amm:enum 4;
description
"Display integers as hexadecimal (base 16).";
amm:base "//ietf-amm/IDENT/base-integer";
}

// Floating-point number hints
amm:ident base-float {
amm:enum 5;
description
"Intermediate base IDENT of display hints for floating point values.
Hints derived from this object SHALL only apply to built-in types
REAL32 and REAL64.";
amm:base "//ietf-amm/IDENT/display-hint";
}
amm:ident display-float-dec {
amm:enum 6;
description
"Display floating point values as decimal fraction.";
amm:base "//ietf-amm/IDENT/base-float";
}
amm:ident display-float-exp {
amm:enum 7;
description
"Display floating point values as decimal exponential form.";
amm:base "//ietf-amm/IDENT/base-float";
}
amm:ident display-float-hex {
amm:enum 8;
description
"Display floating point values as hexadecimal exponential form.";
amm:base "//ietf-amm/IDENT/base-float";
}

// Byte-string hints
amm:ident base-bstr {
amm:enum 9;
description
"Intermediate base IDENT of display hints for byte string values.
Hints derived from this object SHALL only apply to built-in type
BYTESTR.";
amm:base "//ietf-amm/IDENT/display-hint";
}
amm:ident display-bstr-text {
amm:enum 10;
description
"Display byte string values as UTF-8 text where possible.
The base16 encoding is used otherwise.";
reference
"draft-ietf-dtn-ari";
amm:base "//ietf-amm/IDENT/base-bstr";
}
amm:ident display-bstr-base16 {
amm:enum 11;
description
"Display byte string values as base16-encoded.";
reference
"draft-ietf-dtn-ari";
amm:base "//ietf-amm/IDENT/base-bstr";
}
amm:ident display-bstr-base64 {
amm:enum 12;
description
"Display byte string values as base64url-encoded.";
reference
"draft-ietf-dtn-ari";
amm:base "//ietf-amm/IDENT/base-bstr";
}
amm:ident display-bstr-ipaddress {
amm:enum 16;
description
"Display byte string values as either IPv4 address (4-octet length)
or IPv6 address (16-octet length).";
reference
"RFC 4001: Textual Conventions for Internet Network Addresses";
amm:base "//ietf-amm/IDENT/base-bstr";
}

// TIME type (TP or TD built-ins) hints
amm:ident base-time {
amm:enum 13;
description
"Intermediate base IDENT of display hints for time values.
Hints derived from this object SHALL only apply to built-in types
TP and TD.";
amm:base "//ietf-amm/IDENT/display-hint";
}
amm:ident display-time-text {
amm:enum 14;
description
"Display TP and TD values as text in accordance with RFC 3339.";
reference
"draft-ietf-dtn-ari";
amm:base "//ietf-amm/IDENT/base-time";
}
amm:ident display-time-dec {
amm:enum 15;
description
"Display TP and TD values as decimal fraction.";
reference
"draft-ietf-dtn-ari";
amm:base "//ietf-amm/IDENT/base-time";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ module iana-icmpv6-types {
description
"This YANG module translates IANA registry 'ICMPv6 \"type\"
Numbers' to YANG derived types.
Copyright (c) 2023 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 Revised BSD License set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module iana-ipv6-ext-types {
Copyright (c) 2023 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 Revised BSD License set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ module iana-isis-pics {
"The YANG module defines the identities for IS-IS Protocol
Implementation Conformance Statement (PICS).
Copyright (c) 2023 IETF Trust and the persons identified as
Copyright (c) 2024 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 Revised BSD License set
Expand All @@ -32,7 +33,7 @@ module iana-isis-pics {
(https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself
for full legal notices.";

revision 2023-10-18 {
revision 2024-03-03 {
description
"Initial Version";
reference
Expand All @@ -45,11 +46,4 @@ module iana-isis-pics {
in the 'IS-IS PICS' registry.";
}

identity isis-pics-sr-mpls {
base "isis-pics";
description
"The identity for support of SR MPLS.";
reference
"RFC 8667: IS-IS Extensions for Segment Routing.";
}
}
Loading

0 comments on commit d6a6cf6

Please sign in to comment.