diff --git a/plugins/main/vlan/vlan.go b/plugins/main/vlan/vlan.go index 5a19a6e1a..14b11de2b 100644 --- a/plugins/main/vlan/vlan.go +++ b/plugins/main/vlan/vlan.go @@ -238,7 +238,7 @@ func cmdCheck(args *skel.CmdArgs) error { return err } if conf.NetConf.RawPrevResult == nil { - return fmt.Errorf("ptp: Required prevResult missing") + return fmt.Errorf("vlan: Required prevResult missing") } if err := version.ParsePrevResult(&conf.NetConf); err != nil { return err @@ -308,10 +308,10 @@ func validateCniContainerInterface(intf current.Interface, masterIndex int, vlan } link, err = netlink.LinkByName(intf.Name) if err != nil { - return fmt.Errorf("ptp: Container Interface name in prevResult: %s not found", intf.Name) + return fmt.Errorf("vlan: Container Interface name in prevResult: %s not found", intf.Name) } if intf.Sandbox == "" { - return fmt.Errorf("ptp: Error: Container interface %s should not be in host namespace", link.Attrs().Name) + return fmt.Errorf("vlan: Error: Container interface %s should not be in host namespace", link.Attrs().Name) } vlan, isVlan := link.(*netlink.Vlan)