func (nlo *netlinkOps) DevLinkGetAllPortList() ([]*netlink.DevlinkPort, error) {
	return netlink.DevLinkGetAllPortList()
}
DevLinkGetAllPortList gets all devlink ports
package netlinkops
import (
	"fmt"
	"net"
	"github.com/vishvananda/netlink"
)
var nlOpsImpl NetlinkOps
type NetlinkOps interface {
	LinkByName(name string) (netlink.Link, error)
	LinkSetUp(link netlink.Link) error
	LinkSetVfHardwareAddr(link netlink.Link, vf int, hwaddr net.HardwareAddr) error
	LinkSetVfVlan(link netlink.Link, vf, vlan int) error
	LinkSetVfNodeGUID(link netlink.Link, vf int, nodeguid net.HardwareAddr) error
	LinkSetVfPortGUID(link netlink.Link, vf int, portguid net.HardwareAddr) error
	LinkSetVfTrust(link netlink.Link, vf int, state bool) error
	LinkSetVfSpoofchk(link netlink.Link, vf int, check bool) error
	DevLinkGetAllPortList() ([]*netlink.DevlinkPort, error)
	DevLinkGetPortByNetdevName(netdev string) (*netlink.DevlinkPort, error)
}
func GetNetlinkOps() NetlinkOps {
	if nlOpsImpl == nil {
		nlOpsImpl = &netlinkOps{}
	}
	return nlOpsImpl
}
func SetNetlinkOps(nlops NetlinkOps) {
	nlOpsImpl = nlops
}
func ResetNetlinkOps() {
	nlOpsImpl = nil
}
type netlinkOps struct{}
func (nlo *netlinkOps) LinkByName(name string) (netlink.Link, error) {
	return netlink.LinkByName(name)
}
func (nlo *netlinkOps) LinkSetUp(link netlink.Link) error {
	return netlink.LinkSetUp(link)
}
func (nlo *netlinkOps) LinkSetVfHardwareAddr(link netlink.Link, vf int, hwaddr net.HardwareAddr) error {
	return netlink.LinkSetVfHardwareAddr(link, vf, hwaddr)
}
func (nlo *netlinkOps) LinkSetVfVlan(link netlink.Link, vf, vlan int) error {
	return netlink.LinkSetVfVlan(link, vf, vlan)
}
func (nlo *netlinkOps) LinkSetVfNodeGUID(link netlink.Link, vf int, nodeguid net.HardwareAddr) error {
	return netlink.LinkSetVfNodeGUID(link, vf, nodeguid)
}
func (nlo *netlinkOps) LinkSetVfPortGUID(link netlink.Link, vf int, portguid net.HardwareAddr) error {
	return netlink.LinkSetVfPortGUID(link, vf, portguid)
}
func (nlo *netlinkOps) LinkSetVfTrust(link netlink.Link, vf int, state bool) error {
	return netlink.LinkSetVfTrust(link, vf, state)
}
func (nlo *netlinkOps) LinkSetVfSpoofchk(link netlink.Link, vf int, check bool) error {
	return netlink.LinkSetVfSpoofchk(link, vf, check)
}