<div dir="ltr">Hi,<div>The fake_extension is used only in unit tests to test the extension framework, i.e. :</div><div><a href="https://opendev.org/openstack/neutron/src/branch/master/neutron/tests/unit/plugins/ml2/drivers/ext_test.py#L37">https://opendev.org/openstack/neutron/src/branch/master/neutron/tests/unit/plugins/ml2/drivers/ext_test.py#L37</a><br></div><div><br></div><div>If you would like to write an API extension check neutron-lib/api/definitions/ (and you can find the extensions "counterpart" under neutron/extensions in neutron repository)</div><div><br></div><div>You can also check other Networking projects like networking-bgvpn, neutron-dynamic-routing to have examples of API extensions.</div><div>If you have an extension under neutron/extensions and there's somebody who uses it (see [1]) you will see it is loaded in neutron servers logs (something like this: "Loaded extension: address-group") and you can find it in the output of openstack extension list --network</div><div><br></div><div>[1]: <a href="https://opendev.org/openstack/neutron/src/branch/master/neutron/plugins/ml2/plugin.py#L200">https://opendev.org/openstack/neutron/src/branch/master/neutron/plugins/ml2/plugin.py#L200</a></div><div><br></div><div>Best wishes</div><div>Lajos Katona</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Igor Zhukov <<a href="mailto:fsb4000@yandex.ru">fsb4000@yandex.ru</a>> ezt írta (időpont: 2022. aug. 22., H, 19:41):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all!<br>
Sorry for a complete noob question but I can't figure it out 😿<br>
So if I want to add Fake ML2 extension what should I do?<br>
I have neutron server installed and I have the file: <a href="https://github.com/openstack/neutron/blob/master/neutron/tests/unit/plugins/ml2/extensions/fake_extension.py" rel="noreferrer" target="_blank">https://github.com/openstack/neutron/blob/master/neutron/tests/unit/plugins/ml2/extensions/fake_extension.py</a><br>
How to configure neutron server, where should I put the file, should I create another files? How can I test that it works?<br>
<br>
</blockquote></div>