Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Introduce Custom Field for BMC Power Status in Netbox-sync #379

Open
sh0x opened this issue Mar 26, 2024 · 1 comment
Open

Proposal: Introduce Custom Field for BMC Power Status in Netbox-sync #379

sh0x opened this issue Mar 26, 2024 · 1 comment

Comments

@sh0x
Copy link

sh0x commented Mar 26, 2024

Issue

Currently, in Netbox-sync, the BMC power status is synchronized with the management status in Netbox. While Netbox's management status is designed for inventory provisioning purposes (Offline, Active, Planned, Staged, Failed, Inventory), it's being utilized by netbox-sync to represent the server power status.

https://github.com/bb-Ricardo/netbox-sync/blob/main/module/sources/check_redfish/import_inventory.py#L217

Proposal

I suggest implementing a custom field specifically for the BMC power status instead of repurposing the device management status field. This separation would maintain clarity and prevent the BMC power status from conflating with device management statuses.

Reasoning

By introducing a dedicated field for BMC power status, we ensure that both the server's operational state and its management status remain distinct and accurately represented within Netbox. This separation enhances clarity and avoids potential confusion or misinterpretation of device statuses.

Benefits

  1. Clarity: Users can easily differentiate between the server's power status and its management status, facilitating better understanding and management of devices.
  2. Flexibility: Having a custom field allows for future expansions or modifications specific to BMC power status without impacting other aspects of device management.
  3. Consistency: Adhering to Netbox's intended use of management status promotes consistency across the platform and aligns with established conventions.

Conclusion

By implementing a dedicated field for BMC power status, we can enhance the clarity and maintain the integrity of device management within Netbox, ensuring a more intuitive and efficient experience for users.

@bb-Ricardo
Copy link
Owner

Hi,

This sounds reasonable, will try to change this behavior as described.

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

No branches or pull requests

2 participants