summaryrefslogtreecommitdiffstats
path: root/netconf/restconf/restconf-nb-bierman02/src/test/resources/test-config-data/yang1/test-interface.yang
blob: d0699e2e04305f7964a1ae6f471e2fcb820420cb (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
module test-interface {
    yang-version 1;
    namespace "urn:ietf:params:xml:ns:yang:test-interface";
    prefix "sn";

    description
        "test file";   

    revision "2014-07-01" {
        description
            "Initial revision";
        reference "will be defined";
    }
    
    container interfaces {
    
        container block {
            
            leaf address {
                type string;
            }
            leaf location {
                type string;
            }
        }
    
        list interface {
            key "name";
         
            list sub-interface {
                key "sub-name";
                
                leaf sub-name {
                    type string;
                }
            }
            
            leaf name {
                type string;
            }
            leaf type {
                type string;
            }
            leaf enabled {
                type string;
            }
        }
    }
}