Skip to content

Trouble with use JSNAPy from python for more than one devices #384

@yurys555

Description

@yurys555

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions