X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fo1-interface.git;a=blobdiff_plain;f=ntsimulator%2Fdeploy%2Ftls%2Fenable_connections.sh;h=a321f8b17d66b709b77eaef8769b70353c102a4c;hp=ff51e2771079acf39df3297e1841bfbe77ef9ef6;hb=048a8673d15e0329cd79594028f19ba315ba7140;hpb=7dbf479029ba8bc528fb61a40ab2647489da28e9 diff --git a/ntsimulator/deploy/tls/enable_connections.sh b/ntsimulator/deploy/tls/enable_connections.sh index ff51e27..a321f8b 100755 --- a/ntsimulator/deploy/tls/enable_connections.sh +++ b/ntsimulator/deploy/tls/enable_connections.sh @@ -41,17 +41,23 @@ fi netconf_port=830 +if [ $IPv6Enabled = "true" ]; then + localhost_address="::" +else + localhost_address="0.0.0.0" +fi + echo '' > connections.xml for (( ssh_counter=0; ssh_counter<$ssh_conn; ssh_counter++ )) do - echo "MNG$ssh_counter
::
$netconf_portimported SSH keyssh_host_rsa_key
" >> connections.xml + echo "MNG$ssh_counter
$localhost_address
$netconf_portimported SSH keyssh_host_rsa_keyMelacon Server keymelacon_server_key
" >> connections.xml ((netconf_port++)) done for (( tls_counter=0; tls_counter<$tls_conn; tls_counter++ )) do - echo "MNGTLS$tls_counter
::
$netconf_portmelacon_server_certtrusted_ca_list102:E9:38:1F:F6:8B:62:DE:0A:0B:C5:03:81:A8:03:49:A0:00:7F:8B:F3x509c2n:specifiednetconf
" >> connections.xml + echo "MNGTLS$tls_counter
$localhost_address
$netconf_portmelacon_server_certtrusted_ca_list102:E9:38:1F:F6:8B:62:DE:0A:0B:C5:03:81:A8:03:49:A0:00:7F:8B:F3x509c2n:specifiednetconf
" >> connections.xml ((netconf_port++)) done