Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #846 from amshinde/marshal-net-endpoints
Browse files Browse the repository at this point in the history
network: Marshal BridgedMacvlanEndpoint and MacvtapEndpoint
  • Loading branch information
amshinde committed Oct 19, 2018
2 parents 4c82d52 + 21d38e9 commit 40ee885
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virtcontainers/network.go
Expand Up @@ -265,6 +265,7 @@ func (n *NetworkNamespace) UnmarshalJSON(b []byte) error {
return err
}

endpoints = append(endpoints, &endpoint)
networkLogger().WithFields(logrus.Fields{
"endpoint": endpoint,
"endpoint-type": "macvlan",
Expand All @@ -277,6 +278,7 @@ func (n *NetworkNamespace) UnmarshalJSON(b []byte) error {
return err
}

endpoints = append(endpoints, &endpoint)
networkLogger().WithFields(logrus.Fields{
"endpoint": endpoint,
"endpoint-type": "macvtap",
Expand Down

0 comments on commit 40ee885

Please sign in to comment.