netconfcentral logo

yuma-mysession.yang



  module yuma-mysession {

    yang-version 1;

    namespace
      "http://netconfcentral.org/ns/yuma-mysession";

    prefix myses;

    import yuma-app-common {
      prefix appcmn;
    }
    import ietf-netconf-with-defaults {
      prefix wd;
    }

    organization "Netconf Central";

    contact
      "Andy Bierman <andy@netconfcentral.org>";

    description
      "This module contains RPC methods for 
     customizing the default session settings
     for the current session.";

    revision "2010-05-10" {
      description
        "Added default to line-size parameter.";
    }

    revision "2009-08-11" {
      description
        "Initial published version";
    }


    rpc get-my-session {
      description
        "Get the customization settings for this session";
      output {
        leaf indent {
          type yt:IndentType;
          description
            "Number of spaces to indent (0..9) in formatted output.";
        }

        leaf linesize {
          type uint32 {
            range "40 .. 1024";
          }
          default "72";
          description
            "The desired maximum number of characters printed
per line.  The server may exceed this number.
It is only a suggestion, not a hard limit.";
        }

        leaf with-defaults {
          type wd:with-defaults-mode;
          description
            "The desired maximum number of characters printed
per line.  The server may exceed this number.
It is only a suggestion, not a hard limit.";
        }
      }
    }  // rpc get-my-session

    rpc set-my-session {
      description
        "Set the customization settings for this session.
       This is like a merge operation.  Only the values that
       are present will be used to overwrite the existing
       settings.";
      input {
        leaf indent {
          type yt:IndentType;
          description
            "Number of spaces to indent (0..9) in formatted output.";
        }

        leaf linesize {
          type uint32 {
            range "40 .. 1024";
          }
          default "72";
          description
            "The desired maximum number of characters printed
per line.  The server may exceed this number.
It is only a suggestion, not a hard limit.";
        }

        leaf with-defaults {
          type wd:with-defaults-mode;
          description
            "The desired maximum number of characters printed
per line.  The server may exceed this number.
It is only a suggestion, not a hard limit.";
        }
      }
    }  // rpc set-my-session
  }  // module yuma-mysession