Skip to content

Commit

Permalink
Processes the endpoint operational info from plugin
Browse files Browse the repository at this point in the history
Closes #406
Signed-off-by: Mohammad Banikazemi <MBanikazemi@gmail.com>
  • Loading branch information
mbanikazemi committed Aug 11, 2015
1 parent b642de8 commit 98d95e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/remote/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/docker/docker/pkg/plugins"
"github.com/docker/libnetwork/driverapi"
"github.com/docker/libnetwork/drivers/remote/api"
"github.com/docker/libnetwork/netlabel"
"github.com/docker/libnetwork/types"
)

Expand Down Expand Up @@ -146,6 +147,9 @@ func (d *driver) EndpointOperInfo(nid, eid types.UUID) (map[string]interface{},
if err := d.call("EndpointOperInfo", info, &res); err != nil {
return nil, err
}
if val, ok := res.Value["MacAddress"]; ok {
res.Value[netlabel.MacAddress], _ = net.ParseMAC(val.(string))
}
return res.Value, nil
}

Expand Down

0 comments on commit 98d95e1

Please sign in to comment.