Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
remove unused VirtualFunction fields
Browse files Browse the repository at this point in the history
  • Loading branch information
vlorinc authored and guvenc committed Dec 20, 2023
1 parent 5d8d56c commit 77ee918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
10 changes: 1 addition & 9 deletions api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,7 @@ type InterfaceSpec struct {
}

type VirtualFunction struct {
Name string `json:"name"`
Domain uint32 `json:"domain"`
Bus uint32 `json:"bus"`
Slot uint32 `json:"slot"`
Function uint32 `json:"function"`
}

func (vf *VirtualFunction) String() string {
return fmt.Sprintf("Name: %s, Domain: %d, Bus: %d, Slot: %d, Function: %d", vf.Name, vf.Domain, vf.Bus, vf.Slot, vf.Function)
Name string `json:"name"`
}

type InterfaceList struct {
Expand Down
6 changes: 1 addition & 5 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,7 @@ func (c *client) CreateInterface(ctx context.Context, iface *api.Interface, igno
retInterface.Spec = iface.Spec
retInterface.Spec.UnderlayRoute = &underlayRoute
retInterface.Spec.VirtualFunction = &api.VirtualFunction{
Name: res.Vf.Name,
Domain: res.Vf.Domain,
Bus: res.Vf.Bus,
Slot: res.Vf.Slot,
Function: res.Vf.Function,
Name: res.Vf.Name,
}

return retInterface, nil
Expand Down

0 comments on commit 77ee918

Please sign in to comment.