X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Flogback-config%2Fsrc%2Fmain%2Fyang%2Fconfig-logging.yang;fp=opendaylight%2Fconfig%2Flogback-config%2Fsrc%2Fmain%2Fyang%2Fconfig-logging.yang;h=0000000000000000000000000000000000000000;hp=477876c66979dd6d3a0db8ce224d26174499ab5f;hb=4026e50eb489cc3c1bb9ed59aef6232f4ef3085a;hpb=8f333ba6544e8f85dcf10dd6a4cf235ff6e0ddef diff --git a/opendaylight/config/logback-config/src/main/yang/config-logging.yang b/opendaylight/config/logback-config/src/main/yang/config-logging.yang deleted file mode 100644 index 477876c669..0000000000 --- a/opendaylight/config/logback-config/src/main/yang/config-logging.yang +++ /dev/null @@ -1,194 +0,0 @@ -// vi: set smarttab et sw=4 tabstop=4: -module config-logging { - yang-version 1; - namespace "urn:opendaylight:params:xml:ns:yang:controller:logback:config"; - prefix "logging"; - - import config { prefix config; revision-date 2013-04-05; } - import rpc-context { prefix rpcx; revision-date 2013-06-17; } - - organization "Cisco Systems, Inc."; - - description - "This module contains the base YANG definitions for NS-OS - logging module."; - - revision "2013-07-16" { - description - "Initial revision."; - } - - identity logback { - description - "Actual state of logback configuration."; - base config:module-type; - config:java-name-prefix Logback; - } - - identity logback-rpc; - - augment "/config:modules/config:module/config:configuration" { - case logback { - when "/config:modules/config:module/config:type = 'logback'"; - - list file-appenders { - leaf append { - type boolean; - mandatory false; - } - - leaf file-name { - type string; - mandatory true; - } - - leaf encoder-pattern { - type string; - mandatory true; - } - - leaf name { - type string; - mandatory true; - } - key name; - config:java-name-prefix FileAppenderTO; - } - - list rolling-appenders { - leaf append { - type boolean; - mandatory false; - } - - leaf file-name { - type string; - mandatory true; - } - - leaf encoder-pattern { - type string; - mandatory true; - } - - leaf min-index { - type int32; - mandatory true; - } - - leaf max-index { - type int32; - mandatory true; - } - - leaf max-file-size { - type string; - mandatory true; - } - - leaf name { - type string; - mandatory true; - } - key name; - - leaf file-name-pattern { - type string; - mandatory true; - } - - leaf rolling-policy-type { - type string; - mandatory true; - } - - leaf max-history { - type int32; - mandatory true; - } - - leaf clean-history-on-start { - type boolean; - default false; - } - config:java-name-prefix RollingFileAppenderTO; - } - - list console-appenders { - - leaf encoder-pattern { - type string; - mandatory true; - } - - leaf threshold-filter { - type string; - default 'ALL'; - } - - leaf name { - type string; - mandatory true; - } - key name; - - config:java-name-prefix ConsoleAppenderTO; - } - - list loggers { - leaf logger-name { - type string; - mandatory true; - } - key logger-name; - - leaf level { - type string; - mandatory true; - } - - leaf-list appenders { - type string; - } - config:java-name-prefix LoggerTO; - } - } - } - - - augment "/config:modules/config:module/config:state" { - case logback { - when "/config:modules/config:module/config:type = 'logback'"; - - rpcx:rpc-context-instance "logback-rpc"; - - list status { - config:java-name-prefix StatusTO; - - leaf level { - type string; - } - - leaf message { - type string; - } - - leaf date { - type uint32; - } - } - } - } - - rpc reset { - input { - uses rpcx:rpc-context-ref { - refine context-instance { - rpcx:rpc-context-instance logback-rpc; - } - } - } - } - -} -