mirror of
https://codeberg.org/lauralani/ipam.git
synced 2024-11-23 20:20:39 +01:00
mostly whitespace changes
This commit is contained in:
parent
9f8c8f7e29
commit
2db0e27223
5 changed files with 33 additions and 33 deletions
|
@ -63,7 +63,7 @@ func initConfig() {
|
|||
viper.SetConfigType("yaml")
|
||||
|
||||
viper.SetDefault("DataPath", ipamdir+"data/")
|
||||
viper.SetDefault("EnablePowerDNS", false)
|
||||
viper.SetDefault("PowerDNSEnabled", false)
|
||||
viper.SetDefault("PowerDNSEndpoint", "")
|
||||
viper.SetDefault("PowerDNSApiKey", "")
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ var subnetlistCmd = &cobra.Command{
|
|||
Args: cobra.ExactArgs(0),
|
||||
Example: "cmdb subnet list",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
verbose, _ := cmd.Flags().GetBool("verbose")
|
||||
//verbose, _ := cmd.Flags().GetBool("verbose")
|
||||
subnetlist := ListSubnets()
|
||||
var subnets []Subnet
|
||||
|
||||
|
@ -40,7 +40,7 @@ var subnetlistCmd = &cobra.Command{
|
|||
})
|
||||
|
||||
for _, subnet := range subnets {
|
||||
if verbose {
|
||||
//if verbose {
|
||||
var numip, freeip int
|
||||
|
||||
if subnet.Subnet.Addr().Is4() {
|
||||
|
@ -52,9 +52,9 @@ var subnetlistCmd = &cobra.Command{
|
|||
} else {
|
||||
fmt.Printf("%v:\t%v\t(vl: %v)\n", subnet.Subnet, subnet.Name, subnet.Vlan)
|
||||
}
|
||||
} else {
|
||||
fmt.Printf("%v:\t%v\t(vl: %v)\n", subnet.Subnet, subnet.Name, subnet.Vlan)
|
||||
}
|
||||
//} else {
|
||||
// fmt.Printf("%v:\t%v\t(vl: %v)\n", subnet.Subnet, subnet.Name, subnet.Vlan)
|
||||
//}
|
||||
|
||||
}
|
||||
},
|
||||
|
@ -71,5 +71,5 @@ func init() {
|
|||
|
||||
// Cobra supports local flags which will only run when this command
|
||||
// is called directly, e.g.:
|
||||
subnetlistCmd.Flags().BoolP("verbose", "v", false, "Show verbose output like free IPs")
|
||||
// subnetlistCmd.Flags().BoolP("verbose", "v", false, "Show verbose output like free IPs")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue