Skip to content

Commit

Permalink
update vrf test data scenarios (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtarking authored Jul 29, 2024
1 parent 2e32bc9 commit 5596b24
Show file tree
Hide file tree
Showing 21 changed files with 799 additions and 14 deletions.
2 changes: 1 addition & 1 deletion roles/dtc/common/templates/ndfc_attach_vrfs.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import_vpn_rt: {{ vrf['import_vpn_rt'] | default(omit) }}
netflow_enable: {{ vrf['netflow_enable'] | default(defaults.vxlan.overlay_services.vrfs.netflow_enable) }}
{% if vrf['netflow_enable'] is defined and vrf['netflow_enable'] | bool %}
netflow_monitor: {{ vrf['netflow_monitor'] }}
nf_monitor: {{ vrf['netflow_monitor'] }}
{% endif %}
no_rp: {{ vrf['no_rp'] | default(defaults.vxlan.overlay_services.vrfs.no_rp) }}
trm_enable: {{ vrf['trm_enable'] | default(defaults.vxlan.overlay_services.vrfs.trm_enable) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,32 @@ vxlan:
- ip_address: 172.16.255.252
vrf: management
severity: 3
netflow:
enable: true
exporter:
- name: nac-exporter1
ip_address: 192.168.70.1
source_interface: eth1/11
udp_port: 2055
- name: nac-exporter2
ip_address: 192.168.70.1
vrf: management
source_interface: eth1/12
udp_port: 2055
record:
- name: nac-record1
template: netflow_ipv4_record
- name: nac-record2
template: netflow_l2_record
layer2: true
monitor:
- name: nac-monitor1
record: nac-record1
exporter1: nac-exporter1
- name: nac-monitor2
record: nac-record2
exporter1: nac-exporter1
exporter2: nac-exporter2
vpc:
peer_link_vlan: 3600
peer_keep_alive: management
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ vxlan:
rendezvous_points: 2
rp_mode: asm
underlay_rp_loopback_id: 254
trm_enable: False
trm_enable: True
trm_default_group: 239.1.1.0
underlay_primary_rp_loopback_id: 0
underlay_backup_rp_loopback_id: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,60 @@ vxlan:
- name: NetAsCodeVrf4
vrf_id: 150004
vlan_id: 2004
vrf_int_mtu: 9000
loopback_route_tag: 54321
attach_group: leaf1_leaf2

- name: NetAsCodeVrf5
vrf_id: 150005
vlan_id: 2005
vrf_description: NetAsCodeVrf5_Netflow_only
netflow_enable: true
netflow_monitor: nac-monitor1
attach_group: leaf1_leaf2

- name: NetAsCodeVrf6
vrf_id: 150006
vlan_id: 2006
vrf_description: NetAsCodeVrf6_TRM_only
trm_enable: true
no_rp: false
rp_external: false
rp_address: 10.100.100.1
rp_loopback_id: 1006
underlay_mcast_ip: 239.1.1.0
overlay_multicast_group: 224.0.0.0/4
trm_bgw_msite: true
attach_group: leaf1_leaf2

- name: NetAsCodeVrf7
vrf_id: 150007
vlan_id: 2007
vrf_description: NetAsCodeVrf6_TRM_No_RP
trm_enable: true
no_rp: true
underlay_mcast_ip: 239.1.1.0
attach_group: leaf1_leaf2

- name: NetAsCodeVrf8
vrf_id: 150008
vlan_id: 2008
vrf_description: NetAsCodeVrf6_TRM_External_RP
trm_enable: true
rp_external: true
rp_address: 10.100.100.100
underlay_mcast_ip: 239.1.1.0
overlay_multicast_group: 224.0.0.0/4
attach_group: leaf1_leaf2

- name: NetAsCodeVrf9
vrf_id: 150009
vlan_id: 2009
vrf_description: NetAsCodeVrf6_Max_BGP_Paths
max_bgp_paths: 4
max_ibgp_paths: 4
trm_enable: false
netflow_enable: false
attach_group: leaf1_leaf2

- name: NetAsCodeVrf_Default
Expand Down Expand Up @@ -79,6 +133,41 @@ vxlan:
underlay_mcast_ip: "224.1.1.1"
attach_group: all_leaf

- name: NetAsCodeVrf_Full
vrf_id: 150030
vlan_id: 2030
vrf_vlan_name: NetAsCodeVrf_Full_vlan2030
vrf_intf_desc: NetAsCodeVrf_Full
vrf_description: NetAsCodeVrf_Full
vrf_int_mtu: 9216
loopback_route_tag: 12345
max_bgp_paths: 8
max_ibgp_paths: 8
ipv6_linklocal_enable: True
adv_host_routes: True
adv_default_routes: True
static_default_route: True
# bgp_password: cisco
# bgp_password_encryption_type: 3
disable_rt_auto: False
export_evpn_rt: ""
export_mvpn_rt: ""
export_vpn_rt: ""
import_evpn_rt: ""
import_mvpn_rt: ""
import_vpn_rt: ""
netflow_enable: True
netflow_monitor: nac-monitor1
trm_enable: True
no_rp: False
rp_external: False
rp_address: 192.168.1.1
rp_loopback_id: 1000
underlay_mcast_ip: 239.1.1.0
overlay_multicast_group: 224.0.0.0/4
trm_bgw_msite: False
attach_group: all_leaf

vrf_attach_groups:
- name: all_leaf
switches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,32 @@ vxlan:
- ip_address: 172.16.255.252
vrf: management
severity: 3
netflow:
enable: true
exporter:
- name: nac-exporter1
ip_address: 192.168.70.1
source_interface: eth1/11
udp_port: 2055
- name: nac-exporter2
ip_address: 192.168.70.1
vrf: management
source_interface: eth1/12
udp_port: 2055
record:
- name: nac-record1
template: netflow_ipv4_record
- name: nac-record2
template: netflow_l2_record
layer2: true
monitor:
- name: nac-monitor1
record: nac-record1
exporter1: nac-exporter1
- name: nac-monitor2
record: nac-record2
exporter1: nac-exporter1
exporter2: nac-exporter2
vpc:
peer_link_vlan: 3600
peer_keep_alive: management
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,34 @@ vxlan:
- name: NetAsCodeVrf4
vrf_id: 150004
vlan_id: 2004
vrf_int_mtu: 9000
loopback_route_tag: 54321
attach_group: leaf1_leaf2

- name: NetAsCodeVrf5
vrf_id: 150005
vlan_id: 2005
vrf_description: NetAsCodeVrf5_Netflow_only
netflow_enable: true
netflow_monitor: nac-monitor1
attach_group: leaf1_leaf2

- name: NetAsCodeVrf6
vrf_id: 150006
vlan_id: 2006
vrf_description: NetAsCodeVrf6_No_TRM_No_NetFlow
trm_enable: false
netflow_enable: false
attach_group: leaf1_leaf2

- name: NetAsCodeVrf9
vrf_id: 150009
vlan_id: 2009
vrf_description: NetAsCodeVrf6_Max_BGP_Paths
max_bgp_paths: 4
max_ibgp_paths: 4
trm_enable: false
netflow_enable: false
attach_group: leaf1_leaf2

- name: NetAsCodeVrf_Default
Expand Down Expand Up @@ -79,6 +107,38 @@ vxlan:
underlay_mcast_ip: "224.1.1.1"
attach_group: all_leaf

- name: NetAsCodeVrf_Full
vrf_id: 150030
vlan_id: 2030
vrf_vlan_name: NetAsCodeVrf_Full_vlan2030
vrf_intf_desc: NetAsCodeVrf_Full
vrf_description: NetAsCodeVrf_Full
vrf_int_mtu: 9216
loopback_route_tag: 12345
max_bgp_paths: 8
max_ibgp_paths: 8
ipv6_linklocal_enable: True
adv_host_routes: True
adv_default_routes: True
static_default_route: True
# bgp_password: cisco
# bgp_password_encryption_type: 3
disable_rt_auto: False
export_evpn_rt: ""
export_mvpn_rt: ""
export_vpn_rt: ""
import_evpn_rt: ""
import_mvpn_rt: ""
import_vpn_rt: ""
netflow_enable: True
netflow_monitor: nac-monitor1
trm_enable: False
no_rp: False
rp_external: False
overlay_multicast_group: ""
trm_bgw_msite: False
attach_group: all_leaf

vrf_attach_groups:
- name: all_leaf
switches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,32 @@ vxlan:
- ip_address: 172.16.255.252
vrf: management
severity: 3
netflow:
enable: true
exporter:
- name: nac-exporter1
ip_address: 192.168.70.1
source_interface: eth1/11
udp_port: 2055
- name: nac-exporter2
ip_address: 192.168.70.1
vrf: management
source_interface: eth1/12
udp_port: 2055
record:
- name: nac-record1
template: netflow_ipv4_record
- name: nac-record2
template: netflow_l2_record
layer2: true
monitor:
- name: nac-monitor1
record: nac-record1
exporter1: nac-exporter1
- name: nac-monitor2
record: nac-record2
exporter1: nac-exporter1
exporter2: nac-exporter2
vpc:
peer_link_vlan: 3600
peer_keep_alive: management
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ vxlan:
rendezvous_points: 2
rp_mode: asm
underlay_rp_loopback_id: 128
trm_enable: False
trm_enable: True
trm_default_group: 239.1.1.0
bfd:
enable: False
Expand Down
Loading

0 comments on commit 5596b24

Please sign in to comment.