network: refactor and clean code
network: fix agent GetSecrets() issue temporary
network: update autogen code, check if key exists
network: check value error for field ipv4
network: update logic setter for field ipv4
network: update Save() in connection session