junos-qfx-rpc-file-mgd

Junos RPC YANG module for file-mgd command(s)

  • Version: 2019-01-01

    junos-qfx-rpc-file-mgd@2019-01-01


    
      module junos-qfx-rpc-file-mgd {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-qfx/rpc/file-mgd";
    
        prefix file-mgd;
    
        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 file-mgd command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc file-copy {
          description
            "Copy files (local or remote)";
          input {
            leaf source {
              type string;
              mandatory true;
              description "URL of source file";
            }
    
            leaf destination {
              type string;
              mandatory true;
              description
                "URL of destination file";
            }
    
            leaf source-address {
              type string;
              description
                "Local address to use in originating the connection";
            }
    
            leaf routing-instance {
              type string;
              description
                "Name of routing instance for host attempt";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc file-copy
    
        rpc file-put {
          description
            "Put file onto device with contents inlined";
          input {
            leaf filename {
              type jt:filename;
              mandatory true;
              description
                "Name of destination file on device";
            }
    
            leaf permission {
              type string;
              description
                "Name of destination file on device";
            }
    
            leaf encoding {
              type string;
              mandatory true;
              description
                "Encoding type: ascii or base64";
            }
    
            leaf delete-if-exist {
              type empty;
              description
                "Delete the destination file on device if it already exists";
            }
    
            leaf file-contents {
              type jt:string-huge;
              mandatory true;
              description "File content";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml file-put-results {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc file-put
    
        rpc file-get {
          description
            "Get file from device with contents inlined";
          input {
            leaf filename {
              type jt:filename;
              mandatory true;
              description
                "Name of source file on device";
            }
    
            leaf encoding {
              type string;
              mandatory true;
              description
                "Encoding type: ascii, base64, or raw";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml file-get-results {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc file-get
      }  // module junos-qfx-rpc-file-mgd
    

© 2023 YumaWorks, Inc. All rights reserved.