diff --git a/pkg/cmd/common.go b/pkg/cmd/common.go index 133c3e49..dee5e7bb 100644 --- a/pkg/cmd/common.go +++ b/pkg/cmd/common.go @@ -52,7 +52,7 @@ func AddInterfaceFlag(targetCmd *cobra.Command) { } func AddNodeNameFlag(targetCmd *cobra.Command) { - targetCmd.Flags().StringVarP(&ptpInterface, + targetCmd.Flags().StringVarP(&nodeName, "nodeName", "n", "", "Name of the Node under test (valid only for MNO Use case)") diff --git a/pkg/verify/verify.go b/pkg/verify/verify.go index fdb1cb28..c0825602 100644 --- a/pkg/verify/verify.go +++ b/pkg/verify/verify.go @@ -169,7 +169,7 @@ func report(results []*ValidationResult, useAnalyserJSON bool) { } func Verify(interfaceName, kubeConfig string, useAnalyserJSON bool, nodeName string) { - checks := getValidations(interfaceName, kubeConfig, nodeName) + checks := getValidations(interfaceName, nodeName, kubeConfig) results := make([]*ValidationResult, 0) for _, check := range checks {