Skip to content

Commit

Permalink
initial L3 understack plugin setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Fencik committed Dec 3, 2024
1 parent a5e466c commit d14fcc8
Show file tree
Hide file tree
Showing 4 changed files with 2,034 additions and 911 deletions.
2 changes: 1 addition & 1 deletion components/neutron/aio-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ conf:
type_drivers: "vlan,local,understack_vxlan"
neutron:
DEFAULT:
service_plugins: "router,segments,port_forwarding"
service_plugins: "l3_understack,router,segments,port_forwarding"
# we don't want HA L3 routers. It's a Python value so we need to quote it in YAML.
l3_ha: "False"
# we aren't using availability zones so having calls attempt to add things to
Expand Down
20 changes: 20 additions & 0 deletions python/neutron-understack/neutron_understack/l3_service_plugin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from neutron_lib.services.base import ServicePluginBase
from neutron.db.l3_db import L3_NAT_db_mixin
from neutron_understack_mech import log_call


class UnderStackL3ServicePlugin(ServicePluginBase, L3_NAT_db_mixin):
def __init__(self):
super().__init__()

def get_plugin_type(self):
return "L3_ROUTER_NAT"

def get_plugin_description(self):
return "Understack L3 Service Plugin"

def create_router(self, context, router):
log_call("create_router", context)
router_dict = super().create_router(context,
router)
return router_dict
Loading

0 comments on commit d14fcc8

Please sign in to comment.