Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xxx0624 committed Sep 5, 2024
1 parent 8c868c0 commit c58e734
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion agent/handlers/v4/tmdsstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ func (s *TMDSAgentState) getTaskMetadata(v3EndpointID string, includeTags bool)
Path: task.GetNetworkNamespace(),
NetworkInterfaces: []*tmdsv4.NetworkInterface{
{
DeviceName: "ethx",
// TODO: fetch the correct device name.
// We are exposing this information via AgentState to facilitate the fault injection
// handler to start/stop/check network faults.
// Use 'eth0'(a fake value) for existing fault injection related unit tests for now and
// it will be updated in the future.
DeviceName: "eth0",
},
},
},
Expand Down

0 comments on commit c58e734

Please sign in to comment.