From e6ed0534e0abcb608aba555933922264e3adc792 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Tue, 12 Apr 2022 16:14:13 +0900 Subject: [PATCH] add support dell networking s3048t (os9) --- swcfg-backup.py | 5 +++-- swcfg-backup.sample.json | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/swcfg-backup.py b/swcfg-backup.py index e943cb8..83d3b05 100755 --- a/swcfg-backup.py +++ b/swcfg-backup.py @@ -151,8 +151,9 @@ class SwitchConfigFetcher: conn.expect(['.*\\(y/n\\)\\s*']) conn.send('y') if self.enable is not None: - conn.wait_command_prompt() - conn.send('exit') + if self.system not in ['s3000']: + conn.wait_command_prompt() + conn.send('exit') conn.wait_command_prompt() conn.send('exit') conn.close() diff --git a/swcfg-backup.sample.json b/swcfg-backup.sample.json index 71f6cc2..15fed83 100644 --- a/swcfg-backup.sample.json +++ b/swcfg-backup.sample.json @@ -11,6 +11,7 @@ {"hostname": "s5100", "protocol": "telnet", "system": "s5100", "username": "admin", "password": "secret"}, {"hostname": "a5120", "protocol": "telnet", "system": "a5120", "username": "admin", "password": "secret"}, {"hostname": "n4032f", "protocol": "telnet", "system": "n4000", "username": "admin", "password": "secret", "enable": "secret"}, + {"hostname": "s3048t", "protocol": "telnet", "system": "s3000", "username": "admin", "password": "secret", "enable": "secret"}, {"hostname": "n3224t", "protocol": "ssh", "system": "n3000", "username": "admin", "password": "secret", "enable": ""}, {"hostname": "s4128f", "protocol": "ssh", "system": "s4000", "username": "admin", "password": "secret"} ]