Specifies the multi-protocol label switching protocol.
Version: 2020-03-10
module huawei-mpls-te-cr-static { yang-version 1; namespace "urn:huawei:yang:huawei-mpls-te-cr-static"; prefix mpls-te-cr-static; import ietf-inet-types { prefix inet; } import huawei-pub-type { prefix pub-type; } import huawei-mpls { prefix mpls; } import huawei-mpls-te { prefix mpls-te; } import huawei-extension { prefix ext; } import huawei-tunnel-management { prefix tnlm; } import huawei-ifm { prefix ifm; } import huawei-network-instance { prefix ni; } import huawei-te { prefix te; } import huawei-te-interface { prefix te-interface; } organization "Huawei Technologies Co., Ltd."; contact "Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com"; description "Specifies the multi-protocol label switching protocol."; revision "2020-03-10" { description "Modify the must condition and the type range of the node tunnel-group."; reference "Huawei private."; } revision "2020-01-21" { description "Modify the must condition of the node cr-static."; reference "Huawei private."; } revision "2020-01-14" { description "Modify the value range of the node tunnel-ID."; reference "Huawei private."; } revision "2020-01-10" { description "Static bidirectional CR-LSPs, cr-static tunnels, and cr-static tunnel protection groups are added."; reference "Huawei private."; } revision "2019-12-25" { description "Init revision."; reference "Huawei private."; } ext:task-name "mpls-te"; typedef static-mode-type { type enumeration { enum "bidirectional" { value 1; description "Bidirectional."; } enum "passive-tunnel" { value 2; description "MPLS passive-tunnel."; } } description "The static tunnel mode."; } typedef lsp-status-type { type enumeration { enum "down" { value 0; description "Down state of LSP."; } enum "up" { value 1; description "Up state of LSP."; } enum "none" { value 2; description "None."; } } description "CR-STATIC-LSP status type."; } typedef oam-detect-type { type enumeration { enum "invalid" { value 0; description "No detect protocol."; } enum "oam" { value 1; description "MPLS OAM (Y.1711) detect protocol."; } enum "tpoam" { value 2; description "MPLS-TP OAM (Y.1731) detect protocol."; } } description "OAM detect protocol type."; } typedef static-tnl-admin-status { type enumeration { enum "up" { value 0; description "The administrative state is up."; } enum "down" { value 1; description "The administrative is in the down state."; } } description "Static tunnel administrative status."; } typedef static-tnl-oper-status { type enumeration { enum "down" { value 0; description "The operation is in the down state."; } enum "up" { value 1; description "The operation state is up."; } } description "Static tunnel operation status."; } typedef static-tnl-state-description { type enumeration { enum "down" { value 1; description "Tunnel state is down."; } enum "up" { value 3; description "Tunnel state is up."; } enum "none" { value 14; description "Tunnel state is none."; } } description "Static tunnel state description type."; } typedef lsp-loopback-state { type enumeration { enum "stop" { value 0; description "LSP loopback state is stop."; } enum "start" { value 1; description "LSP loopback state is start."; } } description "LSP loopback state."; } rpc lsp-loopback { ext:node-ref "/mpls:mpls/mpls-te:te/mpls-te-cr-static:bidirection-static-cr-lsps/mpls-te-cr-static:bidirection-static-cr-lsp/mpls-te-cr-static:lsr-type/mpls-te-cr-static:transit/mpls-te-cr-static:transit"; description "To start or stop the lsp-loopback of a static bidirectional LSP."; input { leaf lsp-name { type leafref { path "/mpls:mpls/mpls-te:te/mpls-te-cr-static:bidirection-static-cr-lsps/mpls-te-cr-static:bidirection-static-cr-lsp/mpls-te-cr-static:lsp-name"; } mandatory true; description "Name of the bidirectional LSP to be set lsp-loopback."; } leaf loopback-state { type lsp-loopback-state; mandatory true; description "Loopback status of a static bidirectional LSP."; } } } // rpc lsp-loopback } // module huawei-mpls-te-cr-static
© 2023 YumaWorks, Inc. All rights reserved.