[ovs-dev] [PATCH 1/2] ovn-nbctl: check the length of MAC address

Ben Pfaff blp at ovn.org
Mon Oct 3 18:28:43 UTC 2016


On Mon, Oct 03, 2016 at 08:19:08AM -0700, nickcooper-zhangtonghao wrote:
> The command "ovn-nbctl lrp-add" should not set the MAC address
> which length is invalid to logical router port. This patch also
> updates the ovn-nbctl tests.
> 
> Signed-off-by: nickcooper-zhangtonghao <nickcooper-zhangtonghao at opencloud.tech>

It's probably better to change this to use eth_addr_from_string().  That
function itself is not picky about trailing characters, so I'd consider
updating it to check.



More information about the dev mailing list