Skip to content

Commit acb6383

Browse files
authored
Merge pull request #2013 from architkhatri98/issue_2012_add_huge_tree_junos
Add huge_tree as an optional_arg in junos to fix xml huge tree node #2012
2 parents 88f8cab + 71ec2ac commit acb6383

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

napalm/junos/junos.py

+3
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
9090
self.ssh_config_file = optional_args.get("ssh_config_file", None)
9191
self.ignore_warning = optional_args.get("ignore_warning", False)
9292
self.auto_probe = optional_args.get("auto_probe", 0)
93+
self.huge_tree = optional_args.get("huge_tree", False)
9394

9495
# Define locking method
9596
self.lock_disable = optional_args.get("lock_disable", False)
@@ -121,6 +122,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
121122
ssh_private_key_file=self.key_file,
122123
ssh_config=self.ssh_config_file,
123124
port=self.port,
125+
huge_tree=self.huge_tree,
124126
)
125127
else:
126128
self.device = Device(
@@ -129,6 +131,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
129131
password=password,
130132
port=self.port,
131133
ssh_config=self.ssh_config_file,
134+
huge_tree=self.huge_tree,
132135
)
133136

134137
self.platform = "junos"

0 commit comments

Comments
 (0)