Comments (7)
I meant index moving to PolicyRule, right now it is in the M2M releationship.
from nautobot-app-firewall-models.
Adding in a couple of discussion bullet points:
- Easier creation of the mapping between Policy and PolicyRule - currently you have to know the name of the PolicyRule you want to assign to a given Policy, if it were a foreign key then this mental overhead could be saved
- With #53 the cases where you do in fact need the same PolicyRule twice (or even more often) can be addressed with a simple cloning of that PolicyRule. I see that this is duplicating data in the database which should normally be avoided, but it also allows these two instances of that PolicyRule to potentially diverge from each other
from nautobot-app-firewall-models.
- Should the FK be a required field? (create policy first)
- The weight would switch to being on the PR model not the through model
- Clone to make up for the loss of reuse of PRs?
from nautobot-app-firewall-models.
1/3 yes
2 first weight or index? For weight I would have thought on the policy model, but I suspect you have thought of that and it doesnโt work out.
from nautobot-app-firewall-models.
How about having the following:
- weight on the
Policy
model to express in which order they should be applied (if there are multiple policies with overlapping zones for the same device, such as a general, default one and a device-specific) - index on the
PolicyRule
model to express their order inside of thePolicy
from nautobot-app-firewall-models.
yea, index to PolicyRule
from nautobot-app-firewall-models.
Resolved by #80
from nautobot-app-firewall-models.
Related Issues (20)
- Firewall plugin HOT 1
- Offer a rule policy existence checker HOT 2
- Add the "Tenant" field to the "Address Object" model.
- Sorting by Prefix in Address Object view results in error
- `service_objects` Isn't Documented in Swagger/OpenAPI Spec for Service Object Groups Create/POST
- Allow policy rules to have a souce_zone and destination_zone filter field
- Include IP protocol number in IP-based service objects HOT 1
- v2 migration failure
- Wrong URL field in API for Application Object Group
- Use Netutils libmapper for capirca platform.
- Add Aerleon support for generating rules HOT 2
- Docs: Incorrect documentation around slugs in admin install and configure guide
- firewall plugins - capirca policies - Missing views for action(s) add
- default job "Generate FW Config via Capirca" issue
- server error on device after running "Generate FW Config via Capirca" job
- another server error on device after running "Generate FW Config via Capirca" job
- AttributeError in running Generate FW Config via Capirca job
- Add M2M pre_change signal to `Policy.policy_rules` & signal for `PolicyRule.index` to enforce uniqueness on index of rules in a single policy
- More flexibly link zones to addresses/subnet/prefixes
- Server Error on policy when assigned to dynamic group
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nautobot-app-firewall-models.