Hello! I have an error with this Python code. AttributeError: 'SnapAdmin' object has no attribute 'host_list'
What i'm doing wrong?
from jnpr.jsnapy import SnapAdmin
from jnpr.junos import Device
js = SnapAdmin()
config_file = """
hosts:
- device: jun_sw1
port: 22
username: test
passwd: test
- device: jun_sw2
port: 22
username: test
passwd: test
tests:
- test_interfaces.yml
"""
js.snap(config_file, "pre")
Python 3.7.9
jsnapy==1.3.5
junos-eznc==2.5.4