Skip to content

Commit

Permalink
some DHCP servers expect to request for explicit router options
Browse files Browse the repository at this point in the history
  • Loading branch information
sara4dev committed Jan 29, 2019
1 parent a686cc4 commit f891fd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/ipam/dhcp/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func (l *DHCPLease) acquire() error {

opts := make(dhcp4.Options)
opts[dhcp4.OptionClientIdentifier] = []byte(l.clientID)
opts[dhcp4.OptionParameterRequestList] = []byte{byte(dhcp4.OptionRouter)}

pkt, err := backoffRetry(func() (*dhcp4.Packet, error) {
ok, ack, err := DhcpRequest(c, opts)
Expand Down

0 comments on commit f891fd9

Please sign in to comment.