NETCONF4J
=========
A simple, from scratch implementation of the Netconf protocol. We are currently using this library at OpenNaaS and quite happy with its feature set. See roadmap for more details and things to come.
Contributors are welcomed!
Features
--------
* Low, atomic dependencies (commons-logging, commons-configuration, commons-io, junit, ganymed-ssh2).
* OSGi ready.
* Test coverage.
* Support for both sync and async calls.
* Maven based, easy to build & contribute.
* Efficient (SAX based) parsing.
* Transport abstraction (currently, SSH and Virtual).
* This is an RPC only implementation. Configuration data passed to user untouched.
Roadmap
-------
* Fully support base Netconf (RFC4741) with all its capabilities.
* Support for events (RFC5277) and SOAP transport (RFC4743).
* Add vendor (i.e. Juniper) specific capabilities utils project.
Usage
-----
Check out the code using normal github procedure.
Build as usual. Both maven2 and maven3 should work:
cd netconf-read-only/
mvn install
Alternatively, if any test fail but you want to build anyway, try:
cd netconf-read-only/
mvn install -DskipTests
The produced jar can now be found in the target directory and at your .m2 local repo.
For importing the produced jar in your maven project use:
<dependency>
<groupId>net.i2cat.netconf</groupId>
<artifactId>netconf4j</artifactId>
<version>0.0.2</version>
</dependency>
From java, you can open a netconf session with:
sessionContext = new SessionContext();
sessionContext.setURI(new URI(System.getProperty("net.i2cat.netconf.test.transportUri", "mock://foo:bar@foo:22/okServer")));
session = new NetconfSession(sessionContext);
session.connect();
For the library interface check:
* INetconfSession [here](https://github.com/dana-i2cat/netconf4j/blob/master/src/main/java/net/i2cat/netconf/INetconfSession.java).
* SessionContext [here](https://github.com/dana-i2cat/netconf4j/blob/master/src/main/java/net/i2cat/netconf/SessionContext.java).
* The RPC objects [here](https://github.com/dana-i2cat/netconf4j/tree/master/src/main/java/net/i2cat/netconf/rpc).
Some usage examples can be found at:
* The JUnit tests inside the library [here](https://github.com/dana-i2cat/netconf4j/tree/master/src/test/java/net/i2cat/netconf/test).
* The OpenNaaS protocol bundle [here](https://github.com/dana-i2cat/opennaas/tree/master/extensions/bundles/protocols.netconf).
Origin
------
This project is a spin-off of the Manticore 2 and Mantychore FP7 projects. See http://www.mantychore.eu/about/ for further details.
Mantychore FP7 project is funded by the European Commission.
Contact
-------
Mail { user | dev } @ lists.opennaas.org for further information.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
netconf4j-develop.zip (63个子文件)
netconf4j-develop
COPYING.HEADER 657B
src
test
resources
netconf-messages
netconf-lldp-neighbors-information-reply.xml 709B
java
net
i2cat
netconf
test
ClassLoaderResourceTest.java 2KB
BaseNetconfTest.java 6KB
OperationsTest.java 11KB
TransportContentparserTest.java 6KB
main
resources
netconf-default.properties 1KB
test-default.properties 1KB
rfc4742.txt 17KB
features.xml 1KB
base.xsd 17KB
rfc4741.txt 170KB
test
example.txt 35B
dummy
responseInfo.xml 8KB
responseError.xml 608B
responseOk.xml 111B
responseHello.xml 202B
mock
cpe2configuration.xml 885B
showrouteinformation.xml 7KB
showsoftwareinformation.xml 2KB
cpe1configuration.xml 3KB
ipconfiguration.xml 8KB
showinterfaceinformation.xml 35KB
showrollbackinformation.xml 7KB
java
net
i2cat
netconf
utils
DummySimulatorHelper.java 3KB
FileHelper.java 2KB
TimerKeepAlive.java 3KB
rpc
Query.java 5KB
ErrorFactory.java 2KB
ErrorType.java 2KB
Hello.java 2KB
Reply.java 5KB
AbstractQuery.java 2KB
Capability.java 4KB
ErrorSeverity.java 2KB
ErrorTag.java 2KB
Error.java 4KB
RPCElement.java 1KB
QueryFactory.java 5KB
ReplyFactory.java 1KB
Operation.java 3KB
LoadConfigurationQuery.java 3KB
IQuery.java 980B
messageQueue
MessageQueue.java 5KB
MessageQueueListener.java 905B
SessionContext.java 8KB
INetconfSession.java 4KB
transport
TransportFactory.java 5KB
Transport.java 1KB
MockTransport.java 11KB
TransportContentParser.java 12KB
SSHTransport.java 9KB
TransportListener.java 870B
VirtualTransport.java 6KB
errors
TransportException.java 1007B
TransportNotRegisteredException.java 924B
NetconfException.java 988B
TransportRegistrationException.java 1KB
NetconfProtocolException.java 908B
NetconfSession.java 10KB
README.md 3KB
pom.xml 7KB
.gitignore 203B
共 63 条
- 1
资源评论
Nicky_LC
- 粉丝: 3
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功