Skip to content

Commit 60332a6

Browse files
committed
Release v0.9.6
1 parent 75c8fa8 commit 60332a6

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Auto-detects best upgrade method available:
2727
* `request platform software package install`
2828
* If those fail, plain `copy` followed by `set boot ...`
2929

30-
Fully supported platforms:
30+
Supported platforms:
3131
* Catalyst 3550
3232
* Catalyst 3560
3333
* Catalyst 3560-X
@@ -115,12 +115,14 @@ See [`example/batch_example.py`](https://github.com/austind/iosfw/blob/master/ex
115115
* Accept a pre-existing `napalm` connection object
116116
* Verify reachability of `transfer_source`, attempting fix as needed
117117
* More consistent debug output
118-
* Break `__init__()` into separate methods, with more verbose feedback
119-
* ISR 4300 support
120118
* N3K/N9K support
121119

122120
Contributions welcome.
123121

122+
## Changelog
123+
124+
See [CHANGELOG.md](https://github.com/austind/iosfw/blob/master/CHANGELOG.md)
125+
124126
## Notes
125127

126128
* Expect most upgrades to take 8-10 minutes per device, with one notable exception: Catalyst 3750-X took no less than 40 minutes in testing.

example/batch_example.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import getpass
55

66
hosts = ['switch1.example.com', 'switch2', 'switch3', 'switch4', '172.16.32.54']
7-
current_user = getpass.getuser()
8-
username = input("Username [{}]: ".format(current_user)) or current_user
7+
whoami = getpass.getuser()
8+
username = input("Username [{}]: ".format(whoami)) or whoami
99
password = getpass.getpass()
1010
secret = getpass.getpass("Enable secret: ")
1111

@@ -21,5 +21,6 @@
2121
for host in hosts:
2222
upgrade_args['hostname'] = host
2323
device = iosfw.iosfw(**upgrade_args)
24+
device.open()
2425
device.upgrade()
2526
device.close()

iosfw/iosfw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ def upgrade(self):
12871287
self.ensure_reload_scheduled()
12881288
else:
12891289
self.log.info("Reload config not set. No reload scheduled.")
1290-
else:
1290+
else:
12911291
self.log.info("No action needed.")
12921292
end_t = datetime.now()
12931293
self.log.info("Total time elapsed: {}".format(end_t - start_t))

0 commit comments

Comments
 (0)