summaryrefslogtreecommitdiffstats
path: root/vpp-common/vpp-translate-utils/src/main/yang/vpp-util.yang
blob: 23615d09e5804300cb53c8cbdeee75cf1d478e3b (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
module vpp-util {
    yang-version 1;
    namespace "urn:honeycomb:params:xml:ns:yang:vpp:util";
    prefix "vpp-u";

    import config { prefix config; revision-date 2013-04-05; }
    import data-api { prefix dapi; revision-date 2016-04-11; }

    description
        "This module contains utilities for vpp readers/writers";

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

    identity naming-context {
        base "config:service-type";
        config:java-class io.fd.honeycomb.v3po.translate.v3po.util.NamingContext;
    }

    identity naming-context-impl {
        base config:module-type;
        config:provided-service naming-context;
    }

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

            leaf artificial-name-prefix {
                type string;
            }
        }
    }

}