1e6a074d638893daaf0721df185dd8367ad913c0
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / devicemodel / src / main / yang / NetworkElement@2016-02-03.yang
1 module NetworkElement {
2         yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:networkelement:api";
4     prefix "networkelement";
5         
6     description
7         "Network Element Model";
8
9     revision "2016-02-03" {
10         description
11             "Initial revision";
12     }
13         
14         grouping ne{
15                 leaf name {
16                 description "Network Element Name";
17                 config "true";
18                 type string;
19         }
20         
21         leaf ip {
22                 description "Network Element Ip Address";
23                 config "true";
24                 type string;
25         }
26         
27         leaf port {
28                 description "Network Element Port";
29                 config "true" ;
30                 type string;
31          }
32         
33         leaf username {
34                 description "Network Element Username";
35                 config "true";
36                 type string;
37
38         }
39         
40         leaf password {
41                 description "Network Element Password";
42                 config "true";
43                 type string;
44         }
45         
46         leaf connected {
47                 description "Network Element Is Connected";
48                 config "true";
49                 type boolean;
50                 default "false";
51         }
52         }
53         
54     container networkElements {
55         list networkElement{
56                 key "name";
57                 max-elements "unbounded";
58                 min-elements "0";
59                 description
60                         "Network Elements";
61                 
62                 uses ne;
63         }
64     }
65 }