From 3daed94739d3468c165d3a267e4ea393b9f1f59e Mon Sep 17 00:00:00 2001 From: Chris Randles Date: Tue, 12 Jan 2021 10:00:02 -0500 Subject: [PATCH] vlan: fix error message text by removing ptp references --- plugins/main/vlan/vlan.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)