Network bytes calculated wrong here:
https://github.com/vyos/vyos-1x/blob/current/src/conf_mode/dhcp_server.py#L596-L600
if the network_address (with /24 netmask) is 10.10.0.X or 10.0.10.X, the resulted string will be same: "10, 10,"
Network bytes calculated wrong here:
https://github.com/vyos/vyos-1x/blob/current/src/conf_mode/dhcp_server.py#L596-L600
if the network_address (with /24 netmask) is 10.10.0.X or 10.0.10.X, the resulted string will be same: "10, 10,"
Here is a solution (based from https://github.com/jansegre/dhcplib/blob/master/dhcplib/rfc.py#L225-L232):
# add network bytes if net.prefixlen: width = net.prefixlen // 8 if net.prefixlen % 8: width += 1 string += ','.join(map(str,tuple(net.network_address.packed)[:width])) + ','