Skip to content

Commit f16ad35

Browse files
committedDec 13, 2021
rename ofparse -> ovs_ofparse
Signed-off-by: Adrian Moreno <[email protected]>
1 parent a97d4b6 commit f16ad35

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ From the git checkout
1818
eval "$(ovs-dbg-complete)"
1919

2020
# Available tools
21-
## ofparse
21+
## ovs-ofparse
2222

2323
`ofparse` parses the output of commands such as `ovs-ofproto dump-flows` and
2424
prints the files in different outputs including json and html. It suports
2525
formatting and filtering.
2626

27-
ofparse --help
27+
ovs-ofparse --help
2828

2929
## ovs-lgrep
3030

‎bin/ofparse ‎bin/ovs-ofparse

File renamed without changes.

‎containers/k8s-ofparse/monitor.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ monitor() {
3636
ofparse_args="$ofparse_args -i ${node_name},${file}"
3737
done
3838

39-
cat > /usr/local/bin/k8s-ofparse <<EOF
39+
cat > /usr/local/bin/k8s-ovs-ofparse <<EOF
4040
#!/bin/bash
4141
4242
OFPARSE_ARGS="$ofparse_args"
4343
exec ofparse \$OFPARSE_ARGS "\$@"
4444
EOF
45-
chmod +x /usr/local/bin/k8s-ofparse
45+
chmod +x /usr/local/bin/k8s-ovs-ofparse
4646

4747
cat > /etc/motd <<EOF
4848
==============================
49-
k8s-ofparse
49+
k8s-ovs-ofparse
5050
==============================
5151
5252
The flows from the following nodes are being synchronized into files ({Node Name} ==> {File Path}):
@@ -59,7 +59,7 @@ EOF
5959
cat >> /etc/motd <<EOF
6060
6161
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
6363
6464
Please report bugs or RFEs to https://github.com/amorenoz/ovs-dbg
6565
@@ -69,7 +69,7 @@ EOF
6969
echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' >> /root/.bashrc
7070
echo 'export PAGER="less -r"' >> /root/.bashrc
7171
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
7373

7474
while sleep 15; do
7575
for node in "${!nodes[@]}"; do

‎docs/source/k8s-ofparse.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
===============================================
2-
k8s-ofparse: Online flow analysis in Kubernetes
3-
===============================================
1+
===================================================
2+
k8s-ovs-ofparse: Online flow analysis in Kubernetes
3+
===================================================
44

55
k8s-ofparse is essentially a container a Kubernetes deployment manifest.
66

@@ -61,7 +61,7 @@ Usage
6161
- ovn-worker ==> /tmp/k8s-ofparse/ovn-worker.flows
6262

6363
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
6565

6666
Please report bugs or RFEs to https://github.com/amorenoz/ovs-dbg
6767

‎extras/ofparse.completion.bash ‎extras/ovs-ofparse.completion.bash

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
_ofparse_completion() {
1+
_ovs_ofparse_completion() {
22
local IFS=$'\n'
33
local response
44

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)
66

77
for completion in $response; do
88
IFS=',' read type value <<< "$completion"
@@ -21,9 +21,9 @@ _ofparse_completion() {
2121
return 0
2222
}
2323

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
2626
}
2727

28-
_ofparse_completion_setup;
28+
_ovs_ofparse_completion_setup;
2929

‎setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
packages=find_packages(include=["ovs_dbg", "ovs_dbg.ofparse"]),
4545
setup_requires=setup_requirements,
4646
scripts=[
47-
"bin/ofparse",
47+
"bin/ovs-ofparse",
4848
"bin/ovs-lgrep",
4949
"bin/ovs-offline",
5050
"bin/ovs-dbg-complete",
@@ -54,7 +54,7 @@
5454
(
5555
"extras",
5656
[
57-
"extras/ofparse.completion.bash",
57+
"extras/ovs-ofparse.completion.bash",
5858
"extras/ovs-offline.completion.bash",
5959
"extras/ovs-lgrep.completion.bash",
6060
],

0 commit comments

Comments
 (0)
Please sign in to comment.