[capm3] IPA networking fails when using VLAN on provisioning interface and declaring route

Summary

IPA fails to generate network configuration when both :

  • using VLAN for provisioning interface
  • declaring route on provisioning interface

Error message can be seen in IPA suse-network-setup service logs:

InvalidArgument: The next hop interface of desired Route 'destination: 
xx.xx.xx.xxx/32 next-hop-interface: xxx.xxx next-hop-address: 
xx.xxx.xxx.xxx' has been marked as IPv4 disabled\n'" 

The root cause of this issue is #2204 (closed)

Steps to reproduce

[...]
cluster:
  control_plane:
    capm3:
      provisioning_pool_interface: bond0.24
      primary_pool_interface: bond0.13
    network_interfaces:
      bond0:
        type: bond
        interfaces:
          - nic1
          - nic2
        vlans:
          - id: 13
          - id: 24
      networkData:
        provisioning_pool_interface:
          routes:
          - network: "xx.xx.xx.xx"
            prefix: 28
            gateway:
              string: "xx.xx.xx.xx"

[...]