Rewrote entire NFT Update Logic

- more flexibility by a struct based approch
- allows for collection of all changes from a complex confi
- pushes everything at once to NFT
This commit is contained in:
2021-08-22 20:45:36 +02:00
parent 5242cc98f7
commit fbfd75bf99
2 changed files with 150 additions and 52 deletions

View File

@ -30,7 +30,7 @@ func init() {
log.Printf("Configuration in use: %v", viper.AllSettings())
service.LoadConfig()
err := service.NFTUpdateSets(*table, *set4, *ip4, *set6, *ip6)
err := service.NFTUpdateSetsCmd(*table, *set4, *ip4, *set6, *ip6)
if err != nil {
log.Fatalf("Could not update NFT: %s", err)
}