junos-ex-rpc-monitor

Junos RPC YANG module for monitor command(s)

  • Version: 2019-01-01

    junos-ex-rpc-monitor@2019-01-01


    
      module junos-ex-rpc-monitor {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-ex/rpc/monitor";
    
        prefix monitor;
    
        import junos-common-types {
          prefix jt;
          revision-date "2019-01-01";
        }
    
        organization "Juniper Networks, Inc.";
    
        contact "yang-support@juniper.net";
    
        description
          "Junos RPC YANG module for monitor command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc request-monitor-ethernet-delay-measurement {
          description
            "Trigger ethernet delay measurement from local to remote host";
          input {
            leaf ethdm-type {
              type enumeration {
                enum "one-way" {
                  value 0;
                  description
                    "One-way delay measurement";
                }
                enum "two-way" {
                  value 1;
                  description
                    "Two-way delay measurement";
                }
              }
              mandatory true;
            }
    
            leaf wait {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "1 .. 255";
                }
              }
              units "seconds";
              description
                "Delay after sending last packet";
            }
    
            leaf count {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "1 .. 65535";
                }
              }
              description
                "Number of delay measurement requests to send";
            }
    
            leaf maintenance-domain {
              type string {
                length "1 .. 45";
              }
              mandatory true;
              description
                "Name of maintenance domain";
            }
    
            leaf maintenance-association {
              type string {
                length "1 .. 45";
              }
              mandatory true;
              description
                "Name of maintenance association";
            }
    
            leaf remote-mac-address {
              type jt:mac-unicast;
              description
                "MAC address of remote host in xx:xx:xx:xx:xx:xx format";
            }
    
            leaf mep {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "1 .. 8191";
                }
              }
              description
                "MEP identifier of remote host (default 1)";
            }
    
            leaf local-mep {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "1 .. 8191";
                }
              }
              description
                "MEP identifier of local host";
            }
    
            leaf priority {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "0 .. 7";
                }
              }
              description
                "Priority (802.1p) value of delay measurement request frame";
            }
    
            leaf size {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32;
              }
              units "bytes";
              description
                "Size of data in data TLV of request packets";
            }
    
            leaf no-session-id-tlv {
              type empty;
              description
                "Supress insertion of session id tlv in request packet";
            }
    
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system";
              }
            }  // choice daemon-select
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ethdm-results {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc request-monitor-ethernet-delay-measurement
    
        rpc request-monitor-ethernet-loss-measurement {
          description
            "Trigger ethernet loss measurement from local to remote host";
          input {
            leaf wait {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "1 .. 255";
                }
              }
              units "seconds";
              description
                "Delay after sending last packet";
            }
    
            leaf count {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "1 .. 65535";
                }
              }
              description
                "Number of loss measurement requests to send";
            }
    
            leaf maintenance-domain {
              type string {
                length "1 .. 45";
              }
              mandatory true;
              description
                "Name of maintenance domain";
            }
    
            leaf maintenance-association {
              type string {
                length "1 .. 45";
              }
              mandatory true;
              description
                "Name of maintenance association";
            }
    
            leaf remote-mac-address {
              type jt:mac-unicast;
              description
                "MAC address of remote host in xx:xx:xx:xx:xx:xx format";
            }
    
            leaf mep {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "1 .. 8191";
                }
              }
              description
                "MEP identifier of remote host (default 1)";
            }
    
            leaf local-mep {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "1 .. 8191";
                }
              }
              description
                "MEP identifier of local host";
            }
    
            leaf priority {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "0 .. 7";
                }
              }
              description
                "Frame priority (802.1p) value";
            }
    
            leaf no-session-id-tlv {
              type empty;
              description
                "Supress insertion of session id tlv in request packet";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ethlm-results {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc request-monitor-ethernet-loss-measurement
      }  // module junos-ex-rpc-monitor
    

© 2023 YumaWorks, Inc. All rights reserved.