[dts] [DTS][PATCH V2] fix dut port config bug: numa is int, does not have lower attr
Liu, Yong
yong.liu at intel.com
Wed Nov 25 03:22:26 CET 2015
Applied. Thanks.
On 11/23/2015 04:29 PM, Jingguo Fu wrote:
> Signed-off-by: Jingguo Fu <jingguox.fu at intel.com>
> ---
> framework/dut.py | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/framework/dut.py b/framework/dut.py
> index 70bd146..90a86f5 100644
> --- a/framework/dut.py
> +++ b/framework/dut.py
> @@ -776,11 +776,17 @@ class Dut(Crb):
> else:
> port_cfg = {}
>
> - for key in ['intf', 'mac', 'numa', 'peer', 'source']:
> + for key in ['intf', 'mac', 'peer', 'source']:
> if key in port_cfg:
> if key in port and port_cfg[key].lower() != port[key].lower():
> self.logger.warning("CONFIGURED %s NOT SAME AS SCANNED!!!" % (key.upper()))
> port[key] = port_cfg[key].lower()
> + if 'numa' in port_cfg:
> + if port_cfg['numa'] != port['numa']:
> + self.logger.warning("CONFIGURED NUMA NOT SAME AS SCANNED!!!")
> + port['numa'] = port_cfg['numa']
> +
> +
>
> def map_available_ports(self):
> """
More information about the dts
mailing list