This PR checks and confirms the port is open before creating a NetworkService entity. It does so in two places:
in lib/tasks/helpers/services.rb (function "_create_network_service_entity")
in enrich/network_service.rb
The reason to do it in enrich is to catch cases where the _create_network_service_entity helper is not being used. I set a hidden field in the entity so that we don't check the port twice. Its a bit ugly but should do the trick
This PR checks and confirms the port is open before creating a NetworkService entity. It does so in two places:
lib/tasks/helpers/services.rb
(function "_create_network_service_entity")enrich/network_service.rb
The reason to do it in enrich is to catch cases where the _create_network_service_entity helper is not being used. I set a hidden field in the entity so that we don't check the port twice. Its a bit ugly but should do the trick