junos-rpc-ptp

Junos RPC YANG module for ptp command(s)

  • Version: 2019-01-01

    junos-rpc-ptp@2019-01-01


    
      module junos-rpc-ptp {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos/rpc/ptp";
    
        prefix ptp;
    
        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 ptp command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc get-ptp-global-information {
          description
            "Show PTP related global information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-global-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-global-information
    
        rpc get-ptp-slave {
          description
            "Show interfaces that receive clock from upstream";
          input {
            leaf interface {
              type string;
              description
                "Name of physical interface";
            }
    
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-slave {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-slave
    
        rpc get-ptp-master {
          description
            "Show interfaces that drive clock to downstream slaves";
          input {
            leaf interface {
              type string;
              description
                "Name of physical interface";
            }
    
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-master {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-master
    
        rpc get-ptp-delay-metrics-short-term-information {
          description "Display short term data";
          input {
            leaf entries {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 96";
                }
              }
              description
                "No of entries to display";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-delay-metrics-short-term-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-delay-metrics-short-term-information
    
        rpc get-ptp-delay-metrics-long-term-information {
          description "Display long term data";
          input {
            leaf entry {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 30";
                }
              }
              description
                "Nth last entry to display";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-delay-metrics-long-term-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-delay-metrics-long-term-information
    
        rpc get-ptp-stateful {
          description
            "Show interfaces that are configured as stateful";
          input {
            leaf interface {
              type string;
              description
                "Name of physical interface";
            }
    
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-stateful {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-stateful
    
        rpc get-ptp-port {
          description "Show port stream details";
          input {
            leaf remote-ip {
              type jt:ipaddr;
              description
                "IP address of remote peer";
            }
    
            leaf ifl {
              type string;
              description
                "IFL name of remote peer";
            }
    
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-port {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-port
    
        rpc get-ptp-clock {
          description "Show clock details";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "detail";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-clock {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-clock
    
        rpc get-ptp-masters-debug {
          description
            "Show All Upstream Masters";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "detail";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-masters-debug {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-masters-debug
    
        rpc get-ptp-path-trace {
          description "Show path trace details";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-path-trace {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-path-trace
    
        rpc get-ptp-lock-status {
          description
            "Show PTP slave clock locking status";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-lock-status {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-lock-status
    
        rpc get-ptp-statistics {
          description "Show PTP statistics";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-statistics {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-statistics
    
        rpc get-ae-interfaces {
          description "Show AE interfaces";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ae-interfaces {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ae-interfaces
    
        rpc get-ptp-quality-level-mapping {
          description
            "Show PTP clock class to ESMC quality level mapping";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "detail";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-quality-level-mapping {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-quality-level-mapping
    
        rpc get-last-tod-update {
          description
            "Shows when the last time-of-day update happened";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-last-tod-update {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-last-tod-update
    
        rpc get-ptp-hybrid-status {
          description
            "Show hybrid mode operational status";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "detail";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-hybrid-status {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-hybrid-status
    
        rpc get-ptp-hybrid-mapping {
          description
            "Show PTP source to Synchronous Ethernet interface mappings";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "detail";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ptp-hybrid-mapping {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-ptp-hybrid-mapping
    
        rpc get-phy-timestamp-enabled-intfs {
          description
            "Show interfaces on which PTP PHY time-stamping feature is enabled";
          input {
            leaf verbosity {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detail output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml phy-timestamp-enabled-intfs {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-phy-timestamp-enabled-intfs
      }  // module junos-rpc-ptp
    

© 2023 YumaWorks, Inc. All rights reserved.