networking_baremetal.agent package¶
Submodules¶
networking_baremetal.agent.agent_config module¶
Configuration options for ironic-neutron-agent.
- networking_baremetal.agent.agent_config.list_opts()¶
Return a list of oslo_config options for config generation.
- Returns:
list of (group_name, options) tuples
- networking_baremetal.agent.agent_config.register_agent_opts(conf)¶
Register all agent configuration options.
- Parameters:
conf – oslo_config.cfg.ConfigOpts instance
- networking_baremetal.agent.agent_config.register_baremetal_agent_opts(conf)¶
Register baremetal agent configuration options (deprecated).
Prefer register_agent_opts() instead.
- Parameters:
conf – oslo_config.cfg.ConfigOpts instance
- networking_baremetal.agent.agent_config.register_l2vni_opts(conf)¶
Register L2VNI configuration options (deprecated).
Prefer register_agent_opts() instead.
- Parameters:
conf – oslo_config.cfg.ConfigOpts instance
networking_baremetal.agent.ironic_neutron_agent module¶
- class networking_baremetal.agent.ironic_neutron_agent.BaremetalNeutronAgent¶
Bases:
ServiceBase- cleanup_stale_agents()¶
Cleans up stale baremetal agents
This method identifies baremetal agents that are marked as inactive in the Neutron server and are not associated with any nodes in Ironic. It then deletes these stale agents.
- get_template_node_state(node_uuid)¶
- reset()¶
Reset service.
Called in case a service running in daemon mode receives SIGHUP.
- start()¶
Start service.
- stop(failure=False)¶
Stop service.
- wait()¶
Wait for service to complete.
- class networking_baremetal.agent.ironic_neutron_agent.HashRingMemberManagerNotificationEndpoint¶
Bases:
objectClass variables members and hashring is shared by all instances
- filter_rule = <oslo_messaging.notify.filter.NotificationFilter object>¶
- hashring = <tooz.hashring.HashRing object>¶
- info(ctxt, publisher_id, event_type, payload, metadata)¶
- members = []¶
- networking_baremetal.agent.ironic_neutron_agent.list_opts()¶
- networking_baremetal.agent.ironic_neutron_agent.main()¶
networking_baremetal.agent.l2vni_trunk_manager module¶
L2VNI Trunk Reconciliation Manager.
Manages trunk ports and subports for OVN network nodes to ensure only required VLANs are trunked to each chassis based on ha_chassis_group membership and network requirements.
Architecture: - One Neutron network per OVN ha_chassis_group for anchor port modeling - One shared subport anchor network for all trunk subports - Anchor ports (trunk parents) attach to ha_chassis_group networks - Subports signal VLAN bindings to ML2 switch plugins - Stateless reconciliation based on current OVN/Neutron state
- class networking_baremetal.agent.l2vni_trunk_manager.L2VNITrunkManager(neutron_client, ovn_nb_idl, ovn_sb_idl, ironic_client, member_manager=None, agent_id=None)¶
Bases:
objectManages L2VNI trunk ports and subports for network nodes.
- reconcile()¶
Main reconciliation entry point.
Performs stateless reconciliation of trunk infrastructure: 1. Ensure ha_chassis_group networks exist 2. Ensure subport anchor network exists 3. Discover/create trunk ports for chassis 4. Calculate required VLANs per chassis from OVN state 5. Reconcile subports to match requirements 6. Clean up unused infrastructure
networking_baremetal.agent.ovn_client module¶
OVN client connections for agent.
- networking_baremetal.agent.ovn_client.get_ovn_nb_idl()¶
Get OVN Northbound IDL connection.
- Returns:
OVN NB IDL instance
- networking_baremetal.agent.ovn_client.get_ovn_sb_idl()¶
Get OVN Southbound IDL connection.
- Returns:
OVN SB IDL instance