定制 lamoni/junosnetconf 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lamoni/junosnetconf

最新稳定版本:v1.0.1

Composer 安装命令:

composer require lamoni/junosnetconf

包简介

A Juniper NETCONF XML Management Protocol implementation in PHP

README 文档

README

This is a Junos-specific NETCONF implementation. It attempts to adhere to Juniper's proprietary NETCONF extension (http://www.juniper.net/techpubs/en_US/junos14.2/information-products/pathway-pages/netconf-guide/netconf.html)

Dependencies

Considerations

  • Implement force-synchronize for calls?
  • Implement the more obscure capabilities of Junos XML ?

Examples

Initializing JunosNetConf and then executing an operational command

$junos = new JunosNetConf(
    "192.168.0.100",
    new NetConfAuthPassword(
        [
            "username" => "lamoni",
            "password" => "phpsux"
        ]
    )
);

echo $junos->operationalCommandText('show interfaces terse');

Committing set-format configuration changes

$config = Array('set interfaces ge-0/0/0 unit 0 description "test"');
$junos->loadConfigurationSet($config);
$junos->commitConfiguration();

统计信息

  • 总下载量: 210
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-13