Multiple Static Routes? #3116
-
Looking at the examples of AVD for the static_routes example it only ever shows 1 route. But I tried doing this code to get many static routes: ipv6_static_routes:
And got this error and generated config: [WARNING]: [border102.iub]: 'Validation Error: ipv6_static_routes[0].gateway': ['2001:xx', '2001:xx'] is not of type 'str' ipv6 route ['::/0', '2001::32'] ['2001:xx', '2001:xx'] Also on another note this code is for ipv6, which does generate config, however I have identical config for ipv4, and it never generates 1 or more static routes. Just the default route I defined in my Fabric.yml. Any reason why? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi @theotherguy2175, Please refer to the documentation here and make sure to adhere to the data types described. Your example should look something like: ipv6_static_routes:
- vrf: default
destination_address_prefix: "::/0
gateway: "2001:xx"
- vrf: default
destination_address_prefix: "2001::32"
gateway: "2001:xx" |
Beta Was this translation helpful? Give feedback.
-
Thanks! That worked great. Do you know why IPv4 wouldn't work with the same config? |
Beta Was this translation helpful? Give feedback.
-
I figured it out. I removed the mgmt_gateway config from fabric and now it works. |
Beta Was this translation helpful? Give feedback.
-
That also helped out a ton. I was going crazy trying to figure out the hierarchy. |
Beta Was this translation helpful? Give feedback.
I figured it out. I removed the mgmt_gateway config from fabric and now it works.