junos-rpc-op

Junos RPC YANG module for op command(s)

  • Version: 2019-01-01

    junos-rpc-op@2019-01-01


    
      module junos-rpc-op {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos/rpc/op";
    
        prefix op;
    
        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 op command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc op-script {
          description
            "Invoke an operation script";
          input {
            leaf script {
              type string;
              mandatory true;
              description
                "Name of script to run";
            }
    
            leaf detail {
              type empty;
              description
                "Display detailed output";
            }
    
            container argument {
              leaf name {
                type string;
                description "Argument name";
              }
    
              leaf value {
                type string;
                description "Argument value";
              }
            }  // container argument
    
            leaf invoke-debugger {
              type enumeration {
                enum "cli" {
                  value 0;
                  description
                    "Invoke debugger in cli";
                }
              }
              description
                "Invoke script in debugger mode";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc op-script
    
        rpc op-url {
          description
            "Execution of remote op script";
          input {
            leaf url-name {
              type string;
              mandatory true;
              description "URL for script";
            }
    
            leaf detail {
              type empty;
              description
                "Display detailed output";
            }
    
            leaf sha-256 {
              type string;
              description
                "Enter sha-256 hash-value";
            }
    
            container argument {
              leaf name {
                type string;
                description "Argument name";
              }
    
              leaf value {
                type string;
                description "Argument value";
              }
            }  // container argument
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc op-url
      }  // module junos-rpc-op
    

© 2023 YumaWorks, Inc. All rights reserved.