- self.engine.create_vpp_exec_config(container_vat_template, \
- mid1=mid1, sid1=sid1, if_name=if_name, \
- socket1='memif-{c.name}-{sid}'. \
- format(c=self.engine.container, sid=sid1))
+ self.engine.create_vpp_exec_config(
+ container_vat_template,
+ mid1=mid1, sid1=sid1, if_name=if_name,
+ socket1='{dir}/memif-{c_name}-{sid}'.
+ format(c_name=c_name, sid=sid1, dir=guest_dir))
+ elif chain_topology == 'chain_functional':
+ for i, container in enumerate(self.containers):
+ mid1 = i % mod + 1
+ mid2 = i % mod + 1
+ sid1 = i % mod * 2 + 1
+ sid2 = i % mod * 2 + 2
+ memif_rx_mode = 'interrupt'
+ self.engine.container = self.containers[container]
+ self.engine.create_vpp_startup_config_func_dev()
+ c_name = self.engine.container.name
+ guest_dir = self.engine.container.mnt[0].split(':')[1]
+ self.engine.create_vpp_exec_config(
+ container_vat_template,
+ mid1=mid1, mid2=mid2, sid1=sid1, sid2=sid2,
+ socket1='{dir}/memif-{c_name}-{sid}'.
+ format(c_name=c_name, sid=sid1, dir=guest_dir),
+ socket2='{dir}/memif-{c_name}-{sid}'.
+ format(c_name=c_name, sid=sid2, dir=guest_dir),
+ rx_mode=memif_rx_mode)