Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial policy work * change to pipe * more work on templating into module structure * more work on policies and policy_group buildout under a switch * refactor template * refactor template complete * refactor template again & start of cross-ref rule * update template & task using policy module * small updates for policy create * prototype use case policy * rebase for only initial policy * more updates for pr * resolve lint errors * resolve lint errors * resolve lint errors * resolve lint errors * resolve lint errors * remove render roles items * update initial render tasks * updated ndfc_vrf_lite_bgp.j2 * adjustment to where switch cmds are generated * fix lint errors * udpated j2 file for the vrf lite ebgp * commit fix for dup names * Updated MD to MD_Extended for the policy * adding ndfc_vrf_lite_ospf template * updates for ndfc_vrf_lite_ospf * updated ndfc_vrf_lite_bgp.j2 * fixing typo in the vrf lite bgp jinja2 * add initial prepare plugin for vrf lites & remove render role dependency * update ignore files * moving vrf lite bgp and ospf jinja2 files to the common role * expanded vrf-lite-ospf template for interface ospf * format update * expanded vrf lite bgp j2 * updated vrf lite bgp jinja2 * updating defaults to match the nac-vxlan repo updates * fix defaults and update vrf_lite_ospf jinja * prepare vrf liteupdates: Updates - adding logic to update redistribution secion of each switch to use the global config - update ospf secion of each interface is ospf is enabled and ospf section is not defined under the interface or default area is not given * remove tailing spaces * lint * clean up render role * remove render.py from ignore txt * fixed a typo in the code * updated vrf lite bgp jinja2 * fix for ospf default area * fix a bug * updated the vrf lite bgp jinja2 template * updated the vrf lite bgp jinja2 template * udpated and renamed vrf lite ebgp jinja2 file * Removed comment from the vrf_lite ebgp jinja2 file * update ospf vrf-lite template for bfd * ospf vrf-lite template updates for bfd * Expanded ndfc_vrf_lite_ebgp.j2 * Updated ndfc_vrf_lite_ebgp.j2 * partial fix for default_area in prep plugin * minor fix of prepare vrf_lite plugin * fixes for area number in vrf lite ospf template * updated ndfc_vrf_lite_ebgp.j2 * update ospf default cost * update defaults for ospf cost and ebgp_multihop * updated defauts for lsa_retransit_interval and lsa_transmit_delay * Updated vrf lite ebgp jinja2 * removed route reflector client config * update allow_as parameter Signed-off-by: ccoueffe <[email protected]> * update allow_as_in_number to 3 Signed-off-by: ccoueffe <[email protected]> * rename allowas to allow_as Signed-off-by: ccoueffe <[email protected]> * update jinja ospf Signed-off-by: ccoueffe <[email protected]> * update jinja for ospf cost * pass defaults to jinja template * pass defaults to jinja template * updated jinja template with default references * add condition for ospf + direct and static redistribution Signed-off-by: ccoueffe <[email protected]> * add helper function for hostname to ip address mapping lookup * remove 108 reference * update interface name + router_id Signed-off-by: ccoueffe <[email protected]> * updated multihop defalut in the vrf lite ebgp j2 * Fixed the bgp_peers indentation in the defaults * vrf-lite ospf jinja updates: fixed duplication for bfd enabled; fixed redistribution * removed route-map from the vrf lite ebgp jinja2 * create global bfd and redistribution values and update condition for bfd and ospf redistribution in bgp * updated vrf lite ebgp jinja2 * Updates in the vrf lite ebgp jinja2 * defaults update in the vrf lite ebgp jinja2 * update wording for VRF-lite ospf template * removed when condition on policies.yml * update send-community to false Signed-off-by: ccoueffe <[email protected]> * commented distance since its wip * removed redistribute direct route-map since it's configured by default and we see out of sync * updated ospf jinja template for area parameters and distance * Removed direct redistribution * Prep plugin update for the vrf lite address family and ebgp jinja2 updates * addressed whitespaces * addressed whitespaces * addressed whitespaces * added check for the bgp in the 107 prep plugin * updated vrf-lite ospf jinja, fix for area check and remove auth * updates to use ipaddr filter to get area id in IP format * updates for ospf interface authentication * update defaults for interface authentication * fix for interface auth * update area id if area is equal to 0. ipaddress(0) equal to False not 0.0.0.0 * Add condition if default-cost if default of 1 (default value) don't push cli (out-of-sync issue) * fix trailing-whitespace * fix trailing-whitespace * Add rule 502 and update typo ospf jinja Signed-off-by: ccoueffe <[email protected]> * Add conditions to rule 502 Signed-off-by: ccoueffe <[email protected]> * clean PEP8 and rewrite with function * fixed closing braket * update error message with path * Update data model path in the comments * update comment with key data model * rewrite and fix static function * move result variable * Strip outer defaults key (#206) (#207) Co-authored-by: Mike Wiebe <[email protected]> * updating the defaults in ndfc_vrf_lite_ebgp.j2 * update for defaults bfd * fix for bfd and all other fixes for custom defaults * fix for loopback lowercase in rules * add rule for loopback and passive-interface * updates to exclude passive-interface for loopback interfaces * added bfd in the vrf lite ebgp jinja2 * updates for custom default * fix for ospf.distance and auth_type * update for area_type for custom defaults * add check ospf process * update script 502 * fix typo * adding feature ospf to template for vrf-lite ospf * update prep 107 to allow configuration without vrf-lite and reformat rule 502 to fit PEP8 (long lines, quotes) * update defaults and ospf template for nssa and default-information originate * add verification in rule 502 for nssa * add missing keywork translate type7 for supress-fa, never and and always * Temp update prep_107_vrf_lites.py * Temp update prep_107_vrf_lites.py * Fix typo and order * Update ndfc_vrf_lite_ospf.j2 remove list for nssa and default_originate * Update 502_policy_vrf_lite_cross_reference.py update class check_global_ospf_nssa: remove list * Update prep_107_vrf_lites.py Adding to bypass pylint sanity check error * Update prep_107_vrf_lites.py Update pylint location to bypass sanity checks * Update prep_107_vrf_lites.py removing whitespace * Update requirements.txt To use the ipaddr filter in Ansible, you need to install the netaddr Python library. Required for prep_plugin 107. https://docs.ansible.com/ansible/latest/collections/ansible/utils/docsite/filters_ipaddr.html * Update ndfc_vrf_lite_ospf.j2 reorder option nssa no-summary should be before no-redistribution in the show run. Ex: router ospf OVERLAY vrf nac-vrf01 router-id 1.1.1.1 area 0.0.0.10 nssa no-summary no-redistribution default-information-originate area 0.0.0.20 nssa translate type7 always supress-fa default-information originate * Update prep_107_vrf_lites.py update remove lines 40-42 to 41-43 * Update ndfc_vrf_lite_ospf.j2 remote list line 78 {% set _= nssa_options_flags.append(area.nssa.route_map) %} * Update prep_107_vrf_lites.py remove nac_ from unique_name, because it was adding in policy.j2 now. * Update sub_main.yml Removing comment for end_play --------- Signed-off-by: ccoueffe <[email protected]> Co-authored-by: devegupt <[email protected]> Co-authored-by: Justin Burnette (juburnet) <[email protected]> Co-authored-by: mwiebe <[email protected]> Co-authored-by: Shangxin Du <[email protected]> Co-authored-by: ccoueffe <[email protected]> Co-authored-by: Devendra Gupta <[email protected]> Co-authored-by: Charly Coueffe <[email protected]> Co-authored-by: juburnet <[email protected]>
- Loading branch information