Skip to content

Commit 1e7e5b6

Browse files
fix: bgp: handle tags field inside struct
1 parent 219b4b7 commit 1e7e5b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controllers/bgp_translations.go

+2
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ func BGPMetaToNetris(bgpMeta *k8sv1alpha1.BGPMeta) (*bgp.EBGPAdd, error) {
244244
UpdateSource: bgpMeta.Spec.UpdateSource,
245245
Vlan: bgpMeta.Spec.Vlan,
246246
Weight: bgpMeta.Spec.Weight,
247+
Tags: []string{},
247248
}
248249

249250
return bgpAdd, nil
@@ -294,6 +295,7 @@ func BGPMetaToNetrisUpdate(bgpMeta *k8sv1alpha1.BGPMeta) (*bgp.EBGPUpdate, error
294295
UpdateSource: bgpMeta.Spec.UpdateSource,
295296
Vlan: bgpMeta.Spec.Vlan,
296297
Weight: bgpMeta.Spec.Weight,
298+
Tags: []string{},
297299
}
298300

299301
return bgpAdd, nil

0 commit comments

Comments
 (0)