Skip to content

Commit

Permalink
Merge pull request #255 from saravanakumar-periyasamy/master
Browse files Browse the repository at this point in the history
some DHCP servers expect to request for explicit router options
  • Loading branch information
dcbw authored Jan 30, 2019
2 parents 9226c96 + f891fd9 commit c74e0e9
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 c74e0e9

Please sign in to comment.