Skip to content

A PHP API for Juniper's Junos NETCONF XML Management Protocol

License

Notifications You must be signed in to change notification settings

burakbuylu/junosnetconf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fix composer.json:

{
    "require": {
        "lamoni/junosnetconf": "dev-master"
    },
    "repositories": [
        {
            "type": "vcs",
            "url":  "https://github.com/burakbuylu/junosnetconf.git"
        }
    ]
}

enter this line to your composer.json after run: composer update

Junos NETCONF XML Management Protocol

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();

About

A PHP API for Juniper's Junos NETCONF XML Management Protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%