From 017a098455ee7b0ad0217e84aa613d396eebd032 Mon Sep 17 00:00:00 2001 From: yangjianfeng <yjf1970231893@gmail.com> Date: Mon, 27 Dec 2021 16:28:53 +0800 Subject: [PATCH] Add ndp_proxy to devstack plugin This commit adds possibility to configure L3 ndp_proxy service plugin and l3 extension with devstack plugin. Change-Id: I41713b1cfbf55b0b0e752904c4aea06fe0a00e10 Partial-Bug: #1877301 --- devstack/lib/l3_ndp_proxy | 4 ++++ devstack/plugin.sh | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 devstack/lib/l3_ndp_proxy diff --git a/devstack/lib/l3_ndp_proxy b/devstack/lib/l3_ndp_proxy new file mode 100644 index 00000000000..35ca56d9ab1 --- /dev/null +++ b/devstack/lib/l3_ndp_proxy @@ -0,0 +1,4 @@ +function configure_l3_ndp_proxy { + neutron_service_plugin_class_add "ndp_proxy" + plugin_agent_add_l3_agent_extension "ndp_proxy" +} diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 21b3c1c6cc7..8a4a2dec623 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -7,6 +7,7 @@ source $LIBDIR/l2_agent source $LIBDIR/l2_agent_sriovnicswitch source $LIBDIR/l3_agent source $LIBDIR/l3_conntrack_helper +source $LIBDIR/l3_ndp_proxy source $LIBDIR/ml2 source $LIBDIR/network_segment_range source $LIBDIR/segments @@ -92,6 +93,9 @@ if [[ "$1" == "stack" ]]; then if is_service_enabled q-conntrack-helper neutron-conntrack-helper; then configure_l3_conntrack_helper fi + if is_service_enabled q-ndp-proxy neutron-ndp-proxy; then + configure_l3_ndp_proxy + fi configure_l3_agent fi if [ $NEUTRON_CORE_PLUGIN = ml2 ]; then