huawei-ospfv3

OSPFv3.

  • Version: 2020-06-17

    huawei-ospfv3@2020-06-17


    
      module huawei-ospfv3 {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-ospfv3";
    
        prefix ospfv3;
    
        import huawei-network-instance {
          prefix ni;
        }
        import huawei-l3vpn {
          prefix l3vpn;
        }
        import huawei-routing-policy {
          prefix rtp;
        }
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-acl {
          prefix acl;
        }
        import huawei-xpl {
          prefix xpl;
        }
        import huawei-ip {
          prefix ip;
        }
        import huawei-pub-type {
          prefix pub-type;
        }
        import huawei-extension {
          prefix ext;
        }
        import ietf-inet-types {
          prefix inet;
        }
        import ietf-yang-types {
          prefix yang;
        }
    
        include huawei-ospfv3-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 "OSPFv3.";
    
        revision "2020-06-17" {
          description
            "Modity the description and leaf units.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-03-28" {
          description
            "Add cost-binding and case.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-03-13" {
          description
            "Modify the format specification.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-03-09" {
          description "Modity the description.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-03-04" {
          description "Modity the description.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-03-03" {
          description "Modity the description.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-02-27" {
          description
            "Modify session-car and case.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-02-17" {
          description "Add link-cost.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-02-04" {
          description
            "Add session-car and case.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-12-19" {
          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-26" {
          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 ospfv3 {
          description "Configure OSPFv3 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 OSPFv3 Session CAR.";
            leaf enable {
              type boolean;
              default "true";
              description
                "Enable/disable OSPFv3 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 OSPFv3 Micro Isolation CAR.";
            leaf enable {
              type boolean;
              default "true";
              description
                "Enable/disable OSPFv3 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 mib-binding {
            description
              "Configure MIB binding an OSPF process.";
            leaf process-id {
              type leafref {
                path "/ni:network-instance/ni:instances/ni:instance/ospfv3:ospfv3/ospfv3:sites/ospfv3:site/ospfv3: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 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'.";
            }
          }  // container flush-source-trace
        }  // container ospfv3
    
        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-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
      }  // module huawei-ospfv3
    

© 2023 YumaWorks, Inc. All rights reserved.