DHCP Server not adding routes to clients

Good day,
We are using mikrotik together with splynx to issue static ip’s to customers.
The problem we are experiencing is that when the DHCP server has issued the customers CPE (also mikrotik) with an IP lease it doesnt add a route back to the customer in IP => Routes

/ip dhcp-server
add dhcp-option-set=“single static ip dhcp” disabled=no interface=“Static DHCP Clients” name=dhcp2 use-framed-as-classless=no use-radius=yes

Please see the attached image where i have to add these routes back to the customer manually.
ip-routes-issue.png
Is there a way to script this in the DHCP server or I’m i just missing something?

If I understand what you mean it will require an IP address on the dhcp interface to create a connected route.

I do this via a dhcp lease script:

:if ($leaseBound = "1") do={/ip address add address=100.66.0.1 network=$leaseActIP interface=customer comment=""} else={/ip address rem [find network=$leaseActIP];/ip route remove [find gateway=$leaseActIP]}

This creates an IP address for every lease, where the IP is 100.66.0.1 and the network address is the customer IP.
The ‘customer’ interface is a bridge that has the customer vlans. Use bridge-horizon.

The /ip route remove part is for framed-routes or ‘additional networks’ in splynx.