Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot refreshing #242

Open
ghost opened this issue Jan 28, 2022 · 3 comments
Open

Snapshot refreshing #242

ghost opened this issue Jan 28, 2022 · 3 comments
Labels
integration-ipfabric Issues that apply to IPFabric Integration status: accepted This issue has been accepted by the maintainers team for implementation

Comments

@ghost
Copy link

ghost commented Jan 28, 2022

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 or use_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 above expiration 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 pke11y added the status: accepted This issue has been accepted by the maintainers team for implementation label Feb 10, 2022
@ghost
Copy link
Author

ghost commented May 9, 2022

@pke11y This may be good to include in the next release, IPF example:
ipf = IPFClient() ipf.update()

or

ipf = IPFDiagram() ipf.update()

@pke11y
Copy link
Contributor

pke11y commented Jul 8, 2022

@justinjeffery-ipf is this still a valid issue?

@ghost
Copy link
Author

ghost commented Jul 8, 2022

Umm I will do some testing next week and let you know

@pke11y pke11y transferred this issue from nautobot/nautobot-plugin-chatops-ipfabric Aug 21, 2023
@pke11y pke11y added the integration-ipfabric Issues that apply to IPFabric Integration label Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-ipfabric Issues that apply to IPFabric Integration status: accepted This issue has been accepted by the maintainers team for implementation
Projects
None yet
Development

No branches or pull requests

1 participant