OSPFv2.
Version: 2020-07-03
module huawei-ospfv2 { yang-version 1; namespace "urn:huawei:yang:huawei-ospfv2"; prefix ospfv2; import huawei-ifm { prefix ifm; } import huawei-network-instance { prefix ni; } import huawei-l3vpn { prefix l3vpn; } import huawei-routing-policy { prefix rtp; } import huawei-acl { prefix acl; } import huawei-xpl { prefix xpl; } import huawei-pub-type { prefix pub-type; } import ietf-yang-types { prefix yang; } import huawei-extension { prefix ext; } import ietf-inet-types { prefix inet; } include huawei-ospfv2-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 "OSPFv2."; revision "2020-07-03" { description "Modify the must statement."; reference "Huawei private."; } revision "2020-07-01" { description "Add keychain-name pattern lower-only."; reference "Huawei private."; } revision "2020-03-28" { description "Add cost-binding and case."; reference "Huawei private."; } revision "2020-03-04" { description "Modify the description."; reference "Huawei private."; } revision "2020-03-03" { description "Modify the description."; reference "Huawei private."; } revision "2020-02-27" { description "Modify session-car and case."; reference "Huawei private."; } revision "2020-02-04" { description "Add session-car and case."; reference "Huawei private."; } revision "2019-12-26" { description "Reconstructing Yang file by yin mechanism."; reference "Huawei private."; } revision "2019-12-20" { description "Reconstructing Yang file by yin mechanism."; reference "Huawei private."; } revision "2019-12-16" { description "Reconstructing Yang file by yin mechanism."; reference "Huawei private."; } revision "2019-11-22" { description "Reconstructing Yang file by yin mechanism."; reference "Huawei private."; } revision "2019-11-15" { description "Reconstructing Yang file by yin mechanism."; reference "Huawei private."; } revision "2019-10-22" { description "Reconstructing Yang file by yin mechanism."; reference "Huawei private."; } revision "2019-04-04" { description "Initial revision."; reference "Huawei private."; } ext:task-name "ospf"; container ospfv2 { description "Configure OSPFv2 config."; container check-rt-id { description "Configure automatic modification of conflicted router IDs. If enable, check and resolve OSPF router ID conflict."; leaf conflict-flag { type boolean; default "true"; description "Enable/disable automatic modification of conflicted router IDs. If enable, check and resolve OSPF router ID conflict."; } } // container check-rt-id container advertise-max-cost { description "Configure OSPF LSA advertise max cost globally."; leaf enable { type boolean; default "false"; description "Enable/disable OSPF LSAs to advertise max cost globally."; } } // container advertise-max-cost container session-car { must 'pir-interval>=cir-interval'; must 'pbs-interval>=cbs-interval'; description "Configure OSPF Session CAR."; leaf enable { type boolean; default "true"; description "Enable/disable OSPF Session CAR."; } leaf cir-interval { type uint32 { range "0..1000000"; } units "kbit/s"; default "8"; description "Specify the Session CAR CIR interval."; } leaf cbs-interval { type uint32 { range "0..1000000"; } units "Byte"; default "100000"; description "Specify the Session CAR CBS interval."; } leaf pir-interval { type uint32 { range "0..1000000"; } units "kbit/s"; default "16000"; description "Specify the Session CAR PIR interval."; } leaf pbs-interval { type uint32 { range "0..10000000"; } units "Byte"; default "9000000"; description "Specify the Session CAR PBS interval."; } } // container session-car container micro-isolation-car { must 'pir>=cir'; must 'pbs>=cbs'; description "Configure OSPF Micro Isolation CAR."; leaf enable { type boolean; default "true"; description "Enable/disable OSPF Micro Isolation CAR."; } leaf cir { type uint32 { range "0..1000000"; } units "kbit/s"; default "8"; description "Specify the Micro Isolation CAR CIR interval."; } leaf cbs { type uint32 { range "0..1000000"; } units "Byte"; default "100000"; description "Specify the Micro Isolation CAR CBS interval."; } leaf pir { type uint32 { range "0..1000000"; } units "kbit/s"; default "16000"; description "Specify the Micro Isolation CAR PIR interval."; } leaf pbs { type uint32 { range "0..10000000"; } units "Byte"; default "9000000"; description "Specify the Micro Isolation CAR PBS interval."; } } // container micro-isolation-car container maxage-lsa-protect { description "Configure auto protect of purge LSA error for OSPF."; leaf disable { type boolean; default "false"; description "Enable/disable auto protect of purge LSA error for OSPF."; } } // container maxage-lsa-protect container suppress-flap-intf { description "Configure OSPF suppress flapping interface."; leaf disable { type boolean; default "false"; description "Enable/disable cancel the current setting or default setting."; } } // container suppress-flap-intf container mib-binding { description "Configure MIB binding an OSPF process."; leaf process-id { type leafref { path "/ni:network-instance/ni:instances/ni:instance/ospfv2:ospfv2/ospfv2:sites/ospfv2:site/ospfv2:process-id"; } description "Process ID."; } } // container mib-binding container flush-source-trace { description "Configure OSPF flush source trace globally."; leaf enable { type boolean; default "true"; description "Enable/disable OSPF flush source trace globally."; } leaf vlink-enable { type boolean; default "true"; description "Enable/disable OSPF vlink flush source trace globally."; } leaf port { type uint16 { range "1025..65535"; } default "50122"; description "Set OSPF flush source trace port allocated by huawei-pp4.The related CLI is 'display ip port info | inc UDP'."; } leaf vlink-port { type uint16 { range "1025..65535"; } default "50123"; description "Set OSPF vlink flush source trace port allocated by huawei-pp4.The related CLI is 'display ip port info | inc UDP'."; } } // container flush-source-trace container system-control { description "Configure memory overload control and CPU overload control."; leaf cpu-overload-ctrl-enable { type boolean; default "true"; description "Enable/disable CPU overload control."; } leaf mem-overload-ctrl-enable { type boolean; default "true"; description "Enable/disable memory overload control."; } } // container system-control container route-loop-detect { description "Configure OSPF import route loop detect."; leaf enable { type boolean; default "true"; description "Enable/disable OSPF import route loop detect."; } } // container route-loop-detect container global-state { config false; description "Statistics of OSPFv2 global status."; leaf dcn-link-cnt { type uint32 { range "1..4294967295"; } description "Number of dcn links."; } } // container global-state } // container ospfv2 rpc reset-redistribution { description "To re-import routes."; input { leaf process-id { type uint32 { range "1..4294967295"; } description "Process ID."; } } } // rpc reset-redistribution rpc reset-counter { description "To clear the counter."; input { leaf process-id { type uint32 { range "1..4294967295"; } description "Process ID."; } leaf router-id { type inet:ipv4-address-no-zone; description "Neighbor router ID."; } leaf if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Interface name."; } } } // rpc reset-counter rpc reset-process { description "To restart an OSPF process."; input { leaf process-id { type uint32 { range "1..4294967295"; } description "Process ID."; } } } // rpc reset-process rpc reset-peer { description "To re-establish a neighbor."; input { leaf process-id { type uint32 { range "1..4294967295"; } description "Process ID."; } leaf router-id { type inet:ipv4-address-no-zone; description "Neighbor router ID."; } leaf if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Interface name."; } } } // rpc reset-peer rpc reset-spf { description "To restart SPF."; input { leaf process-id { type uint32 { range "1..4294967295"; } description "Process ID."; } } } // rpc reset-spf rpc reset-frr { description "Restart FRR."; input { leaf process-id { type uint32 { range "1..4294967295"; } description "Process ID."; } } } // rpc reset-frr rpc reset-suppress-peer { description "Restart OSPF peer flapping suppress."; input { leaf process-id { type uint32 { range "1..4294967295"; } description "Process ID."; } leaf if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Interface name."; } leaf notify-peer-flag { type boolean; default "false"; description "Enable/disable notification neighbor quit peer flapping suppress flag."; } } } // rpc reset-suppress-peer rpc clear-loop-detect { description "Clear OSPF import route loop detect status and alarm."; } // rpc clear-loop-detect } // module huawei-ospfv2
© 2023 YumaWorks, Inc. All rights reserved.