ironic.networking.manager module¶
Networking service manager for Ironic.
The networking service handles network-related operations for Ironic, providing RPC interfaces for configuring switch ports and network settings.
- class ironic.networking.manager.NetworkingManager(host, topic=None)[source]¶
Bases:
objectIronic Networking service manager.
- RPC_API_VERSION = '1.0'¶
- delete_lag(**kwargs)¶
- get_switches(**kwargs)¶
- init_host(admin_context=None)[source]¶
Initialize the networking service host.
- Parameters:
admin_context – admin context (unused but kept for compatibility)
- prepare_host()[source]¶
Prepare host for networking service initialization.
This method is called by the RPC service before starting the listener. Since networking host configuration is now handled in __init__, this method is a no-op.
- reset_port(**kwargs)¶
- target = <Target version=1.0>¶
- update_lag(**kwargs)¶
- update_port(**kwargs)¶
- ironic.networking.manager.validate_vlan_configuration(switch_id_arg_name='switch_id', operation_description='operation')[source]¶
Decorator to validate VLAN configuration against allowed/denied lists.
This decorator extracts native_vlan and allowed_vlans from method arguments and validates them against the switch’s VLAN configuration.
- Parameters:
switch_id_arg_name – Name of the argument containing the switch ID. For multi-switch operations, this should be the argument containing the list of switch IDs.
operation_description – Description of the operation for error messages.
- Returns:
Decorated function that applies VLAN validation.