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

Feat: Detect the config diff summary between designed and running configs to detect empty tasks #709

Open
1 task done
tgodaA opened this issue Aug 1, 2024 · 0 comments
Labels
type: enhancement New feature or request

Comments

@tgodaA
Copy link

tgodaA commented Aug 1, 2024

Enhancement summary

There are some configs changes that won't create any real changes in configuration but generates a task or empty task. We need a method to detect these empty tasks.

Which component of AVD is impacted

cv_device_v3

Use case example

After upgrading AVD few configuration changes were found but were not real changes (like no shutdown or any EOS default commands). So detecting these empty tasks is important to understand that no real changes were induced after upgrading AVD.

Describe the solution you'd like

from cvprac.cvp_client import CvpClient
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
import requests.packages.urllib3
requests.packages.urllib3.disable_warnings()
 
clnt = CvpClient()
clnt.connect(['192.0.2.100'],'arista', 'arista')
body = {'task_id': 100}
 
diff = clnt.post("/api/v3/services/compliancecheck.Compliance/GetConfigDiffSummaryForTask",data=body)

Describe alternatives you've considered

Also, it would be great to provide how many lines have changed like deleted, added, modified, ignored etc if logging_summary is required.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tgodaA tgodaA added the type: enhancement New feature or request label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant