Skip to content

Commit

Permalink
Cronjob - daily check of IETF modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miroslav Kovac committed Jul 6, 2023
1 parent 39ab69c commit 9f029d6
Show file tree
Hide file tree
Showing 25 changed files with 1,091 additions and 195 deletions.
6 changes: 2 additions & 4 deletions .../[email protected] → .../[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ module iana-bgp-community-types {
"This module contains data definitions for BGP Communities in
their various forms. It can be imported by modules that make
use of BGP attributes.
This YANG module is maintained by IANA and reflects the
'BGP Identities for Community' and 'BGP definitions for
Community type' registries.
Expand All @@ -45,7 +44,7 @@ module iana-bgp-community-types {
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
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).
Expand All @@ -60,7 +59,7 @@ module iana-bgp-community-types {
described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
they appear in all capitals, as shown here.";

revision 2023-03-02 {
revision 2023-07-05 {
description
"Initial Version";
reference
Expand Down Expand Up @@ -324,7 +323,6 @@ module iana-bgp-community-types {
}

/* BGP Extended Community Types. */

typedef bgp-ext-community-type {
type union {
type string {
Expand Down
10 changes: 4 additions & 6 deletions ...les/[email protected] → ...les/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module iana-bgp-notification {
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
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).
Expand All @@ -49,7 +49,7 @@ module iana-bgp-notification {
described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
they appear in all capitals, as shown here.";

revision 2023-03-02 {
revision 2023-07-05 {
description
"Initial Version";
reference
Expand Down Expand Up @@ -90,6 +90,7 @@ module iana-bgp-notification {
"If the Marker field of the message header is not as expected,
then a synchronization error has occurred and the Error
Subcode MUST be set to Connection Not Synchronized.
The value of the 'Conection Not Synchronized Error' subcode is
1.";
reference
Expand Down Expand Up @@ -216,7 +217,6 @@ module iana-bgp-notification {
it is the same as the BGP Identifier of the local BGP speaker
and the message is from an internal peer, then the Error
Subcode is set to 'Bad BGP Identifier'.
The value of the 'Bad BGP Identifier' Error subcode is 3.";
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4), Section 6.2.
Expand Down Expand Up @@ -409,7 +409,6 @@ module iana-bgp-notification {
attribute (type, length, and value). Syntactic correctness
means that the NEXT_HOP attribute represents a valid IP host
address.
The value of the 'Invalid NEXT_HOP Attribute' Error subcode is
8.";
reference
Expand Down Expand Up @@ -569,6 +568,7 @@ module iana-bgp-notification {
"RFC 6608: Subcodes for BGP Finite State Machine Error, Section
4.";
}

identity cease {
base bgp-notification;
description
Expand Down Expand Up @@ -648,7 +648,6 @@ module iana-bgp-notification {
"RFC 4486: Subcodes for BGP Cease Notification Message, Section
4.";
}

identity cease-admin-reset {
base cease;
description
Expand Down Expand Up @@ -745,7 +744,6 @@ module iana-bgp-notification {
into the Down state, the BGP Speaker SHOULD send a
NOTIFICATION message with the Error Code Cease and the Error
Subcode 'BFD Down'.
The value of the 'BFD Down' Error subocde is 10.";
reference
"draft-ietf-idr-bfd-subcode-05: A BGP Cease Notification
Expand Down
181 changes: 181 additions & 0 deletions experimental/ietf-extracted-YANG-modules/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
module iana-bgp-rib-types {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:iana-bgp-rib-types";
prefix brt;

organization
"IANA";
contact
"Internet Assigned Numbers Authority
Postal: ICANN
12025 Waterfront Drive, Suite 300
Los Angeles, CA 90094-2536
United States of America
Tel: +1 310 301 5800
<mailto:[email protected]>
Authors: Mahesh Jethanandani (mjethanandani at gmail.com),
Keyur Patel (keyur at arrcus.com),
Susan Hares (shares at ndzh.com),
Jeffrey Haas (jhaas at juniper.net).";

description
"Defines identity and type definitions associated with
the BGP RIB modules.
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
forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This 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.
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.";

revision 2023-07-05 {
description
"Initial Version";
reference
"RFC XXXX: YANG Model for Border Gateway Protocol (BGP-4).";
}

identity ineligible-route-reason {
description
"Base identity for reason code for routes that are rejected as
ineligible. Some derived entities are based on BMP v3.";
reference
"RFC 7854: BGP Monitoring Protocol.";
}

identity ineligible-cluster-loop {
base ineligible-route-reason;
description
"Route was ineligible due to CLUSTER_LIST loop";
}

identity ineligible-as-loop {
base ineligible-route-reason;
description
"Route was ineligible due to AS_PATH loop";
}

identity ineligible-originator {
base ineligible-route-reason;
description
"Route was ineligible due to ORIGINATOR_ID. For example, update
has local router as originator";
}

identity ineligible-confed {
base ineligible-route-reason;
description
"Route was ineligible due to a loop in the AS_CONFED_SEQUENCE
or AS_CONFED_SET attributes";
}

identity bgp-not-selected-bestpath {
description
"Base identity for indicating reason a route was was not
selected by BGP route selection algorithm";
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4), Section 9.1.";
}

identity local-pref-lower {
base bgp-not-selected-bestpath;
description
"Route has a lower localpref attribute than current best path";
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4),
Section 9.1.2.";
}

identity as-path-longer {
base bgp-not-selected-bestpath;
description
"Route has a longer AS path attribute than current best path";
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4),
Section 9.1.2.2 (a).";
}

identity origin-type-higher {
base bgp-not-selected-bestpath;
description
"Route has a higher origin type, i.e., IGP origin is preferred
over EGP or incomplete";
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4),
Section 9.1.2.2 (b).";
}

identity med-higher {
base bgp-not-selected-bestpath;
description
"Route has a higher MED, or metric, attribute than the current
best path";
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4),
Section 9.1.2.2 (c).";
}

identity prefer-external {
base bgp-not-selected-bestpath;
description
"Route source is via IBGP, rather than EGP.";
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4),
Section 9.1.2.2 (d).";
}

identity nexthop-cost-higher {
base bgp-not-selected-bestpath;
description
"Route has a higher interior cost to the next hop.";
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4),
Section 9.1.2.2 (e).";
}

identity higher-router-id {
base bgp-not-selected-bestpath;
description
"Route was sent by a peer with a higher BGP Identifier value.";
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4),
Section 9.1.2.2 (f).";
}

identity higher-peer-address {
base bgp-not-selected-bestpath;
description
"Route was sent by a peer with a higher IP address";
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4),
Section 9.1.2.2 (g).";
}

identity bgp-not-selected-policy {
description
"Base identity for reason code for routes that are rejected
due to policy";
}

identity rejected-import-policy {
base bgp-not-selected-policy;
description
"Route was rejected after applying import policies.";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ module iana-bgp-types {

import ietf-inet-types {
prefix inet;
reference
"RFC 6991: Common YANG Types.";
}
import ietf-yang-types {
prefix yang;
Expand Down Expand Up @@ -37,10 +39,9 @@ module iana-bgp-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 Simplified BSD License set
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).
Expand All @@ -54,7 +55,8 @@ module iana-bgp-types {
'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.";
revision 2023-03-02 {

revision 2023-07-05 {
description
"Initial Version";
reference
Expand Down Expand Up @@ -150,6 +152,7 @@ module iana-bgp-types {
reference
"RFC 4271: A Border Gateway Protocol 4 (BGP-4), Sec 4.3.";
}

/* BGP AS_PATH Segment Type Identities. */

identity as-path-segment-type {
Expand Down Expand Up @@ -276,7 +279,6 @@ module iana-bgp-types {
reference
"RFC 7911: Advertisement of Multiple Paths in BGP.";
}

/* BGP AFI-SAFI Type Identities. */

identity afi-safi-type {
Expand Down Expand Up @@ -325,7 +327,6 @@ module iana-bgp-types {
reference
"RFC 4364: BGP/MPLS IP Virtual Private Networks (VPNs).";
}

identity l3vpn-ipv4-multicast {
base afi-safi-type;
description
Expand Down
8 changes: 5 additions & 3 deletions ...les/[email protected] → ...les/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ submodule ietf-bgp-capabilities {
belongs-to ietf-bgp {
prefix bgp;
}

import iana-bgp-types {
prefix bt;
reference
Expand All @@ -23,7 +24,7 @@ submodule ietf-bgp-capabilities {
organization
"IETF IDR Working Group";
contact
"WG Web: <http://tools.ietf.org/wg/idr>
"WG Web: <http://datatracker.ietf.org/wg/idr>
WG List: <[email protected]>
Authors: Mahesh Jethanandani (mjethanandani at gmail.com),
Expand Down Expand Up @@ -55,7 +56,7 @@ submodule ietf-bgp-capabilities {
described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
they appear in all capitals, as shown here.";

revision 2023-03-02 {
revision 2023-07-05 {
description
"Initial Version";
reference
Expand Down Expand Up @@ -99,6 +100,7 @@ submodule ietf-bgp-capabilities {
"When known, name carries the bgp-capability identity for the
AFI/SAFI combination as used in the BGP YANG modules.";
}

container value {
description
"Some BGP Capabilities carry a Capability-specific Capability
Expand All @@ -113,7 +115,6 @@ submodule ietf-bgp-capabilities {
"Multi-Protocol BGP-specific values.";
reference
"RFC 4760: Multiprotocol Extensions for BGP-4, Section 8.";

leaf afi {
type iana-rt-types:address-family;
description
Expand Down Expand Up @@ -291,6 +292,7 @@ submodule ietf-bgp-capabilities {
(AS) Number Space, Section 3.";
}
}

container add-paths {
when "../../name = 'bt:add-paths'";
description
Expand Down
Loading

0 comments on commit 9f029d6

Please sign in to comment.