junos-qfx-rpc-monitor

Junos RPC YANG module for monitor command(s)

  • Version: 2019-01-01

    junos-qfx-rpc-monitor@2019-01-01


    
      module junos-qfx-rpc-monitor {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-qfx/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
    
        rpc request-monitor-ethernet-synthetic-loss-measurement {
          description
            "Trigger ethernet synthetic loss measurement (ETH_SLM) from local to remote host";
          input {
            leaf wait {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "100 .. 5000";
                }
              }
              units "milliseconds";
              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 eth-slm request frame";
            }
    
            leaf size {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "1 .. 1400";
                }
              }
              units "bytes";
              description
                "Size of data in data TLV of request packets";
            }
    
            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 ethslm-results;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc request-monitor-ethernet-synthetic-loss-measurement
    
        rpc monitor-mpls-loss-measurement-rsvp-lsp {
          description
            "Trigger loss measurement for RSVP LSPs";
          input {
            leaf count {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 1000000";
                }
              }
              units "packets";
              description
                "Number of queries to send";
            }
    
            leaf detail {
              type empty;
              description
                "Display detailed output";
            }
    
            leaf interval {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 255";
                }
              }
              units "seconds";
              description
                "Delay between successive packets";
            }
    
            leaf traffic-class {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 7";
                }
              }
              description "Traffic class";
            }
    
            leaf bytes {
              type empty;
              description "Measure byte loss";
            }
    
            leaf lsp-name {
              type string {
                length "1 .. 64";
              }
              mandatory true;
              description "Name of LSP";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-pm-lm-results;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc monitor-mpls-loss-measurement-rsvp-lsp
    
        rpc monitor-mpls-delay-measurement-rsvp-lsp {
          description
            "Trigger delay measurement for RSVP LSPs";
          input {
            leaf count {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 1000000";
                }
              }
              units "packets";
              description
                "Number of queries to send";
            }
    
            leaf detail {
              type empty;
              description
                "Display detailed output";
            }
    
            leaf interval {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 255";
                }
              }
              units "seconds";
              description
                "Delay between successive packets";
            }
    
            leaf traffic-class {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 7";
                }
              }
              description "Traffic class";
            }
    
            leaf padding-size {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 1500";
                }
              }
              description "Size of padding";
            }
    
            leaf lsp-name {
              type string {
                length "1 .. 64";
              }
              mandatory true;
              description "Name of LSP";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-pm-dm-results;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc monitor-mpls-delay-measurement-rsvp-lsp
    
        rpc monitor-mpls-loss-delay-measurement-rsvp-lsp {
          description
            "Trigger combined loss delay measurement for RSVP LSPs";
          input {
            leaf count {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 1000000";
                }
              }
              units "packets";
              description
                "Number of queries to send";
            }
    
            leaf detail {
              type empty;
              description
                "Display detailed output";
            }
    
            leaf interval {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 255";
                }
              }
              units "seconds";
              description
                "Delay between successive packets";
            }
    
            leaf traffic-class {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 7";
                }
              }
              description "Traffic class";
            }
    
            leaf bytes {
              type empty;
              description "Measure byte loss";
            }
    
            leaf padding-size {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 1500";
                }
              }
              description "Size of padding";
            }
    
            leaf lsp-name {
              type string {
                length "1 .. 64";
              }
              mandatory true;
              description "Name of LSP";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-pm-ldm-results;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc monitor-mpls-loss-delay-measurement-rsvp-lsp
    
        grouping command-forwarding {
          choice chassis-selector {
            leaf all-chassis {
              type empty;
              description "All chassis";
            }
            leaf all-lcc {
              type empty;
              description "All LCC chassis";
            }
            leaf scc {
              type empty;
              description "SCC";
            }
            leaf sfc {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32;
              }
              description "SFC";
            }
            leaf lcc {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32;
              }
              description "Specific LCC";
            }
            leaf node {
              type string;
              description "Specific node";
            }
            leaf bsys {
              type empty;
              description "Base system";
            }
            leaf gnf {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 10";
                }
              }
              description
                "Specific guest network function";
            }
            leaf all-gnfs {
              type empty;
              description
                "All guest network functions";
            }
            leaf all-system {
              type empty;
              description
                "All system (BSYS and GNFs)";
            }
            leaf server {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 1";
                }
              }
              description "Specific server slot";
            }
            leaf all-servers {
              type empty;
              description "All servers";
            }
            leaf vnf {
              type string;
              description
                "Specific virtual-network-function";
            }
            leaf all-vnfs {
              type empty;
              description
                "All virtual-network-functions";
            }
          }  // choice chassis-selector
    
          choice re-selector {
            leaf re0 {
              type empty;
              description "RE0";
            }
            leaf re1 {
              type empty;
              description "RE1";
            }
            leaf routing-engine {
              type enumeration {
                enum "local" {
                  value 0;
                  description
                    "Local routing engine";
                }
                enum "other" {
                  value 1;
                  description
                    "Other routing engine";
                }
                enum "master" {
                  value 2;
                  description
                    "Master routing engine";
                }
                enum "backup" {
                  value 3;
                  description
                    "Backup routing engine";
                }
                enum "both" {
                  value 4;
                  description
                    "Both routing engines";
                }
              }
              description
                "Specific routing engine";
            }
          }  // choice re-selector
    
          choice lr-selector {
            leaf logical-system {
              type string;
              description
                "Name of logical system, or 'all'";
            }
          }  // choice lr-selector
    
          choice tenant-selector {
            leaf tenant {
              type string;
              description
                "Name of tenant, or 'all'";
            }
          }  // choice tenant-selector
    
          choice vc-selector {
            leaf local {
              type empty;
              description
                "Local virtual chassis member";
            }
            leaf all-members {
              type empty;
              description
                "All virtual chassis members";
            }
            leaf member {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32;
              }
              description
                "Specific virtual chassis member";
            }
          }  // choice vc-selector
        }  // grouping command-forwarding
      }  // module junos-qfx-rpc-monitor
    

© 2023 YumaWorks, Inc. All rights reserved.