Message ID | 20210702213554.2804370-1-blp@ovn.org |
---|---|
State | Accepted |
Headers | show |
Series | [ovs-dev,1/2] ovs-sandbox: Make it slightly more tailored for OVN. | expand |
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | warning | apply and check: warning |
ovsrobot/github-robot | fail | github build: failed |
Bleep bloop. Greetings Ben Pfaff, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 107 characters long (recommended limit is 79) WARNING: Line has non-spaces leading whitespace #75 FILE: tutorial/ovs-sandbox:398: echo >&2 "OVN northbound database source $ovnnb_source not found, please check --srcdir or --ovnnb-source" WARNING: Line has non-spaces leading whitespace #76 FILE: tutorial/ovs-sandbox:399: exit 1 WARNING: Line is 107 characters long (recommended limit is 79) WARNING: Line has non-spaces leading whitespace #80 FILE: tutorial/ovs-sandbox:403: echo >&2 "OVN southbound database source $ovnsb_source not found, please check --srcdir or --ovnsb-source" WARNING: Line has non-spaces leading whitespace #81 FILE: tutorial/ovs-sandbox:404: exit 1 WARNING: Line has non-spaces leading whitespace #85 FILE: tutorial/ovs-sandbox:408: echo >&2 'source directory not found, please use --srcdir' WARNING: Line has non-spaces leading whitespace #86 FILE: tutorial/ovs-sandbox:409: exit 1 WARNING: Line has non-spaces leading whitespace #90 FILE: tutorial/ovs-sandbox:413: echo >&2 'source directory not found, please use --srcdir' WARNING: Line has non-spaces leading whitespace #91 FILE: tutorial/ovs-sandbox:414: exit 1 WARNING: Line has non-spaces leading whitespace #95 FILE: tutorial/ovs-sandbox:418: echo >&2 'source directory not found, please use --srcdir' WARNING: Line has non-spaces leading whitespace #96 FILE: tutorial/ovs-sandbox:419: exit 1 Lines checked: 118, Warnings: 12, Errors: 0 Please check this out. If you feel there has been an error, please email aconole@redhat.com Thanks, 0-day Robot
On Fri, Jul 2, 2021 at 5:36 PM Ben Pfaff <blp@ovn.org> wrote: > > This code still thought to some extent that it was in the OVS project. > > Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Numan Siddique <numans@ovn.org> Numan > --- > tutorial/ovs-sandbox | 69 ++++++++++++++++++++------------------------ > 1 file changed, 32 insertions(+), 37 deletions(-) > > diff --git a/tutorial/ovs-sandbox b/tutorial/ovs-sandbox > index 7e526b1ddfb4..740e5cb1eb76 100755 > --- a/tutorial/ovs-sandbox > +++ b/tutorial/ovs-sandbox > @@ -71,7 +71,6 @@ ovssrcdir= > schema= > installed=false > built=false > -ovn=true > ddlog=false > ddlog_record=true > ic_sb_schema= > @@ -117,12 +116,13 @@ for option; do > dashdash=yes ;; > -h|--help) > cat <<EOF > -ovs-sandbox, for starting a sandboxed dummy Open vSwitch environment > +ovs-sandbox, for starting a sandboxed dummy OVN environment > usage: $0 [OPTION...] > > -If you run ovs-sandbox from an OVS build directory, it uses the OVS that > -you built. Otherwise, if you have an installed Open vSwitch, it uses > -the installed version. > +The usual way to start this is via "make sandbox". If you do that, then > +the Makefile will automatically pass in the configured OVS source and > +build directories. You can pass extra options via SANDBOXFLAGS, e.g.: > + make sandbox SANDBOXFLAGS='...' > > These options force ovs-sandbox to use a particular OVN and OVS build: > -b, --builddir=DIR specify OVN build directory > @@ -393,32 +393,30 @@ if $built; then > echo >&2 'source directory not found, please use --srcdir' > exit 1 > fi > - if $ovn; then > - : ${ovnnb_source:=$srcdir/ovn-nb.ovsschema} > - if test ! -e "$ovnnb_source"; then > - echo >&2 "OVN northbound database source $ovnnb_source not found, please check --srcdir or --ovnnb-source" > - exit 1 > - fi > - : ${ovnsb_source:=$srcdir/ovn-sb.ovsschema} > - if test ! -e "$ovnsb_source"; then > - echo >&2 "OVN southbound database source $ovnsb_source not found, please check --srcdir or --ovnsb-source" > - exit 1 > - fi > - ic_sb_schema=$srcdir/ovn-ic-sb.ovsschema > - if test ! -e "$ic_sb_schema"; then > - echo >&2 'source directory not found, please use --srcdir' > - exit 1 > - fi > - ic_nb_schema=$srcdir/ovn-ic-nb.ovsschema > - if test ! -e "$ic_nb_schema"; then > - echo >&2 'source directory not found, please use --srcdir' > - exit 1 > - fi > - vtep_schema=$ovssrcdir/vtep/vtep.ovsschema > - if test ! -e "$vtep_schema"; then > - echo >&2 'source directory not found, please use --srcdir' > - exit 1 > - fi > + : ${ovnnb_source:=$srcdir/ovn-nb.ovsschema} > + if test ! -e "$ovnnb_source"; then > + echo >&2 "OVN northbound database source $ovnnb_source not found, please check --srcdir or --ovnnb-source" > + exit 1 > + fi > + : ${ovnsb_source:=$srcdir/ovn-sb.ovsschema} > + if test ! -e "$ovnsb_source"; then > + echo >&2 "OVN southbound database source $ovnsb_source not found, please check --srcdir or --ovnsb-source" > + exit 1 > + fi > + ic_sb_schema=$srcdir/ovn-ic-sb.ovsschema > + if test ! -e "$ic_sb_schema"; then > + echo >&2 'source directory not found, please use --srcdir' > + exit 1 > + fi > + ic_nb_schema=$srcdir/ovn-ic-nb.ovsschema > + if test ! -e "$ic_nb_schema"; then > + echo >&2 'source directory not found, please use --srcdir' > + exit 1 > + fi > + vtep_schema=$ovssrcdir/vtep/vtep.ovsschema > + if test ! -e "$vtep_schema"; then > + echo >&2 'source directory not found, please use --srcdir' > + exit 1 > fi > > # Put built tools early in $PATH. > @@ -683,12 +681,9 @@ cat <<EOF > > > ---------------------------------------------------------------------- > -You are running in a dummy Open vSwitch environment. You can use > -ovs-vsctl, ovs-ofctl, ovs-appctl, and other tools to work with the > -dummy switch. > - > -This environment also has the OVN daemons and databases enabled. > -You can use ovn-nbctl and ovn-sbctl to interact with the OVN databases. > +You are running in a dummy Open vSwitch and OVN environment. You can > +use ovn-nbctl, ovn-sbctl, ovs-vsctl, ovs-ofctl, ovs-appctl, and other > +tools to work with the dummy runtimes. > $backup_note > EOF > cat <<EOF > -- > 2.31.1 > > _______________________________________________ > dev mailing list > dev@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev >
diff --git a/tutorial/ovs-sandbox b/tutorial/ovs-sandbox index 7e526b1ddfb4..740e5cb1eb76 100755 --- a/tutorial/ovs-sandbox +++ b/tutorial/ovs-sandbox @@ -71,7 +71,6 @@ ovssrcdir= schema= installed=false built=false -ovn=true ddlog=false ddlog_record=true ic_sb_schema= @@ -117,12 +116,13 @@ for option; do dashdash=yes ;; -h|--help) cat <<EOF -ovs-sandbox, for starting a sandboxed dummy Open vSwitch environment +ovs-sandbox, for starting a sandboxed dummy OVN environment usage: $0 [OPTION...] -If you run ovs-sandbox from an OVS build directory, it uses the OVS that -you built. Otherwise, if you have an installed Open vSwitch, it uses -the installed version. +The usual way to start this is via "make sandbox". If you do that, then +the Makefile will automatically pass in the configured OVS source and +build directories. You can pass extra options via SANDBOXFLAGS, e.g.: + make sandbox SANDBOXFLAGS='...' These options force ovs-sandbox to use a particular OVN and OVS build: -b, --builddir=DIR specify OVN build directory @@ -393,32 +393,30 @@ if $built; then echo >&2 'source directory not found, please use --srcdir' exit 1 fi - if $ovn; then - : ${ovnnb_source:=$srcdir/ovn-nb.ovsschema} - if test ! -e "$ovnnb_source"; then - echo >&2 "OVN northbound database source $ovnnb_source not found, please check --srcdir or --ovnnb-source" - exit 1 - fi - : ${ovnsb_source:=$srcdir/ovn-sb.ovsschema} - if test ! -e "$ovnsb_source"; then - echo >&2 "OVN southbound database source $ovnsb_source not found, please check --srcdir or --ovnsb-source" - exit 1 - fi - ic_sb_schema=$srcdir/ovn-ic-sb.ovsschema - if test ! -e "$ic_sb_schema"; then - echo >&2 'source directory not found, please use --srcdir' - exit 1 - fi - ic_nb_schema=$srcdir/ovn-ic-nb.ovsschema - if test ! -e "$ic_nb_schema"; then - echo >&2 'source directory not found, please use --srcdir' - exit 1 - fi - vtep_schema=$ovssrcdir/vtep/vtep.ovsschema - if test ! -e "$vtep_schema"; then - echo >&2 'source directory not found, please use --srcdir' - exit 1 - fi + : ${ovnnb_source:=$srcdir/ovn-nb.ovsschema} + if test ! -e "$ovnnb_source"; then + echo >&2 "OVN northbound database source $ovnnb_source not found, please check --srcdir or --ovnnb-source" + exit 1 + fi + : ${ovnsb_source:=$srcdir/ovn-sb.ovsschema} + if test ! -e "$ovnsb_source"; then + echo >&2 "OVN southbound database source $ovnsb_source not found, please check --srcdir or --ovnsb-source" + exit 1 + fi + ic_sb_schema=$srcdir/ovn-ic-sb.ovsschema + if test ! -e "$ic_sb_schema"; then + echo >&2 'source directory not found, please use --srcdir' + exit 1 + fi + ic_nb_schema=$srcdir/ovn-ic-nb.ovsschema + if test ! -e "$ic_nb_schema"; then + echo >&2 'source directory not found, please use --srcdir' + exit 1 + fi + vtep_schema=$ovssrcdir/vtep/vtep.ovsschema + if test ! -e "$vtep_schema"; then + echo >&2 'source directory not found, please use --srcdir' + exit 1 fi # Put built tools early in $PATH. @@ -683,12 +681,9 @@ cat <<EOF ---------------------------------------------------------------------- -You are running in a dummy Open vSwitch environment. You can use -ovs-vsctl, ovs-ofctl, ovs-appctl, and other tools to work with the -dummy switch. - -This environment also has the OVN daemons and databases enabled. -You can use ovn-nbctl and ovn-sbctl to interact with the OVN databases. +You are running in a dummy Open vSwitch and OVN environment. You can +use ovn-nbctl, ovn-sbctl, ovs-vsctl, ovs-ofctl, ovs-appctl, and other +tools to work with the dummy runtimes. $backup_note EOF cat <<EOF
This code still thought to some extent that it was in the OVS project. Signed-off-by: Ben Pfaff <blp@ovn.org> --- tutorial/ovs-sandbox | 69 ++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 37 deletions(-)