bbc / nmos-joint-ri

BBC reference implementation demonstrating AMWA IS-04, IS-05 and IS-10
Apache License 2.0
13 stars 1 forks source link

testing issues advertisement using IP address of eth0 #24

Closed baliset2010 closed 4 years ago

baliset2010 commented 4 years ago

Thank you very much for providing this tools and environment.

I tried to test 'IS-04 Node API' from 'testing' to 'node' in this set of VMs, without modifications. And I've got some errors and took a look.

Here is the output of avahi-browse -ar in 'auth' VM while testing 'test_04'. The 'testing' advertised '10.0.2.15', which is NAT(eth0) for vagrant, not private_network for VMs(eth1) '172.28.128.108/24'.

+   eth1 IPv4 NMOSTestSuite5102http                         _nmos-registration._tcp local
+   eth1 IPv4 NMOSTestSuite5101invalid                      _nmos-registration._tcp local
+   eth1 IPv4 NMOSTestSuite5101http                         _nmos-registration._tcp local
=   eth1 IPv4 NMOSTestSuite5102http                         _nmos-registration._tcp local
   hostname = [nmos-mocks.local]
   address = [10.0.2.15]
   port = [5102]
   txt = ["api_auth=false" "pri=0" "api_proto=http" "api_ver=v1.2"]
=   eth1 IPv4 NMOSTestSuite5101invalid                      _nmos-registration._tcp local
   hostname = [nmos-mocks.local]
   address = [10.0.2.15]
   port = [5101]
   txt = ["api_auth=false" "pri=0" "api_proto=invalid" "api_ver=v1.2"]
=   eth1 IPv4 NMOSTestSuite5101http                         _nmos-registration._tcp local
   hostname = [nmos-mocks.local]
   address = [10.0.2.15]
   port = [5101]
   txt = ["api_auth=false" "pri=0" "api_proto=http" "api_ver=v9.0"]
-   eth1 IPv4 NMOSTestSuite5101http                         _nmos-registration._tcp local
-   eth1 IPv4 NMOSTestSuite5101invalid                      _nmos-registration._tcp local
-   eth1 IPv4 NMOSTestSuite5102http                         _nmos-registration._tcp local

"interfaces" is "eth1" in /etc/nmoscommon/config.json and the above title of _nmos-registration._tcp says 'eth1', but its IP address is the value of eth0.

How can I replace the IP address?

baliset2010 commented 4 years ago

The following will change the IP Address.

~/nmos-testing/nmostesting/Config.py

### BIND_INTERFACE = None
BIND_INTERFACE = "eth1"