From de30c53d21752234d859568619e475276476e803 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 24 Aug 2017 13:15:32 -0400 Subject: [PATCH] Add net.*.bootable Provide a flag to indicate that a nic entry is meant to hold a bootable network interface, for purpose of holding a PXE detected mac. --- confluent_server/confluent/config/attributes.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/confluent_server/confluent/config/attributes.py b/confluent_server/confluent/config/attributes.py index 96204621..70cda9c2 100644 --- a/confluent_server/confluent/config/attributes.py +++ b/confluent_server/confluent/config/attributes.py @@ -305,6 +305,18 @@ node = { 'id.uuid': { 'description': 'The UUID of the node as presented in DMI.', }, + # For single interface mac collection, net.bootable suffices + # For multiple interface mac collection, we perhaps add an address field and use subnet affinity as a clue + # to disambiguate multiple addresses for external provisioning + # For internal provisioning, the UUID matters rather than the MAC, though subnet affinity may + # still be a factor to select the appropriate static config to send down. In such a case bonding + # is hopefully more likely as that's a bit easier. + # Start with the first case and only document that, the other thoughts can be future items if they turn up + 'net.bootable': { + 'type': bool, + 'description': 'Whether or not the indicated network interface is to be used for booting. This is used by ' + 'the discovery process to decide where to place the mac address of a detected PXE nic.', + }, 'net.ipv4_gateway': { 'description': 'The IPv4 gateway to use if applicable. As is the ' 'case for other net attributes, net.eth0.ipv4_gateway '