huawei-bmp

BGP Monitoring Protocol.

  • Version: 2021-09-04

    huawei-bmp@2021-09-04


    
      module huawei-bmp {
    
        yang-version 1;
    
        namespace "urn:huawei:yang:huawei-bmp";
    
        prefix bmp;
    
        import huawei-network-instance {
          prefix ni;
        }
        import huawei-extension {
          prefix ext;
        }
        import ietf-inet-types {
          prefix inet;
        }
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-ssl {
          prefix ssl;
        }
        import huawei-pub-type {
          prefix pub-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 "BGP Monitoring Protocol.";
    
        revision "2021-09-04" {
          description "Update revision.";
          reference
            "Huawei private.";
    
        }
    
        revision "2021-03-02" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "bmp";
    
        typedef monitor-af-type {
          type enumeration {
            enum "ipv4uni" {
              value 1;
              description
                "IPv4 unicast address family.";
            }
            enum "ipv4vpn" {
              value 3;
              description
                "IPv4 VPN address family.";
            }
            enum "ipv4labeluni" {
              value 4;
              description
                "IPv4 labeled address family.";
            }
            enum "ipv6uni" {
              value 5;
              description
                "IPv6 unicast address family.";
            }
            enum "ipv6vpn" {
              value 6;
              description
                "IPv6 VPN address family.";
            }
          }
          description
            "The address family of BMP monitor.";
        }
    
        typedef monitor-vpn-af-type {
          type enumeration {
            enum "ipv4uni" {
              value 1;
              description
                "IPv4 unicast address family.";
            }
            enum "ipv4labeluni" {
              value 4;
              description
                "IPv4 labeled address family.";
            }
            enum "ipv6uni" {
              value 5;
              description
                "IPv6 unicast address family.";
            }
          }
          description
            "The address family of BMP monitor.";
        }
    
        typedef rib-type {
          type enumeration {
            enum "ribin" {
              value 0;
              description
                "Routes received from peers.";
            }
            enum "ribout" {
              value 1;
              description
                "Routes advertised to peers.";
            }
          }
          description
            "The type of routing information base.";
        }
    
        typedef route-policy-mode {
          type enumeration {
            enum "null" {
              value 0;
              description
                "Do not configure the policy mode.";
            }
            enum "pre-policy" {
              value 1;
              description
                "Regardless of whether the route match the export policy.";
            }
            enum "post-policy" {
              value 2;
              description
                "The route that match the route policy.";
            }
          }
          description "The type of policy mode.";
        }
    
        typedef peers-route-policy-mode {
          type enumeration {
            enum "pre-policy" {
              value 1;
              description
                "Regardless of whether the route match the export policy.";
            }
            enum "post-policy" {
              value 2;
              description
                "The route that match the route policy.";
            }
          }
          description "The type of policy mode.";
        }
    
        typedef rib-type-vpn {
          type enumeration {
            enum "ribin" {
              value 0;
              description
                "Routes received from peers.";
            }
            enum "ribout" {
              value 1;
              description
                "Routes advertised to peers.";
            }
            enum "locrib" {
              value 2;
              description
                "Routes received from peers and locally imported routes.";
            }
          }
          description
            "The type of routing information base.";
        }
    
        container bmp {
          description "Configure BMP.";
          container bmp {
            presence "Enable BMP.";
            description
              "Enable/disable BMP globally.";
            leaf statistics-timer {
              type uint16 {
                range "15..65535";
              }
              units "s";
              default "3600";
              description
                "Configure a statistic report timer.";
            }
    
            leaf interface-address {
              type inet:ipv4-address-no-zone;
              description
                "Specifies a source IP address to set up a BMP session.";
            }
          }  // container bmp
        }  // container bmp
      }  // module huawei-bmp
    

© 2023 YumaWorks, Inc. All rights reserved.