fujitsu-scripting-utility

This module contains definitions for scripting utility yang objects. Copyright (c) 2015 Fujitsu Ltd. All rights reserved.

  • Version: 2017-09-22

    fujitsu-scripting-utility@2017-09-22


    
      module fujitsu-scripting-utility {
    
        yang-version 1;
    
        namespace
          "urn:fujitsu:params:xml:ns:yang:script-util";
    
        prefix script-util;
    
        organization "Fujitsu Ltd.";
    
        contact
          "Fujitsu Ltd.
         
         Address: 2801 Telecom Parkway
                  Richardson, Texas 75082
         
         Tel: +1-800-USE-FTAC (1-800-873-3822)
         Email: ftac@fnc.fujitsu.com
         Web: www.fujitsu.com/us/services/telecom";
    
        description
          "This module contains definitions for scripting utility yang objects.
         
         Copyright (c) 2015 Fujitsu Ltd.
         All rights reserved. ";
    
        revision "2017-09-22" {
          description "Initial revision.";
        }
    
    
        rpc execute-script {
          description
            "For executing scripts from user interfaces";
          input {
            choice script-type {
              leaf cli-script {
                type empty;
                description "Script type is cli";
              }
              leaf json-script {
                type empty;
                description
                  "Script type is json";
              }
              leaf netconf-script {
                type empty;
                description
                  "Script type is netconf";
              }
            }  // choice script-type
    
            leaf script-name {
              type string;
              mandatory true;
              description
                "Name of the script file to execute";
            }
    
            leaf parameter {
              type string;
              description
                "Optional parameters to be supplied to the script.
               Ex: server=localhost;port=8080";
            }
          }
    
          output {
            leaf status {
              type enumeration {
                enum "Successful" {
                  value 1;
                }
                enum "Failed" {
                  value 2;
                }
              }
              mandatory true;
              description "Successful or Failed";
            }
    
            leaf status-message {
              type string;
              description
                "Output from the script execution, as string";
            }
          }
        }  // rpc execute-script
      }  // module fujitsu-scripting-utility
    

© 2023 YumaWorks, Inc. All rights reserved.