Segment Routing Policy.
Version: 2020-09-14
module huawei-srpolicy { yang-version 1; namespace "urn:huawei:yang:huawei-srpolicy"; prefix srpolicy; import huawei-extension { prefix ext; } import huawei-segment-routing { prefix sr; } import huawei-network-instance { prefix ni; } import ietf-inet-types { prefix inet; } import huawei-srv6 { prefix srv6; } import ietf-yang-types { prefix yang; } import huawei-pub-type { prefix pub-type; } include huawei-srpolicy-type; 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 "Segment Routing Policy."; revision "2020-09-14" { description "Increate the weight and BFD bypass and attribute template."; reference "Huawei private."; } revision "2020-08-14" { description "Increate sid compress."; reference "Huawei private."; } revision "2020-06-28" { description "Modify description information."; reference "Huawei private."; } revision "2020-06-20" { description "Modify the type of template info."; reference "Huawei private."; } revision "2020-06-01" { description "Increate the path verification."; reference "Huawei private."; } revision "2020-05-28" { description "Increate the policy-template."; reference "Huawei private."; } revision "2020-05-25" { description "Increate the policy-maps."; reference "Huawei private."; } revision "2020-05-20" { description "Modify the srpolicy, admin-state."; reference "Huawei private."; } revision "2020-03-26" { description "Modify description information by new rules."; reference "Huawei private."; } revision "2020-03-24" { description "Modify the policy-attributes."; reference "Huawei private."; } revision "2020-03-16" { description "Modify description information by new rules."; reference "Huawei private."; } revision "2020-02-28" { description "Modify description information."; reference "Huawei private."; } revision "2020-02-17" { description "Increate the path-mtu."; reference "Huawei private."; } revision "2020-01-03" { description "Modify description information."; reference "Huawei private."; } revision "2019-11-18" { description "Increate the SR-MPLS TE Policy group."; reference "Huawei private."; } revision "2019-04-04" { description "Init revision."; reference "Huawei private."; } ext:task-name "srpolicy"; container srpolicy { description "Configure SR Policy parameters."; container attribute-templates { description "List of SR Policy template attribute."; list attribute-template { key "id"; description "Configure SR Policy template attribute."; leaf id { type uint32 { range "1..4294967269"; } description "The template ID."; } leaf description { type string { length "1..242"; } description "The template description."; } leaf bfd-enable { type policy-bfd-enable-type; default "not-configured"; description "The template BFD flag."; } leaf bfd-bypass { type policy-bfd-bypass-type; default "not-configured"; description "The template BFD bypass flag."; } leaf hsb-enable { type enable-3types; default "not-configured"; description "The template hot standby flag."; } leaf traffic-statistics-enable { type enable-3types; default "not-configured"; description "The template traffic statistics flag."; } leaf path-verification-enable { type path-verification-type; default "not-configured"; description "The template path verification flag."; } } // list attribute-template } // container attribute-templates container attribute-template-infos { config false; description "List of SR Policy attribute template informations."; list attribute-template-info { key "id"; description "Operational state of SR Policy attribute template."; leaf id { type uint32 { range "1..4294967295"; } description "The template ID."; } leaf description { type string { length "1..242"; } description "The template description."; } leaf bfd-enable { type policy-bfd-enable-type; description "Enable/disable BFD."; } leaf bfd-bypass { type policy-bfd-bypass-type; description "Enable/disable BFD bypass."; } leaf hsb-enable { type enable-3types; description "Enable/disable hot standby."; } leaf path-verification-enable { type path-verification-type; description "Enable/disable path verification."; } leaf traffic-statistics-enable { type enable-3types; description "Enable/disable traffic statistics."; } leaf configuratin-path-refcnt { type uint32 { range "0..4294967295"; } description "The configuratin path reference count."; } leaf bgp-path-refcnt { type uint32 { range "0..4294967295"; } description "The BGP path reference count."; } } // list attribute-template-info } // container attribute-template-infos } // container srpolicy rpc reset-srv6-te-policy-traffic-statistics { ext:node-ref "/ni:network-instance/ni:instances/ni:instance/srv6:srv6/srpolicy:srpolicy/srpolicy:policy-traffic-statistics/srpolicy:policy-traffic-statistic"; ext:node-ref "/ni:network-instance/ni:instances/ni:instance/srv6:srv6/srpolicy:srpolicy/srpolicy:list-traffic-statistics/srpolicy:list-traffic-statistic"; description "Reset SRv6 TE Policy traffic statistics."; input { leaf name { type string { length "1..31"; } description "SR Policy name."; } leaf endpoint { type inet:ip-address; description "SR Policy endpoint address."; } leaf color { type uint32 { range "0..4294967295"; } description "SR Policy color."; } leaf binding-sid { type sid-value-type; description "SR Policy binding sid."; } } } // rpc reset-srv6-te-policy-traffic-statistics rpc reset-sr-mpls-te-policy-traffic-statistics { ext:node-ref "/ni:network-instance/ni:instances/ni:instance/sr:segment-routing/srpolicy:srpolicy/srpolicy:policy-traffic-statistics/srpolicy:policy-traffic-statistic"; ext:node-ref "/ni:network-instance/ni:instances/ni:instance/sr:segment-routing/srpolicy:srpolicy/srpolicy:list-traffic-statistics/srpolicy:list-traffic-statistic"; description "Reset SR-MPLS TE Policy traffic statistics."; input { leaf name { type string { length "1..31"; } description "SR Policy name."; } leaf endpoint { type inet:ip-address; description "SR Policy endpoint address."; } leaf color { type uint32 { range "0..4294967295"; } description "SR Policy color."; } leaf binding-sid { type sid-value-type; description "SR Policy binding sid."; } } } // rpc reset-sr-mpls-te-policy-traffic-statistics } // module huawei-srpolicy
© 2023 YumaWorks, Inc. All rights reserved.