summaryrefslogtreecommitdiffstats
path: root/vpp-common/vpp-jvpp-cfg/src/main/yang/vpp-jvpp-cfg.yang
blob: 01a0bf3394de48e8d1c79987daf4e831e5ac2918 (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
module vpp-jvpp-cfg {
    yang-version 1;
    namespace "urn:honeycomb:params:xml:ns:yang:vpp:jvpp:cfg";
    prefix "vjvppc";

    import config { prefix config; revision-date 2013-04-05; }

    description
        "This module contains the base YANG definitions for
         readers/writers plugged into a honeycomb";

    revision "2016-04-06" {
        description
            "Initial revision.";
    }

    identity vpp-jvpp {
        base "config:service-type";
        config:java-class org.openvpp.jvpp.future.FutureJVpp;
    }

    identity vpp-jvpp-impl {
        base config:module-type;
        config:provided-service vpp-jvpp;
    }

    augment "/config:modules/config:module/config:configuration" {
        case vpp-jvpp-impl {
            when "/config:modules/config:module/config:type = 'vpp-jvpp-impl'";

            leaf name {
                type string;
                default "v3poODL";
            }

            leaf description {
                type string;
                description "Artificial leaf just to trigger reinitialization of JVpp from HC";
            }
        }
    }

}