Skip to content

Commit

Permalink
Remove unnecessary LinkIsUp from interface metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Milan Lenco <[email protected]>
  • Loading branch information
Milan Lenco committed May 17, 2019
1 parent d06757f commit a6c4803
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion plugins/vpp/ifplugin/descriptor/interface_crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ func (d *InterfaceDescriptor) Retrieve(correlate []adapter.InterfaceKVWithMetada
Vrf: intf.Interface.Vrf,
IPAddresses: intf.Interface.IpAddresses,
TAPHostIfName: tapHostIfName,
LinkIsUp: intf.Meta.LinkState == 1,
}
retrieved = append(retrieved, adapter.InterfaceKVWithMetadata{
Key: models.Key(intf.Interface),
Expand Down
1 change: 0 additions & 1 deletion plugins/vpp/ifplugin/ifaceidx/ifaceidx.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ type IfaceMetadata struct {
Vrf uint32
IPAddresses []string
TAPHostIfName string /* host interface name set for the Linux-side of the TAP interface; empty for non-TAPs */
LinkIsUp bool // Note: this is updated only on refresh! (i.e. suitable to use for Retrieve)
}

// GetIndex returns sw_if_index assigned to the interface.
Expand Down

0 comments on commit a6c4803

Please sign in to comment.