Project

General

Profile

NETCONF » besip.yang

Lukáš Vojáček, 08/24/2011 10:12 AM

 
1
module besip {
2

    
3
	namespace "http://netconfcentral.com/ns/besip";
4
	
5
	prefix "besip";
6

    
7
	organization "Besip Team";
8
	
9
	contact "some name <some@email.com>";
10
	
11
	description "global besip module";
12
	
13
	revision 2011-08-22 {
14
        description "besip module in progress";
15
    }
16
	
17
	container besip {
18
	
19
		presence "indicate if the service is available";
20
	
21
		description "besip module container for all database objects";
22
	
23
		container interfaces {
24
			
25
			presence "indicate if the service is available";
26
			
27
			description "static ip addresses for interfaces";
28
			
29
			list interface {
30
				
31
				description "interface konfig";
32
				
33
				key ifname;
34
				
35
				leaf ifname {
36
					description "interface name";
37
					type string;
38
					config true;
39
					mandatory true;
40
				}
41
				
42
				leaf ipaddr {
43
					description "ip address";
44
					type string;
45
					config true;
46
					mandatory true;
47
				}
48
				
49
				leaf netmask {
50
					description "netmask";
51
					type string;
52
					config true;
53
					mandatory true;
54
				}
55
				
56
				leaf gateway {
57
					description "default gateway";
58
					type string;
59
					config true;
60
					mandatory true;
61
				}
62
				
63
				leaf-list dns {
64
					description "list of dns servers";
65
					type string;
66
					config true;
67
				}
68
			}
69
		}
70
	}
71
	
72
	rpc set-interface {
73

    
74
		description "set-interface";
75

    
76
		input {
77
			
78
			leaf iname {
79
				description "interface name";
80
				type string;
81
			}
82
			
83
		}
84
	}
85
	
86
	
87
	notification set-notification {
88

    
89
		description "set is done";
90
			
91
		leaf set-status {
92

    
93
			description "status";
94

    
95
			type enumeration {
96

    
97
				enum done {
98
					description "OK";
99
				}
100

    
101
				enum error {
102
					description "ERROR";
103
				}
104

    
105
			}
106
		}
107
    }
108
}
(3-3/7)