Updates to vnfs command for NodeDB updates
This commit is contained in:
@@ -28,7 +28,9 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
for _, node := range nodes {
|
||||
set[node.Vnfs.String()] ++
|
||||
if node.Vnfs.Defined() == true {
|
||||
set[node.Vnfs.Get()] ++
|
||||
}
|
||||
}
|
||||
|
||||
} else if BuildAll == true {
|
||||
@@ -40,7 +42,9 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
for _, node := range nodes {
|
||||
set[node.Vnfs.String()] ++
|
||||
if node.Vnfs.Defined() == true {
|
||||
set[node.Vnfs.Get()] ++
|
||||
}
|
||||
}
|
||||
|
||||
} else if len(args) == 1 {
|
||||
|
||||
@@ -20,7 +20,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
nodemap := make(map[string]int)
|
||||
|
||||
for _, n := range nodes {
|
||||
nodemap[n.Vnfs.String()] ++
|
||||
nodemap[n.Vnfs.Get()] ++
|
||||
}
|
||||
|
||||
images, _ := ioutil.ReadDir(config.VnfsImageParentDir())
|
||||
|
||||
@@ -14,8 +14,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
baseCmd.PersistentFlags().BoolVarP(&SystemOverlay, "system", "s", false, "Show System Overlays as well")
|
||||
baseCmd.PersistentFlags().BoolVarP(&BuildAll, "all", "a", false, "Build all overlays (runtime and system)")
|
||||
//baseCmd.PersistentFlags().BoolVarP(&SystemOverlay, "system", "s", false, "Show System Overlays as well")
|
||||
//baseCmd.PersistentFlags().BoolVarP(&BuildAll, "all", "a", false, "Build all overlays (runtime and system)")
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user