netascode / ansible-dc-vxlan

Ansible Collection for configuring a VXLAN Fabric using Direct to Controller (DTC) or Direct To Device (DTD) workflows.
https://galaxy.ansible.com/ui/repo/published/cisco/nac_dc_vxlan/
MIT License
6 stars 6 forks source link

Policy: VRF-Lite OSPF #155

Open mtarking opened 1 month ago

mtarking commented 1 month ago

Support needs adding for OSPF VRF-Lite using templating structure for OSPF based on the example configuration documented here and in Lukas' Cisco Live session here starting on slide 49.

These resources can be used to map into the data model here.

The initial development and testing of different scenarios to determine impact to the device upon configuration and change configuration can look at leveraging just the dcnm_policy module outside the framework as the rendering engine is worked on in parallel.

mtarking commented 1 month ago

Here is another white paper reference

juburnet commented 5 days ago

For our lab, these are the configs required on top of the base configs to enable VRF-Lite OSPF We will get these in a jinja template

route-map extcon-rmap-BGP-to-OSPF permit 10
  match route-type internal 
route-map extcon-rmap-OSPF-to-BGP permit 10
!
vrf context myvrf_50002
  address-family ipv4 unicast
    route-target both auto
    route-target both auto evpn
!
router ospf EXTERNAL
  vrf myvrf_50002
    redistribute bgp 65003 route-map extcon-rmap-BGP-to-OSPF
!
router bgp 65003
  vrf myvrf_50002
    address-family ipv4 unicast
      redistribute ospf EXTERNAL route-map extcon-rmap-OSPF-to-BGP
!
interface Ethernet1/3.2  
  ip ospf network point-to-point   
  ip router ospf EXTERNAL area 0.0.0.0

Troubleshooting commands:

sh ip ospf neighbors vrf myvrf_50002
sh ip ospf database vrf myvrf_50002
sh ip ospf vrf myvrf_50002
sh ip route vrf myvrf_50002
sh run rpm
sh run ospf
sh run bgp
sh bgp ipv4 unicast vrf myvrf_50002