Skip to content

Commit

Permalink
Merge pull request #2013 from architkhatri98/issue_2012_add_huge_tree…
Browse files Browse the repository at this point in the history
…_junos

Add huge_tree as an optional_arg in junos to fix xml huge tree node #2012
  • Loading branch information
mirceaulinic authored Apr 10, 2024
2 parents 88f8cab + 71ec2ac commit acb6383
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions napalm/junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
self.ssh_config_file = optional_args.get("ssh_config_file", None)
self.ignore_warning = optional_args.get("ignore_warning", False)
self.auto_probe = optional_args.get("auto_probe", 0)
self.huge_tree = optional_args.get("huge_tree", False)

# Define locking method
self.lock_disable = optional_args.get("lock_disable", False)
Expand Down Expand Up @@ -121,6 +122,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
ssh_private_key_file=self.key_file,
ssh_config=self.ssh_config_file,
port=self.port,
huge_tree=self.huge_tree,
)
else:
self.device = Device(
Expand All @@ -129,6 +131,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
password=password,
port=self.port,
ssh_config=self.ssh_config_file,
huge_tree=self.huge_tree,
)

self.platform = "junos"
Expand Down

0 comments on commit acb6383

Please sign in to comment.