Skip to content

feat(networking): add flavor to routers - #2135

Merged
hgw77 merged 10 commits into
masterfrom
hgw-network-flavors
Aug 26, 2026
Merged

feat(networking): add flavor to routers#2135
hgw77 merged 10 commits into
masterfrom
hgw-network-flavors

Conversation

@hgw77

@hgw77 hgw77 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Integrates Neutron Network Flavors into the router creation and management workflow in Elektra, allowing users to discover
and select flavors directly from the UI instead of requiring CLI access.

Changes Made

  • Service layer: Added NetworkingServices::Flavor module with flavors() and find_flavor() methods (graceful fallback on API error); included in NetworkingService
  • Model: Added Networking::Flavor model; added flavor_name transient attribute and VPNaaS AZ validation to Networking::Router
  • Router creation form: Added optional Network Flavor dropdown (filtered to L3_ROUTER_NAT, enabled only); immutable-flavor warning shown when a flavor is selected; Availability Zone field with dynamic required marker and VPNaaS hint; Internal Subnets field hidden when VPNaaS flavor is selected
  • Router edit form: Flavor field and info banner shown when router has a VPNaaS flavor; Internal Subnets hidden with explanation
  • Router detail view: Network Flavor shown in Overview tab (name, description, UUID); falls back to "None"
  • Router list view: Flavor badge with description tooltip; status rendered as colored badge (ACTIVE=green, ERROR=red, DOWN=grey)
  • JavaScript: handleFlavorChange() in router.js handles dynamic VPNaaS UI logic (AZ required marker, hint, internal subnets visibility, immutable warning)

Related Issues

Screenshots

image image image image

Checklist

  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have made corresponding changes to the documentation (if applicable).
  • My changes generate no new warnings or errors.

hodanoori
hodanoori previously approved these changes Aug 19, 2026
TilmanHaupt
TilmanHaupt previously approved these changes Aug 19, 2026
andypf
andypf previously approved these changes Aug 24, 2026
Comment thread plugins/networking/app/views/networking/routers/index.html.haml Outdated
@hgw77
hgw77 dismissed stale reviews from andypf, TilmanHaupt, and hodanoori via cbfd10a August 24, 2026 11:30
@hgw77
hgw77 merged commit 57c6660 into master Aug 26, 2026
12 checks passed
@hgw77
hgw77 deleted the hgw-network-flavors branch August 26, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants