Closed dwebr closed 3 months ago
@dwebr The list of dicts would look something like this
- afi: ipv4
mdt:
overlay:
use_bgp:
enable: true
spt_only: true
auto_discovery:
vxlan:
enable: true
inter_as: true
default:
vxlan_mcast_group: 239.1.1.1
data:
vxlan_mcast_group: 225.2.2.0 0.0.0.255
threshold: "112"
@dwebr The list of dicts would look something like this
- afi: ipv4 mdt: overlay: use_bgp: enable: true spt_only: true auto_discovery: vxlan: enable: true inter_as: true default: vxlan_mcast_group: 239.1.1.1 data: vxlan_mcast_group: 225.2.2.0 0.0.0.255 threshold: "112"
@roverflow - Thanks for the response. I guess I'm still left with some questions though as the mdt structure does not appear to be what I need. Below is an example of a VRF definition for address-family ipv4 that will allow me to create a default route within that vrf. Without the inclusion of address-family under the vrf definition, no layer 3 config can be associated with the vrf.
vrf definition aci
description aci_test_vrf
!
address-family ipv4
exit-address-family
!
ip route vrf aci 0.0.0.0 0.0.0.0 10.80.140.1
end
Is this something I should open a feature request on?
Dan
actually it's only answer for a half question.
vrf definition my-vrf
rd 133937:0
!
address-family ipv4
exit-address-family
but this confige not
cisco.ios.ios_vrf:
name: service
description: Services in K8s
address_family:
- afi: ipv4
rd: "133937:1"
fatal: [core]: FAILED! => {
"changed": false,
"module_stderr": "'NoneType' object has no attribute 'pop'",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error"
looks like much easy just use config
SUMMARY
It's unclear what the list of dicts that are passed to the address-family parament in the cisco.ios.ios_vrf module should be. The documentation simply states "The list of address families with MDT parameters to be configured on the remote IOS device.".
I've tried passing parameters like the following
But that results in a fatal error when run ...
I suspect I just don't have the arguments for the address_family parameter defined correctly since it is not defined anywhere that I could find and also not provided as an example in the documentation.
ISSUE TYPE
COMPONENT NAME
https://docs.ansible.com/ansible/latest/collections/cisco/ios/ios_vrf_module.html#parameter-address_family
ANSIBLE VERSION