Junos RPC YANG module for monitor command(s)
Version: 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 } // module junos-qfx-rpc-monitor
© 2023 YumaWorks, Inc. All rights reserved.