From bfad882ff2d91a79180710abd558462264d7943e Mon Sep 17 00:00:00 2001 From: jgomezve Date: Tue, 7 Jan 2025 09:50:59 -0500 Subject: [PATCH] Update BGP VRF definition --- gen/definitions/bgp_vrf.yaml | 1 + internal/provider/model_nxos_bgp_vrf.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/definitions/bgp_vrf.yaml b/gen/definitions/bgp_vrf.yaml index 6d334f50..8c714f78 100644 --- a/gen/definitions/bgp_vrf.yaml +++ b/gen/definitions/bgp_vrf.yaml @@ -34,6 +34,7 @@ attributes: type: String description: 'Router ID.' example: '1.1.1.1' + omit_empty_value: true test_prerequisites: - dn: sys/fm/bgp class_name: fmBgp diff --git a/internal/provider/model_nxos_bgp_vrf.go b/internal/provider/model_nxos_bgp_vrf.go index 8e6223d6..45f69575 100644 --- a/internal/provider/model_nxos_bgp_vrf.go +++ b/internal/provider/model_nxos_bgp_vrf.go @@ -53,7 +53,7 @@ func (data BGPVRF) toBody(statusReplace bool) nxos.Body { if (!data.Name.IsUnknown() && !data.Name.IsNull()) || true { body, _ = sjson.Set(body, data.getClassName()+".attributes."+"name", data.Name.ValueString()) } - if (!data.RouterId.IsUnknown() && !data.RouterId.IsNull()) || true { + if (!data.RouterId.IsUnknown() && !data.RouterId.IsNull()) || false { body, _ = sjson.Set(body, data.getClassName()+".attributes."+"rtrId", data.RouterId.ValueString()) }