Giter Club home page Giter Club logo

Comments (6)

ggrimaux avatar ggrimaux commented on July 25, 2024

Hello,

We are internally checking it. We can reproduce the problem so now we need to understand what is the problem.

BR,
/Greg

from fp-ngfw-smc-python.

ggrimaux avatar ggrimaux commented on July 25, 2024

So we found a way to make it works

rule.update(sources={"src": [one_host.href]})

But that could be done in another way. We are still checking what we can do.

BR,
/Greg

from fp-ngfw-smc-python.

ggrimaux avatar ggrimaux commented on July 25, 2024

So it is also working with rule.save()

print(rule.sources.src)
one_host = Host("Host3")
rule.sources.data['src'] = [one_host.href]
print(rule.sources.src)
rule.save()

Maybe not perfect but we'll see if we can do some improvement on this area :).

We hope it is unblocking you.

BR,
/Greg

from fp-ngfw-smc-python.

thomasdevulder avatar thomasdevulder commented on July 25, 2024

created issue : issues/49 on enterprise github

from fp-ngfw-smc-python.

EtienneMILON avatar EtienneMILON commented on July 25, 2024

Hello,

Thanks for your answers, I confirm that it works with rule.update() and the good dict.

Do you think it could be possible to change the rule data structure?
I mean for "sources", "destinations", "services", and also maybe for "action" and "options".
It is not practical to use the structure with "src", "dst", "service" or "any: True".

Etienne

from fp-ngfw-smc-python.

ggrimaux avatar ggrimaux commented on July 25, 2024

@thomasdevulder created an issue for that :)

BR,
/Greg

from fp-ngfw-smc-python.

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.