Here is a list created from YAML file. I want to compare the following contents of each memservers with other merserves in the list:
- If the rpc_interface is same.
- If rpc_interface is same, is fam_path same?
- If rpc_interface is same, is libabric_port same?
The code should be generic i.e., it should work for any number of servers.
provider: sockets
delayed_free_threads: 0
ATL_threads: 0
ATL_queue_size: 1000
ATL_data_size: 1024
Memservers:
0:
memory_type: volatile
fam_path: /dev/shm/vol_path
rpc_interface: fam5:8793
libfabric_port: 7500
if_device: eth0
1:
memory_type: volatile
fam_path: /dev/shm/vol_path
rpc_interface: fam4:8793
libfabric_port: 7500
if_device: eth1
2:
memory_type: volatile
fam_path: /dev/shm/vol_path
rpc_interface: fam3:8793
libfabric_port: 7500
if_device: eth1