Skip to content

Commit 858a0dd

Browse files
committed
sq-poller: ios/iosxe set max concurrent cmds to 1
Since with ios and iosxe we need to use one single interactive ssh session, we cannot allow concurrent cmds. This patch force the batch size to 1, so that no more than 1 command at a time can be executed. Signed-off-by: Claudio Lorina <[email protected]>
1 parent 23d45e7 commit 858a0dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

suzieq/poller/worker/nodes/node.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,14 @@ def _set_devtype(self, devtype: str, version_str: str) -> None:
528528
elif self.devtype == "eos":
529529
self.__class__ = EosNode
530530
elif self.devtype == "iosxe":
531+
# Since we need to create one single interactive session with
532+
# ios and iosxe, we cannot concurrently issue commands
533+
self.batch_size = 1
531534
self.__class__ = IosXENode
532535
elif self.devtype == "iosxr":
533536
self.__class__ = IosXRNode
534537
elif self.devtype == "ios":
538+
self.batch_size = 1
535539
self.__class__ = IOSNode
536540
elif self.devtype.startswith("junos"):
537541
self.__class__ = JunosNode

0 commit comments

Comments
 (0)