PHP code example of saffer-it / librenms-netconf

1. Go to this page and download the library: Download saffer-it/librenms-netconf library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

saffer-it / librenms-netconf example snippets

bash
./lnms netconf:device leaf1 --evpn-mac=0         # never here
./lnms netconf:device leaf1 --evpn-mac=1         # here even when the global switch is off
./lnms netconf:device leaf1 --evpn-mac=inherit   # back to the global setting
text
IP-A (ge-0/0/38)[LEAF-A](et-0/0/52) <-> (et-0/0/53)[LEAF-B](ge-0/0/28) IP-B
bash
composer install
composer check          # php-cs-fixer, phpstan, pest