-
Notifications
You must be signed in to change notification settings - Fork 19
Add support for MPLS-TP #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
italobusi
wants to merge
17
commits into
tsaad-dev:master
Choose a base branch
from
italobusi:mpls-tp-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8bd0833
Updated ietf-te-mpls.yang
italobusi 5784867
Proposal update
italobusi 98587c2
Update ietf-mpls-te-types.yang
italobusi bd50c79
Update ietf-te-mpls-topology.yang
italobusi 29f5e02
Update ietf-te-mpls.yang
italobusi 9436b60
Update ietf-mpls-te-types.yang
italobusi 7ef9288
Create ietf-te-mpls.tree
italobusi 1aed457
Update ietf-te-mpls-topology.yang
italobusi ce29a9e
Update ietf-te-mpls.yang
italobusi 2ed8c92
Create ietf-te-mpls-topology.tree
italobusi 61d368e
Update ietf-mpls-te-types.yang
italobusi 79aef79
Update ietf-te-mpls-topology.tree
italobusi 47d1566
Updated based on 2020-07-03 TEAS Call
italobusi e85ec36
Aligned with latest te-topology-packet
italobusi 40b7737
Updated mpls-te-types
italobusi 5ca616b
Updated for draft submission
italobusi 0eba49f
Update ietf-te-mpls-topology.tree
italobusi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,207 @@ | ||
| module ietf-mpls-te-types { | ||
| yang-version 1.1; | ||
| namespace "urn:ietf:params:xml:ns:yang:ietf-mpls-te-types"; | ||
|
|
||
| prefix "mte-types"; | ||
|
|
||
| import ietf-routing-types { | ||
| prefix "rt-types"; | ||
|
|
||
| } | ||
|
|
||
| import ietf-te-packet-types { | ||
| prefix "te-packet-types"; | ||
| reference | ||
| "RFC 8776: Common YANG Data Types for Traffic Engineering"; | ||
| } | ||
|
|
||
| organization | ||
| "Internet Engineering Task Force (IETF) TEAS WG"; | ||
| contact | ||
| "WG Web: <https://datatracker.ietf.org/wg/teas/> | ||
| WG List: <mailto:teas@ietf.org> | ||
|
|
||
| Editor: Italo Busi | ||
| <mailto:italo.busi@huawei.com> | ||
|
|
||
| Editor: Haomian Zheng | ||
| <mailto:zhenghaomian@huawei.com> | ||
|
|
||
| Editor: Aihua Guo | ||
| <mailto:aihuaguo.ietf@gmail.com> | ||
|
|
||
| Editor: Xufeng Liu | ||
| <mailto:xufeng.liu.ietf@gmail.com>"; | ||
|
|
||
| description | ||
| "This module defines technology-specific MPLS-TE types | ||
| data model. | ||
|
|
||
| Copyright (c) 2020 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."; | ||
|
|
||
| revision 2020-07-13 { | ||
| description | ||
| "Initial Version"; | ||
| reference | ||
| "draft-busizheng-teas-yang-te-mpls-topology"; | ||
| } | ||
|
|
||
| /* | ||
| * Identities (to be moved to te-packet-types?) | ||
| */ | ||
|
|
||
| identity bandwidth-profile-type { | ||
| description | ||
| "Bandwidth Profile Types"; | ||
| } | ||
|
|
||
| identity mef-10-bwp { | ||
| base bandwidth-profile-type; | ||
| description | ||
| "MEF 10 Bandwidth Profile"; | ||
| } | ||
|
|
||
| identity rfc-2697-bwp { | ||
| base bandwidth-profile-type; | ||
| description | ||
| "RFC 2697 Bandwidth Profile"; | ||
| } | ||
|
|
||
| identity rfc-2698-bwp { | ||
| base bandwidth-profile-type; | ||
| description | ||
| "RFC 2698 Bandwidth Profile"; | ||
| } | ||
|
|
||
| identity rfc-4115-bwp { | ||
| base bandwidth-profile-type; | ||
| description | ||
| "RFC 4115 Bandwidth Profile"; | ||
| } | ||
|
|
||
| /* | ||
| * Type Definitions (MPLS-TE) | ||
| */ | ||
|
|
||
| typedef load-balancing-type { | ||
| type enumeration { | ||
| enum per-flow { | ||
| description | ||
| "The load-balancing algorithm ensures that packets | ||
| characterized as the same flow (e.g. based on IP 5-tuple) | ||
| that egress on a LAG or a bundled TE link are forwarded | ||
| on the same component link. | ||
|
|
||
| Packets for different flows within the same LSP can be | ||
| forwarded on different component links."; | ||
| } | ||
| enum per-top-label { | ||
| description | ||
| "The load-balancing algorithm ensures incoming MPLS | ||
| packets with the same top MPLS label and that egress on | ||
| a on a LAG or bundled TE link are forwarded on the same | ||
| component link. | ||
|
|
||
|
|
||
|
|
||
| Packets for different flows within the same LSP are | ||
| forwarded on the same component link."; | ||
| } | ||
| } | ||
| description | ||
| "The type of load balancing used on bundled links."; | ||
| } // typedef load-balancing-type | ||
|
|
||
| /* | ||
| * Groupings (to be moved to te-packet-types?) | ||
| */ | ||
|
|
||
| grouping te-packet-path-bandwidth { | ||
| description | ||
| "Path bandwidth for Packet. "; | ||
| leaf bandwidth-profile-name{ | ||
| type string; | ||
| description "Name of Bandwidth Profile."; | ||
| } | ||
| leaf bandwidth-profile-type { | ||
| type identityref { | ||
| base bandwidth-profile-type; | ||
| } | ||
| description "Type of Bandwidth Profile."; | ||
| } | ||
|
|
||
| leaf CIR { | ||
| type uint64; | ||
| description | ||
| "Committed Information Rate in Kbps"; | ||
| } | ||
|
|
||
| leaf EIR { | ||
| type uint64; | ||
| /* | ||
| Need to indicate that EIR is not supported by RFC 2697 | ||
|
|
||
| must | ||
| '../bw-profile-type = "etht-types:mef-10-bwp" or ' + | ||
| '../bw-profile-type = "etht-types:rfc-2698-bwp" or ' + | ||
| '../bw-profile-type = "etht-types:rfc-4115-bwp"' | ||
|
|
||
| must | ||
| '../bw-profile-type != "etht-types:rfc-2697-bwp"' | ||
| */ | ||
| description | ||
| "Excess Information Rate in Kbps | ||
| In case of RFC 2698, PIR = CIR + EIR"; | ||
| } | ||
|
|
||
| leaf CBS { | ||
| type uint64; | ||
| description | ||
| "Committed Burst Size in in KBytes"; | ||
| } | ||
|
|
||
| leaf EBS { | ||
| type uint64; | ||
| description | ||
| "Excess Burst Size in KBytes. | ||
| In case of RFC 2698, PBS = CBS + EBS"; | ||
| } | ||
| } | ||
|
|
||
| grouping te-packet-link-bandwidth { | ||
| description | ||
| "Link Bandwidth for Packet. "; | ||
| leaf packet-bandwidth { | ||
| type te-packet-types:bandwidth-kbps; | ||
| description | ||
| "Available bandwith value expressed in kilobits per | ||
| second"; | ||
| } | ||
| } | ||
|
|
||
| /* | ||
| * Groupings (MPLS-TE) | ||
| */ | ||
|
|
||
| grouping te-mpls-label-hop { | ||
| description | ||
| "MPLS-TE Label Hop."; | ||
|
|
||
| leaf mpls-label { | ||
| type rt-types:mpls-label; | ||
| description | ||
| "MPLS Label."; | ||
| } | ||
| } // grouping te-mpls-label-hop | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
The load-balancing algorithm ensures that packets characterized as the same flow (e.g. based on IP 5-tuple) that egress on a LAG or a bundled TE link are forwarded on the same component link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See 6565ce7