Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 1 | module openconfig-mpls-sr { |
| 2 | |
| 3 | yang-version "1"; |
| 4 | |
| 5 | // namespace |
| 6 | namespace "http://openconfig.net/yang/mpls-sr"; |
| 7 | |
| 8 | prefix "oc-mpls-sr"; |
| 9 | |
| 10 | |
| 11 | // import some basic types |
| 12 | import openconfig-extensions { prefix oc-ext; } |
| 13 | |
| 14 | // meta |
| 15 | organization "OpenConfig working group"; |
| 16 | |
| 17 | contact |
| 18 | "OpenConfig working group |
| 19 | netopenconfig@googlegroups.com"; |
| 20 | |
| 21 | description |
| 22 | "Configuration for MPLS with segment routing-based LSPs, |
| 23 | including global parameters, and LSP-specific configuration for |
| 24 | both constrained-path and IGP-congruent LSPs"; |
| 25 | |
| 26 | oc-ext:openconfig-version "2.4.0"; |
| 27 | |
| 28 | revision "2017-06-21" { |
| 29 | description |
| 30 | "Add TC bits typedef."; |
| 31 | reference "2.4.0"; |
| 32 | } |
| 33 | |
| 34 | revision "2017-03-22" { |
| 35 | description |
| 36 | "Add RSVP calculated-absolute-subscription-bw"; |
| 37 | reference "2.3.0"; |
| 38 | } |
| 39 | |
| 40 | revision "2017-01-26" { |
| 41 | description |
| 42 | "Add RSVP Tspec, clarify units for RSVP, remove unused LDP"; |
| 43 | reference "2.2.0"; |
| 44 | } |
| 45 | |
| 46 | revision "2016-12-15" { |
| 47 | description |
| 48 | "Add additional MPLS parameters"; |
| 49 | reference "2.1.0"; |
| 50 | } |
| 51 | |
| 52 | revision "2016-09-01" { |
| 53 | description |
| 54 | "Revisions based on implementation feedback"; |
| 55 | reference "2.0.0"; |
| 56 | } |
| 57 | |
| 58 | revision "2016-08-08" { |
| 59 | description |
| 60 | "Public release of MPLS models"; |
| 61 | reference "1.0.1"; |
| 62 | } |
| 63 | |
| 64 | grouping sr-path-attributes_config { |
| 65 | description |
| 66 | "Configuration parameters relating to SR-TE LSPs"; |
| 67 | |
| 68 | leaf sid-selection-mode { |
| 69 | type enumeration { |
| 70 | enum ADJ_SID_ONLY { |
| 71 | description |
| 72 | "The SR-TE tunnel should only use adjacency SIDs |
| 73 | to build the SID stack to be pushed for the LSP"; |
| 74 | } |
| 75 | enum MIXED_MODE { |
| 76 | description |
| 77 | "The SR-TE tunnel can use a mix of adjacency |
| 78 | and prefix SIDs to build the SID stack to be pushed |
| 79 | to the LSP"; |
| 80 | } |
| 81 | } |
| 82 | default MIXED_MODE; |
| 83 | description |
| 84 | "The restrictions placed on the SIDs to be selected by the |
| 85 | calculation method for the explicit path when it is |
| 86 | instantiated for a SR-TE LSP"; |
| 87 | } |
| 88 | |
| 89 | leaf sid-protection-required { |
| 90 | type boolean; |
| 91 | default "false"; |
| 92 | description |
| 93 | "When this value is set to true, only SIDs that are |
| 94 | protected are to be selected by the calculating method |
| 95 | when the explicit path is instantiated by a SR-TE LSP."; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | // data definition statements |
| 100 | |
| 101 | // augment statements |
| 102 | |
| 103 | // rpc statements |
| 104 | |
| 105 | // notification statements |
| 106 | |
| 107 | } |