博文

目前显示的是 2017的博文

MD-SAL:Toaster Step-By-Step krb

https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Toaster_Step-By-Step_krb https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Toaster_Step-By-Step https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Toaster_Tutorial 以下教程将详细介绍预构建的Toaster示例,并逐步介绍Toaster示例,如同从头开始重新创建一样。 我们将从简单的定义开始,只允许访问操作数据,并推进到演示MD-SAL的许多方面的完整示例,包括通过JMX和restconf的远程过程调用,通过JMX访问状态数据,通知和 消费服务。 您可以按照步骤,实际创建新项目并执行它们,或通过简单地阅读和学习预构建代码。 不管怎样,这个练习对于理解一般来说从头开始构建MD-SAL插件需要做些什么。 Part 1: Defining an Operational Toaster 1.Define the Toaster yang data model 2.Generate the Toaster yang data model source 3.Implement the operational Toaster provider (OpendaylightToaster) 4.Wiring the OpendaylightToaster service 5.Generate the Toaster yang provider source 6.Implement the ToasterProviderModule toaster.yang  - This file defines the north bound data model . Specifically, it defines the abstraction of a toaster that is visible to north-bound clients (e.g. the ...

Creating an Application based on MD-SAL(Data Store, RPC, Notification )

图片
Data Store  • Yang data is a tree- all staterelated data are modeled and represented as data tree to address any element / subtree • Two Logical Data Stores    • config     • operational • Unified View • InstanceIdentifier :    • Pointer to a node Data Store Transactions  • Multicast asynchronous communications, sent by Data Broker if there is change in conceptual data tree, and is delivered to subscribed consumers • Data Stores:    • Operational Data Tree - published by the providers using MD-SAL, represents a feedback loop for applications to observe state of the network / system.    • Configuration Data Tree - populated by consumers , represents intended state of the system / network预期状态 • Transaction Types    • Transactional modification to conceptual data tree - write transactions         newWriteOnlyTransaction()    • Transactional reads from curre...

Hello World - RPC

1.Build the project Eclipse menu File > New > Project > Maven > Maven Project, Next; Advanced: Name template: [groupId].[artifactId], and then check [X] Include snapshot archetypes, and choose Artifact Id opendaylight-startup-archetype.   2.  Build and Run the maven project gin1994@ubuntu:~/workspace/helloproject-aggregator $   mvn clean install gin1994@ubuntu:~/workspace/helloproject-aggregator$ cd karaf/target/assembly/bin gin1994@ubuntu:~/workspace/helloproject-aggregator/karaf/target/assembly/bin$ ./karaf opendaylight-user@root> log:display | grep Hello 2017-02-19 11:35:05,301 | INFO  | rint Extender: 3 | HelloprojectProvider      | 216 - org.gin.hello.project-impl - 0.1.0.SNAPSHOT | HelloprojectProvider Session Initiated opendaylight-user@root> shutdown -f Return to the top of the directory structure: gin1994@ubuntu:~/workspace/helloproject-aggregator/karaf/target/assembly/bin$  cd ....