Add NodeId as configuration in ransliceassurance SMO Version
[nonrtric/rapp/ransliceassurance.git] / smoversion / main.go
index 337e4e0..cb755f1 100644 (file)
@@ -57,6 +57,8 @@ func main() {
 func validateConfiguration(configuration *config.Config) error {
        if configuration.MRHost == "" || configuration.MRPort == "" {
                return fmt.Errorf("message router host and port must be provided")
+       } else if configuration.NodeId == "" {
+               return fmt.Errorf("NodeId must be provided")
        }
        return nil
 }