CiscoDevNet / terraform-provider-iosxr

Terraform Cisco IOS-XR Provider
https://registry.terraform.io/providers/CiscoDevNet/iosxr
Mozilla Public License 2.0
6 stars 9 forks source link

New features #140

Closed rjoensen closed 1 year ago

rjoensen commented 1 year ago

Hello,

First of all, I'd like to thank you for all the work you have done on this provider. It works great, and especially in the last month or so, it has improved a lot. Its awesome!

I am in the process of rewriting a whole router config using terraform, and therefore I am posting these features that I see as missing.

Would be nice to see these added as well in the future.

Thank you and best wishes, rjoensen

danischm commented 1 year ago

If you could share the relevant CLI snippets we can look into it. Be aware that you can also use the generic iosxr_gnmi resource to manage any configuration where we do not have a dedicated resource yet. The easiest way to work with iosxr_gnmi is by configuring the respective config via CLI first, then display the modelled config using sh run ... | json unified-model and use it to derive the iosxr_gnmi config from it.

rjoensen commented 1 year ago

Hello,

NTP example in the cli config looks like this;

ntp server server server ipv6 prefer server ipv6 access-group ipv4 peer NTP-PEER-V4 source Loopback0 update-calendar !

BFD example in the cli config looks like this;

bfd interface echo ipv4 source ! multipath include location 0/0/CPU0 echo disable !

flow export/monitor/sampler examples;

flow exporter-map version v9 options interface-table timeout 300 options vrf-table timeout 300 options sampler-table timeout 300 ! transport udp source Loopback0 destination ! flow monitor-map record ipv4 exporter cache entries 16384 cache timeout active 60 cache timeout inactive 30 ! flow monitor-map record ipv6 exporter cache entries 16384 cache timeout active 60 cache timeout inactive 30 ! sampler-map 1-of-1 random 1 out-of 1 !

note, this also requires "flow ipv4/ipv6 monitor" abilities in iosxr_interface resource to be able to apply to interfaces.

I’ll take a look at iosxr_gnmi and see what I can get working for now. Thanks for the recommendation, and thank you for your help.

Best wishes, rjoensen

rjoensen commented 1 year ago

Accidentally closed this issue. reopening.

tiagolugarini commented 1 year ago

I'd like to add on the BFD part to be able to enable per node (iosxr_router_bgp or iosxr_router_bgp_vrf) and not only inside the node group (iosxr_router_bgp_neighbor_group)

danischm commented 1 year ago

Could you please add the related CLI config snippets? Thanks.

danischm commented 1 year ago

All of this should be included in the v0.2.3 release. I could not test the flow resources due to missing support on XRv. If anything is not working as expected, please re-open this issue.