Skip to content

Commit

Permalink
Fixed rebase issues and removed CreateL2 tests
Browse files Browse the repository at this point in the history
Signed-off-by: Patryk Strusiewicz-Surmacki <patryk-pawel.strusiewicz-surmacki@external.telekom.de>
  • Loading branch information
p-strusiewiczsurmacki-mobica committed May 8, 2024
1 parent ffcf9dc commit 4d64ff5
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 991 deletions.
4 changes: 1 addition & 3 deletions pkg/nl/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (n *Manager) listNeighbors() ([]netlink.Neigh, error) {
return neighbors, nil
}

func (*Manager) ListVRFInterfaces() (map[int]VRFInformation, error) {
func (n *Manager) ListVRFInterfaces() (map[int]VRFInformation, error) {
// TODO: find a way to merge this with ListL3
infos := map[int]VRFInformation{}
links, err := n.toolkit.LinkList()
Expand All @@ -47,8 +47,6 @@ func (*Manager) ListVRFInterfaces() (map[int]VRFInformation, error) {
if link.Type() != "vrf" {
continue
}
vrf := link.(*netlink.Vrf)

vrf, ok := link.(*netlink.Vrf)
if !ok {
return nil, fmt.Errorf("error casting link %v as netlink.Vrf", link)
Expand Down
Loading

0 comments on commit 4d64ff5

Please sign in to comment.