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)
- 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
- Migrate zero fails when data is currently loaded in the app
- Ability to model virtual contexts HOT 1
- Creating Policy Rule Without Name Makes Object Directly Uneditable in UI
- Replace Capirca dependency with Aerleon
- Tags missing from Object model via API HOT 1
- Enable Config Contexts
- NatPolicy View fails to load
- Policy Rule list view clone rule
- Error deleting device with nautobot-app-firewall-models policy assigned
- Policy rules with same index value can be assigned to same policy
- Delete policy rule from list view error
- Refine Policy and PolicyRule Objects to Allow Duplicates with Variations
- Support for ICMP Types Missing
- Support for IP Fragments Missing HOT 1
- Add Support for Time Ranges
- Unable to Specify "Any" for Protocol
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.