summaryrefslogtreecommitdiffstats
path: root/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/src/main/yang/health-vnf-onap-plugin.yang
blob: 621acedc1c267406438aa032a09ef48b31def45c (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module health-vnf-onap-plugin {

    yang-version 1;
    namespace "urn:opendaylight:params:xml:ns:yang:health-vnf-onap-plugin";
    prefix "health-vnf-onap-plugin";

    description
        "This YANG module defines the generic configuration and
        operational data for health-vnf-onap-plugin in Honeycomb";

    revision "2016-09-18" {
        description "Initial revision of health-vnf-onap-plugin model";
    }

    container health-vnf-onap-plugin {
        uses health-vnf-onap-plugin-params;
        description "Configuration data of health-vnf-onap-plugin in Honeycomb";
    }

    container health-vnf-onap-plugin-state {
        config false;
        uses health-vnf-onap-plugin-params;
        description "Operational data of health-vnf-onap-plugin persisted in Honeycomb";
    }

    grouping health-vnf-onap-plugin-params {
        container health-check {
          	leaf vnf-name {
           		type string;
           	}

           	leaf state {
           		type string;
           	}

            leaf time {
           		type string;
           	}

           	container faults {
           		leaf info {
          			type string;
           		}

           		list fault {
           			key vnf-component;
           			leaf vnf-component {
           				type string;
           			}

       			    leaf message {
           			    type string;
           		    }
            	}
            }
        }
    }

    // READ
    // curl -u admin:admin http://localhost:8181/restconf/config/health-vnf-onap-plugin:health-vnf-onap-plugin

    // WRITE
    // curl http://localhost:8181/restconf/operational/health-vnf-onap-plugin:health-vnf-onap-plugin
}