summaryrefslogtreecommitdiffstats
path: root/samples/samples-api/src/main/yang/sample-plugin@2016-12-14.yang
blob: 099ab65b81cb007a1b07b675c7cdb8609d61f091 (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
module sample-plugin {

    yang-version 1;
    namespace "urn:opendaylight:params:xml:ns:yang:sample:plugin";
    prefix "samples";

    revision 2016-12-14 {
        description "Sample model for demonstration of transation code";
    }

    import ietf-inet-types {
        prefix "inet";
    }

    grouping sample-plugin-params {
        container vxlans {
            list vxlan-tunnel {

                key id;
                leaf id {
                    type string;
                }

                leaf src {
                  type inet:ip-address;
                }
                leaf dst {
                  type inet:ip-address;
                }
            }
        }
    }

    container sample-plugin-state {
        config false;
        uses sample-plugin-params;
    }

    container sample-plugin {
        uses sample-plugin-params;
    }
}