File tree 6 files changed +18
-18
lines changed
6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ From the git checkout
18
18
eval "$(ovs-dbg-complete)"
19
19
20
20
# Available tools
21
- ## ofparse
21
+ ## ovs- ofparse
22
22
23
23
` ofparse ` parses the output of commands such as ` ovs-ofproto dump-flows ` and
24
24
prints the files in different outputs including json and html. It suports
25
25
formatting and filtering.
26
26
27
- ofparse --help
27
+ ovs- ofparse --help
28
28
29
29
## ovs-lgrep
30
30
File renamed without changes.
Original file line number Diff line number Diff line change @@ -36,17 +36,17 @@ monitor() {
36
36
ofparse_args=" $ofparse_args -i ${node_name} ,${file} "
37
37
done
38
38
39
- cat > /usr/local/bin/k8s-ofparse << EOF
39
+ cat > /usr/local/bin/k8s-ovs- ofparse << EOF
40
40
#!/bin/bash
41
41
42
42
OFPARSE_ARGS="$ofparse_args "
43
43
exec ofparse \$ OFPARSE_ARGS "\$ @"
44
44
EOF
45
- chmod +x /usr/local/bin/k8s-ofparse
45
+ chmod +x /usr/local/bin/k8s-ovs- ofparse
46
46
47
47
cat > /etc/motd << EOF
48
48
==============================
49
- k8s-ofparse
49
+ k8s-ovs- ofparse
50
50
==============================
51
51
52
52
The flows from the following nodes are being synchronized into files ({Node Name} ==> {File Path}):
59
59
cat >> /etc/motd << EOF
60
60
61
61
You can use "ofparse -i {filename} ..." to look at any individual node
62
- Also, you can use "k8s-ofparse ..." to look at all the nodes
62
+ Also, you can use "k8s-ovs- ofparse ..." to look at all the nodes
63
63
64
64
Please report bugs or RFEs to https://github.com/amorenoz/ovs-dbg
65
65
69
69
echo ' [ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' >> /root/.bashrc
70
70
echo ' export PAGER="less -r"' >> /root/.bashrc
71
71
echo ' eval "$(ovs-dbg-complete)"' >> /root/.bashrc
72
- echo ' eval "complete -o nosort -F _ofparse_completion k8s-ofparse"' >> /root/.bashrc # apply same autocomplete to k8s-ofparse
72
+ echo ' eval "complete -o nosort -F _ofparse_completion k8s-ovs- ofparse"' >> /root/.bashrc # apply same autocomplete to k8s-ofparse
73
73
74
74
while sleep 15; do
75
75
for node in " ${! nodes[@]} " ; do
Original file line number Diff line number Diff line change 1
- ===============================================
2
- k8s-ofparse: Online flow analysis in Kubernetes
3
- ===============================================
1
+ ===================================================
2
+ k8s-ovs- ofparse: Online flow analysis in Kubernetes
3
+ ===================================================
4
4
5
5
k8s-ofparse is essentially a container a Kubernetes deployment manifest.
6
6
61
61
- ovn-worker ==> /tmp/k8s-ofparse/ovn-worker.flows
62
62
63
63
You can use "ofparse -i {filename} ..." to look at any individual node
64
- Also, you can use "k8s-ofparse ..." to look at all the nodes
64
+ Also, you can use "k8s-ovs- ofparse ..." to look at all the nodes
65
65
66
66
Please report bugs or RFEs to https://github.com/amorenoz/ovs-dbg
67
67
Original file line number Diff line number Diff line change 1
- _ofparse_completion () {
1
+ _ovs_ofparse_completion () {
2
2
local IFS=$' \n '
3
3
local response
4
4
5
- response=$( env COMP_WORDS=" ${COMP_WORDS[*]} " COMP_CWORD=$COMP_CWORD _OFPARSE_COMPLETE =bash_complete $1 )
5
+ response=$( env COMP_WORDS=" ${COMP_WORDS[*]} " COMP_CWORD=$COMP_CWORD _OVS_OFPARSE_COMPLETE =bash_complete $1 )
6
6
7
7
for completion in $response ; do
8
8
IFS=' ,' read type value <<< " $completion"
@@ -21,9 +21,9 @@ _ofparse_completion() {
21
21
return 0
22
22
}
23
23
24
- _ofparse_completion_setup () {
25
- complete -o nosort -F _ofparse_completion ofparse
24
+ _ovs_ofparse_completion_setup () {
25
+ complete -o nosort -F _ovs_ofparse_completion ovs- ofparse
26
26
}
27
27
28
- _ofparse_completion_setup ;
28
+ _ovs_ofparse_completion_setup ;
29
29
Original file line number Diff line number Diff line change 44
44
packages = find_packages (include = ["ovs_dbg" , "ovs_dbg.ofparse" ]),
45
45
setup_requires = setup_requirements ,
46
46
scripts = [
47
- "bin/ofparse" ,
47
+ "bin/ovs- ofparse" ,
48
48
"bin/ovs-lgrep" ,
49
49
"bin/ovs-offline" ,
50
50
"bin/ovs-dbg-complete" ,
54
54
(
55
55
"extras" ,
56
56
[
57
- "extras/ofparse.completion.bash" ,
57
+ "extras/ovs- ofparse.completion.bash" ,
58
58
"extras/ovs-offline.completion.bash" ,
59
59
"extras/ovs-lgrep.completion.bash" ,
60
60
],
You can’t perform that action at this time.
0 commit comments