"Want more expert insights and updates? Follow us on LinkedIn and explore our company page to connect with us directly. Don’t miss out - click the link and join the conversation!"
Follow us on LinkedIn / plexinor
Company Website Https://www.plexinor.com
lab@admin:~$ cat get-bgp-naplm
from napalm import get_network_driver
from datetime import datetime
import json
junos_driver = get_network_driver("junos")
mx_router = junos_driver('192.168.0.122', 'lab',
'lab123')
mx_router.open()
output = mx_router.get_bgp_config()
print (json.dumps(output,indent=4))