Bug 2151127

Summary: use mac to search interface table got error
Product: Red Hat Enterprise Linux Fast Datapath Reporter: mhou <mhou>
Component: openvswitchAssignee: Timothy Redaelli <tredaelli>
openvswitch sub component: other QA Contact: mhou <mhou>
Status: NEW --- Docs Contact:
Severity: medium    
Priority: unspecified CC: ctrautma, qding
Version: FDP 22.J   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mhou 2022-12-06 08:20:24 UTC
Description of problem:
Passing in the mac address as a string returns unexpected ":" parsing set of up to 1 strings

Version-Release number of selected component (if applicable):
5.14.0-204.rt14.205.el9.x86_64
openvswitch2.17-2.17.0-55.el9fdp.x86_64

How reproducible:100%


Steps to Reproduce:
1.# ovs-vsctl --columns=name find interface mac_in_use='ec:0d:9a:2f:b5:63'
ovs-vsctl: ec:0d:9a:2f:b5:63: unexpected ":" parsing set of up to 1 strings
# ovs-vsctl --columns=name find interface mac_in_use='ec\:0d\:9a\:2f\:b5\:63'
name                : ens2f1np1

Actual results:
The mac address is passed in as a string that requires additional escape characters

Expected results:
The mac address is passed in as a string without an escape character

Additional info: