Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1395746 Details for
Bug 1544903
Push image still failed, no route to host
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
check-sdn.sh
file_1544903.txt (text/plain), 1.79 KB, created by
Eric Paris
on 2018-02-14 02:29:51 UTC
(
hide
)
Description:
check-sdn.sh
Filename:
MIME Type:
Creator:
Eric Paris
Created:
2018-02-14 02:29:51 UTC
Size:
1.79 KB
patch
obsolete
>#!/bin/sh > >ret=0 >dir=$(mktemp -d) > >ovs-ofctl -O OpenFlow13 dump-flows br0 > $dir/flows > >sed -ne 's/.*table=10,.*tun_src=\([0-9.]*\).*/\1/p' $dir/flows | sort > $dir/accept >sed -ne 's/.*table=90,.*set_field:\([0-9.]*\).*/\1/p' $dir/flows | sort > $dir/send >grep table=111 $dir/flows | tr ',' '\n' | sed -ne 's/set_field:\([0-9.]*\).*/\1/p' | sort > $dir/vxlan > >dup=$(uniq -c $dir/accept | awk '$1 > 1 { print $2; }') >if [[ -n "$dup" ]]; then > ret=1 > echo duplicate accept flows: > for ip in $dup; do > grep "table=10,.*tun_src=$ip," $dir/flows > done > echo "" >fi >uniq $dir/accept > $dir/acceptu > >dup=$(uniq -c $dir/send | awk '$1 > 1 { print $2; }') >if [[ -n "$dup" ]]; then > ret=1 > echo duplicate send flows: > for ip in $dup; do > grep "table=90,.*set_field:$ip-" $dir/flows > done > echo "" >fi >uniq $dir/send > $dir/sendu > >dup=$(uniq -c $dir/vxlan | awk '$1 > 1 { print $2; }') >if [[ -n "$dup" ]]; then > ret=1 > echo duplicate vxlan IPs: $dup > echo "" >fi >uniq $dir/vxlan > $dir/vxlanu > >extra=$(comm -23 $dir/acceptu $dir/sendu) >if [[ -n "$extra" ]]; then > ret=1 > echo in accept but not send: $extra >fi >extra=$(comm -23 $dir/acceptu $dir/vxlanu) >if [[ -n "$extra" ]]; then > ret=1 > echo in accept but not vxlan: $extra >fi >extra=$(comm -23 $dir/sendu $dir/acceptu) >if [[ -n "$extra" ]]; then > ret=1 > echo in send but not accept: $extra >fi >extra=$(comm -23 $dir/sendu $dir/vxlanu) >if [[ -n "$extra" ]]; then > ret=1 > echo in send but not vxlan: $extra >fi >extra=$(comm -23 $dir/vxlanu $dir/acceptu) >if [[ -n "$extra" ]]; then > ret=1 > echo in vxlan but not accept: $extra >fi >extra=$(comm -23 $dir/vxlanu $dir/sendu) >if [[ -n "$extra" ]]; then > ret=1 > echo in vxlan but not send: $extra >fi > >exit $ret
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1544903
: 1395746 |
1395747