Fix: assign correct subnet CIDR as a DHCP router option

Change-Id: Ib79b4d5f2396f0295f28ede7db00cf68c84e2a51
This commit is contained in:
Jian Li 2018-05-15 13:47:19 +09:00
parent 71d42cd844
commit b311c7e06c

View File

@ -401,7 +401,7 @@ public class OpenstackSwitchingDhcpHandler {
option = new DhcpOption();
option.setCode(OptionCode_RouterAddress.getValue());
option.setLength((byte) 4);
option.setData(gatewayIp.toOctets());
option.setData(Ip4Address.valueOf(osSubnet.getGateway()).toOctets());
options.add(option);
// end option