[Feature] Fix incorrect network configuration.
[Cause] Incorrect network netmask, filter name, ip address.
[Solution] N/A
[Verification] Build, install on new minimal image, run tests.
Change-Id: Idc1ddcd06c73297581f778b78d392bc34020c3cc
Signed-off-by: Dariusz Michaluk <d.michaluk@samsung.com>
<bridge name="virbr-business"/>
<forward/>
<dns forwardPlainNames="yes"/>
- <ip address="10.0.102.1" netmask="255.0.0.0">
+ <ip address="10.0.102.1" netmask="255.255.255.0">
<dhcp>
<range start="10.0.102.2" end="10.0.102.2"/>
</dhcp>
-<filter name='business-nwfilter' chain='root'>
+<filter name='nwfilter-business' chain='root'>
<rule action='reject' direction='in' priority='100'>
- <ip srcipaddr='10.0.0.0' srcipmask='255.0.0.0'/>
+ <ip srcipaddr='10.0.102.0' srcipmask='255.255.255.0'/>
</rule>
<rule action='reject' direction='out' priority='100'>
- <ip dstipaddr='10.0.0.0' srcipmask='255.0.0.0'/>
+ <ip dstipaddr='10.0.102.0' srcipmask='255.255.255.0'/>
</rule>
</filter>
<interface type='network'>
<source network='business'/>
- <filterref filter='business-nwfilter'/>
+ <filterref filter='nwfilter-business'/>
</interface>
<filesystem type='mount'>
<!-- TODO: this directory could be generated from .conf files-->
<bridge name="virbr-private"/>
<forward/>
<dns forwardPlainNames="yes"/>
- <ip address="10.0.101.1" netmask="255.0.0.0">
+ <ip address="10.0.101.1" netmask="255.255.255.0">
<dhcp>
<range start="10.0.101.2" end="10.0.101.2"/>
</dhcp>
-<filter name='private-nwfilter' chain='root'>
+<filter name='nwfilter-private' chain='root'>
<rule action='reject' direction='in' priority='100'>
- <ip srcipaddr='10.0.0.0' srcipmask='255.0.0.0'/>
+ <ip srcipaddr='10.0.101.0' srcipmask='255.255.255.0'/>
</rule>
<rule action='reject' direction='out' priority='100'>
- <ip dstipaddr='10.0.0.0' srcipmask='255.0.0.0'/>
+ <ip dstipaddr='10.0.101.0' srcipmask='255.255.255.0'/>
</rule>
</filter>
<interface type='network'>
<source network='private'/>
- <filterref filter='private-nwfilter'/>
+ <filterref filter='nwfilter-private'/>
</interface>
<filesystem type='mount'>
<!-- TODO: this directory could be generated from .conf files-->
# 0. Test data
containers_list = [CONTAINER_T1, CONTAINER_T2]
dest_containers_list = [CONTAINER_T2, CONTAINER_T1]
- test_ip_list = [["192.168.101.2"], ["192.168.102.2"]]
+ test_ip_list = [["10.0.101.2"], ["10.0.102.2"]]
test_1_expected_res = [ 0, 0]
test_2_expected_res = [-1, -1]