-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Milan Fencik
committed
Dec 3, 2024
1 parent
a5e466c
commit d14fcc8
Showing
4 changed files
with
2,034 additions
and
911 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
python/neutron-understack/neutron_understack/l3_service_plugin.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.