Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix grep matching device in routes #1986

Merged
merged 1 commit into from
Oct 25, 2022
Merged

Conversation

zhangzujian
Copy link
Member

@zhangzujian zhangzujian commented Oct 25, 2022

What type of this PR

  • Bug fixes

Which issue(s) this PR fixes:

Fix incorrect grep matching introduced in #1983 :

[root@k8s ~]# echo '114.114.114.114 via 192.168.152.1 dev enp1s0 src 192.168.155.30 uid 0' | grep -oE 'dev [^\s]+' | awk '{print $2}'
enp1
[root@k8s ~]# echo '114.114.114.114 via 192.168.152.1 dev enp1s0 src 192.168.155.30 uid 0' | grep -oE 'dev .+' | awk '{print $2}'
enp1s0

@zhangzujian zhangzujian added bug Something isn't working need backport labels Oct 25, 2022
@zhangzujian zhangzujian marked this pull request as ready for review October 25, 2022 04:59
@zhangzujian zhangzujian merged commit 892aa75 into kubeovn:master Oct 25, 2022
@zhangzujian zhangzujian deleted the fix-grep branch October 25, 2022 05:39
zhangzujian added a commit that referenced this pull request Oct 25, 2022
zhangzujian added a commit that referenced this pull request Oct 25, 2022
zhangzujian added a commit that referenced this pull request Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need backport
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants