nautobot-app-chatops
nautobot-app-chatops copied to clipboard
Snapshot refreshing
Environment
- Nautobot version: 1.2.4
- ipfabric version: 1.1.0
Proposed Functionality
Currently a user's context only has snapshot_id
. I am proposing we add the following:
-
expiration
: Not really an expiration but after 12 hours check to see if the snapshot is still there or newer snapshots available, see next item -
snapshot_ref
oruse_last
: We store the actual snapshot_id in the context however if I chose$last
and a new snapshot is available the chatops will not change to the new one. With the aboveexpiration
we check every 12 hours and see if there is a new snapshot and then prompt the user. "Currently using UUID as snapshot, newest snapshot is UUID. Would you like to switch to $last"
Use Case
Snapshots in IP Fabric are usually run every day (sometimes 2x day). There can be a maximum of 5 loaded snapshots in the system and older ones are automatically moved to unloaded. If I use the chatops on Monday and then use it again Friday there is a possibility it errors as the snapshot was unloaded or I am using old data.
@pke11y This may be good to include in the next release, IPF example:
ipf = IPFClient() ipf.update()
or
ipf = IPFDiagram() ipf.update()
@justinjeffery-ipf is this still a valid issue?
Umm I will do some testing next week and let you know