@@ -210,14 +210,14 @@ func buildDestination(model *inputModel) *iaas.RouteDestination {
210210 case destTypeCIDRv4 :
211211 return & iaas.RouteDestination {
212212 DestinationCIDRv4 : & iaas.DestinationCIDRv4 {
213- Type : model .DestinationType ,
213+ Type : iaas . DestinationCIDRv4Type ( model .DestinationType ) ,
214214 Value : * model .DestinationValue ,
215215 },
216216 }
217217 case destTypeCIDRv6 :
218218 return & iaas.RouteDestination {
219219 DestinationCIDRv6 : & iaas.DestinationCIDRv6 {
220- Type : model .DestinationType ,
220+ Type : iaas . DestinationCIDRv6Type ( model .DestinationType ) ,
221221 Value : * model .DestinationValue ,
222222 },
223223 }
@@ -232,27 +232,27 @@ func buildNextHop(model *inputModel) *iaas.RouteNexthop {
232232 case nextHopTypeIPv4 :
233233 return & iaas.RouteNexthop {
234234 NexthopIPv4 : & iaas.NexthopIPv4 {
235- Type : model .NextHopType ,
235+ Type : iaas . NexthopIPv4Type ( model .NextHopType ) ,
236236 Value : * model .NextHopValue ,
237237 },
238238 }
239239 case nextHopTypeIPv6 :
240240 return & iaas.RouteNexthop {
241241 NexthopIPv6 : & iaas.NexthopIPv6 {
242- Type : model .NextHopType ,
242+ Type : iaas . NexthopIPv6Type ( model .NextHopType ) ,
243243 Value : * model .NextHopValue ,
244244 },
245245 }
246246 case nextHopTypeInternet :
247247 return & iaas.RouteNexthop {
248248 NexthopInternet : & iaas.NexthopInternet {
249- Type : model .NextHopType ,
249+ Type : iaas . NexthopInternetType ( model .NextHopType ) ,
250250 },
251251 }
252252 case nextHopTypeBlackhole :
253253 return & iaas.RouteNexthop {
254254 NexthopBlackhole : & iaas.NexthopBlackhole {
255- Type : model .NextHopType ,
255+ Type : iaas . NexthopBlackholeType ( model .NextHopType ) ,
256256 },
257257 }
258258 default :
0 commit comments