Download Yuma Developer Manual

Transcript
Yuma Developer Manual
Table Of Contents
Yuma Developer Manual
1 Preface........................................................................................................................4
1.1 Legal Statements..................................................................................................4
1.2 Additional Resources............................................................................................4
1.2.1 WEB Sites................................................................................................................... 4
1.2.2 Mailing Lists............................................................................................................... 5
1.3 Conventions Used in this Document.....................................................................5
2 Software Overview......................................................................................................6
2.1 Introduction..........................................................................................................6
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.1.6
2.1.7
Intended Audience..................................................................................................... 6
What does Yuma Do?................................................................................................. 6
What is a Yuma Root?................................................................................................ 7
Searching Yuma Roots............................................................................................... 8
What is a SIL?............................................................................................................. 9
Auto-generated SIL Files............................................................................................ 9
Basic Development Steps......................................................................................... 10
2.2.1
2.2.2
2.2.3
2.2.4
2.2.5
2.2.6
2.2.7
2.2.8
2.2.9
src/ncx Directory...................................................................................................... 11
src/platform Directory.............................................................................................. 13
src/agt Directory...................................................................................................... 14
src/mgr Directory..................................................................................................... 15
src/subsys Directory................................................................................................. 16
src/netconfd Directory.............................................................................................. 16
src/yangcli Directory................................................................................................ 16
src/yangdiff Directory............................................................................................... 16
src/yangdump Directory........................................................................................... 17
2.3.1
2.3.2
2.3.3
2.3.4
2.3.5
2.3.6
2.3.7
2.3.8
YANG Native Operation............................................................................................ 18
YANG Object Tree..................................................................................................... 20
YANG Data Tree....................................................................................................... 21
Service Layering....................................................................................................... 22
Session Control Block............................................................................................... 23
Server Message Flows.............................................................................................. 23
Main ncxserver Loop................................................................................................ 25
SIL Callback Functions.............................................................................................. 26
2.4.1
2.4.2
2.4.3
2.4.4
2.4.5
2.4.6
2.4.7
Initialization.............................................................................................................. 27
Loading Modules and SIL Code.................................................................................28
Core Module Initialization......................................................................................... 29
Startup Configuration Processing.............................................................................29
Process an Incoming <rpc> Request.......................................................................30
Edit the Database..................................................................................................... 31
Save the Database................................................................................................... 33
2.2 Yuma Source Files...............................................................................................11
2.3 Server Design.....................................................................................................17
2.4 Server Operation.................................................................................................27
2.5 Built-in Server Modules.......................................................................................33
2.5.1 ietf-inet-types.yang.................................................................................................. 33
2.5.2 ietf-netconf-monitoring.yang....................................................................................34
Page 1
Version 2.2