aboutsummaryrefslogtreecommitdiffstats
path: root/daexim-offsite-backup/model/src/main/yang/daexim-offsite-backup.yang
blob: 363136cafa1354cbfc8c767be0e564b40fa72e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module daexim-offsite-backup{
  namespace "org:onap:ccsdk:sli:northbound:daeximoffsitebackup";
  prefix daexim-offsite-backup;

  import ietf-inet-types {
    prefix inet;
  }
  import ietf-yang-types {
    prefix yang;
  }
  description
    "This ODL feature is designed for transferring MD-SAL data
     to an offsite location in the ECOMP-C containerized environments.";
  revision "2018-09-26" {
    description
      "Release 19.02 draft";
  }

  rpc backup-data {
    output {
      leaf status { type string; }
      leaf message { type string; }
    }
  }

  rpc retrieve-data {
    input {
      leaf pod-name {
        type string;
        description
          "Name of the desired MD-SAL backup's pod. If not supplied will
          default to the name of this pod.";
      }
      leaf timestamp {
        type string;
        description
          "Timestamp of the desired backup. Format: yyyyMMdd_HH";
          mandatory true;
      }
    }
    output {
      leaf status { type string; }
      leaf message { type string; }
    }
  }
}////closes the module