8 Commits

Author SHA1 Message Date
Flavio Fernandes
ee75371df4 [OVN] Updates to tools/migrate_names.txt
Updates to tools/migrate_names.txt to correctly represent
mapping between neutron and networking-ovn for metadata
agent.

Change-Id: I52f4d20c7190490b707a08e0f7dd06ccd6f43f69
2020-12-14 16:44:40 -05:00
Flavio Fernandes
3cae952b72 [OVN] Updates to tools/migrate_names.txt
Updates to tools/migrate_names.txt to correctly represent
mapping between neutron and networking-ovn.

networking_ovn/cmd/neutron_ovn_db_sync_util.py  neutron/cmd/ovn/neutron_ovn_db_sync_util.py
networking_ovn/tests/unit/cmd/test_neutron_ovn_db_sync_util.py  neutron/tests/unit/cmd/ovn/test_neutron_ovn_db_sync_util.py
networking_ovn/tests/unit/l3/test_l3_ovn.py  neutron/tests/unit/services/ovn_l3/test_plugin.py
networking_ovn/tests/unit/l3/test_l3_ovn_scheduler.py  neutron/tests/unit/scheduler/test_l3_ovn_scheduler.py

Change-Id: I66851f9bc4177a1d667303bc1ec1c6e7ba7a7e47
2020-09-14 18:36:06 +00:00
Flavio Fernandes
1d13b20c94 [OVN] Updates to tools/migrate_names.txt
Updates to tools/migrate_names.txt to correctly represent
mapping between neutron and networking-ovn.

Change-Id: I4a85391b6b6422b66875f23bd9f93216be0bd087
2020-09-05 07:24:46 -04:00
Lucas Alvares Gomes
68ec29abf0 [OVN] Use the OVN DevStack module
The DevStack module for OVN has now been moved to the DevStack repository,
this patch is deletes it from the Neutron repository.

Depends-On: https://review.opendev.org/#/c/748140/
Change-Id: I2c30b8130525380234d767a7cb46f9bcca2a0d6b
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
2020-08-26 10:09:28 +01:00
Flavio Fernandes
e3e1d994d8 [OVN] Updates to tools/migrate_names.txt
Updates to tools/migrate_names.txt to correctly represent
mapping between neutron and networking-ovn.

Change-Id: I76562302119c6727a78bc72c4cf5346b3b8befe6
2020-06-20 19:41:54 +00:00
Flavio Fernandes
132261aa70 [OVN] Updates to tools/migrate_names.txt
Updates to tools/migrate_names.txt to correctly represent
mapping between neutron and networking-ovn.

networking_ovn/common/ovn_client.py     neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
networking_ovn/common/acl.py            neutron/common/ovn/acl.py
doc/source/contributor/design           doc/source/contributor/internals/ovn

Change-Id: Ib8973ee96431815377a36f85e2bef0ef87e96ca1
2020-05-29 16:00:15 -04:00
Flavio Fernandes
933049f529 [OVN] Updates to tools/migrate_names.txt
Updates to tools/migrate_names.txt to correctly represent
mapping between neutron and networking-ovn.

networking_ovn/ovsdb/commands.py        neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/commands.py
networking_ovn/ovsdb/impl_idl_ovn.py    neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/impl_idl_ovn.py
networking_ovn/ovsdb/ovn_api.py         neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/api.py
networking_ovn/ovsdb/ovsdb_monitor.py   neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py
networking_ovn/ovsdb/worker.py          neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/worker.py

Change-Id: Icc4a9da85e69560c8980f75bcad44564e6f4906e
2020-03-10 22:15:44 +00:00
Flavio Fernandes
303937f3ae [OVN] scripts for networking-ovn code migration
In an effort to help on migrating changes from neutron to networking-ovn,
these 3 scripts are being introduced under tools.

Also adding documentation about these under OVN folder.

1) files_in_patch.py
Use this to show files that are changed in a patch file.

   $ # Make a patch to use as example
   $ git show > /tmp/commit.patch

   $ ./tools/files_in_patch.py /tmp/commit.patch | grep .py
   tools/download_gerrit_change.py
   tools/files_in_patch.py
   tools/migrate_names.py

2) download_gerrit_change.py
Given a gerrit change id, it will fetch the latest patchset of the change
from review.opendev.org as a patch file.

   $ ./tools/download_gerrit_change.py --help
   Usage: download_gerrit_change.py [OPTIONS] GERRIT_CHANGE

   Options:
     -o, --output_patch TEXT  Output patch file  [default: stdout]
     -g, --gerrit_url TEXT    The url to Gerrit server  [default:
                              https://review.opendev.org/]
     -t, --timeout INTEGER    Timeout, in seconds  [default: 10]
     --help                   Show this message and exit.

   $ ./tools/download_gerrit_change.py 698863 -o /tmp/change.patch
   $ ./tools/files_in_patch.py /tmp/change.patch
   networking_ovn/ml2/mech_driver.py
   networking_ovn/ml2/trunk_driver.py
   networking_ovn/tests/unit/ml2/test_mech_driver.py
   networking_ovn/tests/unit/ml2/test_trunk_driver.py

3) migrate_names.py
Use this tool to modify the name of the files in a patchfile so it can
be converted to/from the legacy networking-ovn and neutron repositories.

   $ ./tools/migrate_names.py --help
   Usage: migrate_names.py [OPTIONS]

   Options:
     -i, --input_patch TEXT    input_patch patch file or gerrit change
     -o, --output_patch TEXT   Output patch file. Default: stdout
     -m, --mapfile PATH        Data file that specifies mapping to be applied to
                               input  [default: /home/user/openstack/neutron.git
                               /tools/migrate_names.txt]
     --reverse / --no-reverse  Map filenames from networking-ovn to Neutron repo
     --help                    Show this message and exit.
   $ ./tools/migrate_names.py -i 701646 > /tmp/ovn_change.patch
   $ ./tools/migrate_names.py -o /tmp/reverse.patch -i /tmp/ovn_change.patch --reverse
   $ diff /tmp/reverse.patch /tmp/ovn_change.patch | grep .py
   < --- a/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py
   < +++ b/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py
   > --- a/networking_ovn/ml2/mech_driver.py
   > +++ b/networking_ovn/ml2/mech_driver.py
   <... snip ...>

   $ ./tools/files_in_patch.py /tmp/ovn_change.patch
   networking_ovn/ml2/mech_driver.py
   networking_ovn/ml2/trunk_driver.py
   networking_ovn/tests/unit/ml2/test_mech_driver.py
   networking_ovn/tests/unit/ml2/test_trunk_driver.py

Change-Id: I17904c996e1357f7292d25aab4d448edb052f44c
Related-Blueprint: neutron-ovn-merge
2020-01-26 20:19:43 +00:00