[dts] [PATCH] framework/dut: Fix upper and lower for MAC address
Liu, Yong
yong.liu at intel.com
Tue Oct 13 11:19:15 CEST 2015
Exactly, our configuration should have the ability to handle same configuration with different formats.
Thanks, applied.
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Michael Qiu
> Sent: Tuesday, October 13, 2015 8:21 AM
> To: dts at dpdk.org
> Subject: [dts] [PATCH] framework/dut: Fix upper and lower for MAC address
>
> When MAC address are actually the same but different upper and lower,
> it should be take as the same.
>
> Signed-off-by: Michael Qiu <michael.qiu at intel.com>
> ---
> framework/dut.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/framework/dut.py b/framework/dut.py
> index 1199fc6..70bd146 100644
> --- a/framework/dut.py
> +++ b/framework/dut.py
> @@ -778,9 +778,9 @@ class Dut(Crb):
>
> for key in ['intf', 'mac', 'numa', 'peer', 'source']:
> if key in port_cfg:
> - if key in port and port_cfg[key] != port[key]:
> + 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]
> + port[key] = port_cfg[key].lower()
>
> def map_available_ports(self):
> """
> --
> 1.9.3
More information about the dts
mailing list