Feat/add fields site and redistribute policy#266
Conversation
Add filter for site field Add site to graphql Fix type Fix type Fix errors Add site filter Add site filter
# Conflicts: # netbox_bgp/models.py
Fix template for session and redistributing in device page Fix template for session and redistributing in device page Fix errors and refactoring Fix and refactoring fix and refactoring
|
Hey, any updates? |
|
hey @nazarko-es there seems to be 2 changes here covered by 1 PR - in future please split these into 1 change per PR (ie: site + redistribution = 2 PRs). In terms of site, would you not instead scope this ? ie: to allow region, site, location etc as per other models ? |
|
hey, in future i will split. About site i didn't think about use scope because it isn't relevant in my target. I can change it to scope |
…add-fields-site-and-redistribute-policy # Conflicts: # netbox_bgp/api/serializers.py # netbox_bgp/forms.py # netbox_bgp/graphql/types.py # netbox_bgp/models.py # netbox_bgp/tables.py # netbox_bgp/template_content.py # netbox_bgp/templates/netbox_bgp/device_extend.html # netbox_bgp/templates/netbox_bgp/routingpolicy.html
|
i need some time to review |
|
hi, i merged updates from source branch and changed site to scope |
|
I'm interested to know more about this change. Snipping of Cisco BGP config below which shows Would this change address this? Thanks |
|
@aoforb yes, this change provides to add redistributing with diverse source and vrf. But now route policy is necessary field for redistributing, i can change it |
|
Cool, at the moment I extract all the VRFs from each peer group, then make them unique. This provides a list of address families to iterate over for config rendering. Since these Hopefully that makes sense. |
|
Did i correct understand that you need relationship beetwen peer group object and redistributing object? |
|
In Cisco BGP, As far as I can see, the plugin doesn’t currently expose an explicit “Address Family” concept (e.g., ipv4/ipv6 unicast per device/VRF within the BGP process). Without that anchor, it’s hard to put redistribute in the correct place. Maybe introduce an AF‑scoped model and hang redistribution off it. |
|
I know. This change has relationship between device/virtualmachine objects and redistributing, so we can define several sources and route policies for our target. About address families - now it isn't supported in plugin. In my case i can use address families in jinja template and other data from plugin to generate configuration |
|
Hi, any news? |
a5cd398 to
62bb7b9
Compare
|
hi, any updates? |
Added "site" field in ASPathList, CommunityList, RoutePolicy, PrefixList - it's usefull if you reuse names of this objects in diffrent sites but with diffrent rules. If the site is None, uniquiness of name is checking as before.
Also i added new object "redistributing". It provides to add redistributing of routes from other routing protocols with policy