Closed matt2210 closed 9 months ago
Same thing when i try to add ! like !185.171.x.x/24 :(
Hi,
That is very unusual. You can run the script with -l DEBUG2
to see what has been parsed from the config file. Maybe this helps.
Do you have a typo in the option name?
Hi,
I have check name of option is good permitted_subnets.
2024-01-31 18:12:33,321 - DEBUG: Config: source.my-redfish-example.enabled = True
2024-01-31 18:12:33,321 - DEBUG: Config: source.my-redfish-example.type = check_redfish
2024-01-31 18:12:33,322 - DEBUG: Config: source.my-redfish-example.inventory_file_path = /full/path/to/inventory/files
2024-01-31 18:12:33,322 - DEBUG: Config: source.my-redfish-example.permitted_subnets = None
2024-01-31 18:12:33,322 - DEBUG: Config: source.my-redfish-example.overwrite_host_name = False
2024-01-31 18:12:33,323 - DEBUG: Config: source.my-redfish-example.overwrite_power_supply_name = False
2024-01-31 18:12:33,323 - DEBUG: Config: source.my-redfish-example.overwrite_power_supply_attributes = True
2024-01-31 18:12:33,323 - DEBUG: Config: source.my-redfish-example.overwrite_interface_name = False
2024-01-31 18:12:33,324 - DEBUG: Config: source.my-redfish-example.overwrite_interface_attributes = True
2024-01-31 18:12:33,324 - DEBUG: Config: source.my-redfish-example.ip_tenant_inheritance_order = device, prefix
2024-01-31 18:12:33,324 - ERROR: Inventory file path '/full/path/to/inventory/files' not found.
2024-01-31 18:12:33,325 - ERROR: Inventory file path '/full/path/to/inventory/files' not readable.
2024-01-31 18:12:33,325 - INFO: Config option 'permitted_subnets' is undefined. No IP addresses will be populated to NetBox!
2024-01-31 18:12:33,325 - ERROR: Config validation failed. Exit!
Same issue There is my config permitted_subnets
Hi, can you try to use this config and let me know about the result? you might need to define the NetBox part to point to your local instance
[netbox]
api_token = XYZ
host_fqdn = netbox.test
[source/my-redfish-example]
type = check_redfish
inventory_file_path = /full/path/to/inventory/files
permitted_subnets = 185.171.20.0/24, 192.168.1.0/24, 163.3.3.0/24
thank you
Hi,
Eveything is working after adding ; at all option in redfish (im using vmware) ;)
Thanks for all they work perfectly ;)
Have a nice day Matt
Hi,
I'm trying to config settings.ini but when i put all my subnet used by my VM in permitted_subnets i got an error
INFO: Config option 'permitted_subnets' is undefined. No IP addresses will be populated to NetBox!
There is my permitted_subnets :
permitted_subnets = 185.171.X.X/24, 192.168.1.0/24, 163.X.X.X/24
Is it public subnet so i have remove numbers by X but is only /24 subnets
When i try to start with -l DEBUG3 i have all reply at HTTP/1.1 200 OK and at the end i have same error.
Thanks for you help Have a nice day. Matt