aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin/vlb-business-vnf-onap-plugin-api/src/main/yang/vlb-business-vnf-onap-plugin.yang
blob: 229ad7a3a9ab2f2f7c99db069e0278f55ad98708 (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
65
66
module vlb-business-vnf-onap-plugin {

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

    description
        "This YANG module defines the generic configuration and
        operational data for vlb-business-vnf-onap-plugin in VPP";

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

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

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

        // WRITE
        // curl http://localhost:8181/restconf/operational/vlb-business-vnf-onap-plugin:vlb-business-vnf-onap-plugin

    }

    container vlb-business-vnf-onap-plugin-state {
        config false;
        uses vlb-business-vnf-onap-plugin-params;
        description "Operational data of vlb-business-vnf-onap-plugin persisted in VPP";

        // READ
        // curl -u admin:admin  http://localhost:8181/restconf/operational/vlb-business-vnf-onap-plugin:vlb-business-vnf-onap-plugin-state
    }

//    grouping vlb-business-vnf-onap-plugin-params {
//        list element {
//
//            key id;
//            leaf id {
//                type uint32;
//            }
//
//            leaf description {
//                type string;
//            }
//        }
//    }


    grouping vlb-business-vnf-onap-plugin-params {
        container vdns-instances {
            list vdns-instance {

                key ip-addr;
                leaf ip-addr {
                    type string;
                }

                leaf is-enabled {
                    type boolean;
                }
            }
        }
    }
}