Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
added orgvdc command
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankammermann committed Dec 3, 2017
1 parent b5e8b53 commit 2506ab9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmd/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,23 @@ var vmCommand = &cobra.Command{
},
}

var orgvdcCmd = &cobra.Command{
Use: "orgvdc",
Short: "query orgvdc requests",
Long: "query orgvdc requests",
Run: func(cmd *cobra.Command, args []string) {
url := viper.GetString("url")
user := viper.GetString("user")
password := viper.GetString("password")
org := viper.GetString("org")
vcdapi.GetAuthToken(url, user, password, org)
vcdapi.GetAllVdcorg(url)
},
}
func init() {
queryCmd.AddCommand(allocatedipCmd)
allocatedipCmd.Flags().StringVarP(&networkname, "network", "n", "", "network name to search allocated ips on")
queryCmd.AddCommand(vmCommand)
queryCmd.AddCommand(orgvdcCmd)
RootCmd.AddCommand(queryCmd)
}

0 comments on commit 2506ab9

Please sign in to comment.