GithubHelp home page GithubHelp logo

Comments (5)

lampwins avatar lampwins commented on June 20, 2024

What is the expected flow? Would you want to call such an external service directly at save time in nautobot?

What would be the expectation upon failure in the call to the external service? Would you want to raise a validation error and prevent the save?

from nautobot-app-data-validation-engine.

jvanderaa avatar jvanderaa commented on June 20, 2024
  1. At the point in the regex check, replace with a function that makes an external call, resulting in a pass fail, allowing for custom default. Allow for the function itself to determine what to do on a fail, with a possibility of a validation error.

from nautobot-app-data-validation-engine.

lampwins avatar lampwins commented on June 20, 2024

@jvanderaa should Nautobot define the contract for the REST call or does it need to be extensible like webhooks? Can we iterate on that?

from nautobot-app-data-validation-engine.

jvanderaa avatar jvanderaa commented on June 20, 2024

I'm not exactly sure what is being asked here on this part. I don't know that Nautobot should define the contact for anything, allowing for flexibility. What would be needed from the Data Validation plugin? Would we need it to define that?

from nautobot-app-data-validation-engine.

jvanderaa avatar jvanderaa commented on June 20, 2024

Giving a little bit more of a thought, could we do something similar to ChatOps, where we can register a sub-plugin that has the validation logic (maybe a call to 3rd party system). Then there is a service requirement that the system return certain data, likely a boolean true/false for the validation succeeding. That this needs to respond in a N amount of time.

The two use cases:

  • Name validation service, has a REST endpoint
  • IPAM validation, a check of a routing table of a host before allocating an IP prefix

from nautobot-app-data-validation-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.