mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-06 04:36:17 +02:00
Fix: assign correct subnet CIDR as a DHCP router option
Change-Id: Ib79b4d5f2396f0295f28ede7db00cf68c84e2a51
This commit is contained in:
parent
71d42cd844
commit
b311c7e06c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user