-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from sdgtt/dl-no-os
downloader: update no-os file downloader
- Loading branch information
Showing
7 changed files
with
300 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,217 @@ | ||
# This file is used to generate questions for configuration file generation | ||
# Here is the structure | ||
# <section>-config: | ||
# field_X: | ||
# name: <field name> | ||
# default: <default option> (Optional) | ||
# help: <question asked user> | ||
# options: <list of options> (Optional) | ||
# optional: <False,True,depends> (depends is used when its a dependent property) | ||
# requires: <answer needed>:<field name of fields depending on this one,second field name> (Optional) | ||
# netbox_field: <equivalent netbox object attribute> | ||
|
||
board-config: | ||
field_1: | ||
name: board-name | ||
default: max32650_adxl355 | ||
help: "Project name commonly the daughter board connected to an RPI-based carrier" | ||
optional: False | ||
netbox_field: devices.name | ||
field_2: | ||
name: carrier | ||
default: Maxim | ||
help: "Carrier board name" | ||
optional: True | ||
netbox_field: devices.custom_fields.device_carrier | ||
field_3: | ||
name: daughter | ||
help: "Daugther board name" | ||
optional: True | ||
netbox_field: devices.custom_fields.device_daughter | ||
field_4: | ||
name: monitoring-interface | ||
default: uart | ||
help: "Select monitoring interface" | ||
options: [uart, netconsole] | ||
optional: True | ||
netbox_field: devices.custom_fields.monitoring_interface | ||
field_5: | ||
name: example | ||
default: iio_example | ||
help: "Select example to load to target" | ||
optional: False | ||
netbox_field: devices.custom_fields.example | ||
network-config: | ||
field_1: | ||
name: dutip | ||
default: 192.168.10.2 | ||
help: "IP address of development board" | ||
optional: False | ||
netbox_field: devices.interfaces.mgmt.ip.address | ||
field_2: | ||
name: dhcp | ||
help: "DHCP network to development board (False assumes static)" | ||
optional: True | ||
options: ["True", "False"] | ||
requires: False:nic,nicip | ||
netbox_field: devices.interfaces.mgmt.custom_fields.dhcp | ||
field_3: | ||
name: nic | ||
default: eth0 | ||
help: "NIC used to talk to development board" | ||
optional: depends | ||
callback: get_nics | ||
netbox_field: devices.interfaces.mgmt.label | ||
field_4: | ||
name: nicip | ||
default: 192.168.10.1 | ||
help: "NIC connected to development board ip address" | ||
optional: depends | ||
netbox_field: devices.interfaces.mgmt.custom_fields.nicip | ||
field_5: | ||
name: dutusername | ||
default: analog | ||
help: "Username to access Device" | ||
optional: True | ||
netbox_field: devices.custom_fields.username | ||
field_6: | ||
name: dutpassword | ||
default: analog | ||
help: "Password associated with the username." | ||
optional: True | ||
netbox_field: devices.custom_fields.password | ||
pdu-config: | ||
field_1: | ||
name: pdu_type | ||
default: cyberpower | ||
help: "PDU type" | ||
options: [cyberpower, vesync] | ||
optional: True | ||
requires: vesync:username,password | ||
netbox_field: devices.power_ports.input.pdus[0].device_type.manufacturer.slug | ||
field_2: | ||
name: pduip | ||
default: 192.168.30.2 | ||
help: "IP address of PDU" | ||
optional: True | ||
netbox_field: devices.power_ports.input.pdus[0].primary_ip.address | ||
field_3: | ||
name: outlet | ||
default: 1 | ||
help: "Outlet number on PDU for dev board" | ||
optional: True | ||
type: int | ||
netbox_field: devices.power_ports.input.connected_endpoint.outlet | ||
field_4: | ||
name: username | ||
default: "username" | ||
help: "Username needed for login (only need for vesync so far)" | ||
optional: depends | ||
netbox_field: devices.power_ports.input.pdus[0].custom_fields.username | ||
field_5: | ||
name: password | ||
default: "password" | ||
help: "Password needed for login (only need for vesync so far)" | ||
optional: depends | ||
netbox_field: devices.power_ports.input.pdus[0].custom_fields.password | ||
uart-config: | ||
field_1: | ||
name: address | ||
help: "UART Address" | ||
optional: False | ||
callback: get_uarts | ||
netbox_field: devices.console_ports.UART.label | ||
field_2: | ||
name: baudrate | ||
help: "UART baudrate" | ||
optional: False | ||
netbox_field: devices.console_ports.UART.custom_fields.baudrate | ||
field_3: | ||
name: logfilename | ||
default: device.log | ||
help: "Output UART logfilename" | ||
optional: True | ||
netbox_field: devices.custom_fields.logfilename | ||
system-config: | ||
field_1: | ||
name: tftpserverip | ||
help: "TFTP server address" | ||
optional: True | ||
netbox_field: devices.config_context.tftpserverip | ||
field_2: | ||
name: tftpserverroot | ||
help: "TFTP folder location" | ||
optional: True | ||
netbox_field: devices.config_context.tftpserverroot | ||
driver-config: | ||
field_1: | ||
name: iio_device_names | ||
default: ["adxl355"] | ||
help: "List of IIO devices on board" | ||
optional: False | ||
netbox_field: devices.custom_fields.iio_device_names | ||
downloader-config: | ||
field_1: | ||
name: http_server_ip | ||
help: "IP address of build server with boot files" | ||
optional: True | ||
field_2: | ||
name: no_os_project | ||
help: "Project folder name in no-os repo" | ||
optional: False | ||
netbox_field: devices.custom_fields.no_os_project | ||
field_3: | ||
name: platform | ||
help: "Platform used of the no-os project" | ||
optional: False | ||
netbox_field: devices.custom_fields.platform | ||
netbox-config: | ||
field_1: | ||
name: netbox_server | ||
help: "IP address of the netbox server" | ||
default: 192.168.10.1 | ||
optional: True | ||
netbox_field: devices.config_context.netbox_server | ||
field_2: | ||
name: netbox_server_port | ||
default: 8000 | ||
help: "Port used by the netbox service" | ||
optional: True | ||
netbox_field: devices.config_context.netbox_port | ||
field_3: | ||
name: netbox_base_url | ||
default: netbox | ||
help: "String used as netbox base url. i.e server:port\base_url" | ||
optional: True | ||
netbox_field: devices.config_context.netbox_base_url | ||
field_4: | ||
name: netbox_api_token | ||
default: 0123456789abcdef0123456789abcdef01234567 | ||
help: "Token for netbox rest api access" | ||
optional: True | ||
netbox_field: devices.config_context.netbox_api_token | ||
jtag-config: | ||
field_1: | ||
name: vivado_version | ||
default: 2019.1 | ||
help: "Version of vivado to use" | ||
optional: True | ||
netbox_field: devices.config_context.vivado_version | ||
field_2: | ||
name: custom_vivado_path | ||
default: None | ||
help: "Custom path to vivado including version.\nEx: /opt/Xilinx/Vivado/2019.1\nOverrides vivado_version if set" | ||
optional: True | ||
netbox_field: devices.config_context.custom_vivado_path | ||
field_3: | ||
name: jtag_cable_id | ||
default: 210299A567FE | ||
help: "Substring of JTAG cable ID. Run 'jtag target' through xsdb to get it.\n Just really need code not full name." | ||
optional: True | ||
netbox_field: devices.console_ports.JTAG.label | ||
field_4: | ||
name: jtag_cpu_target_name | ||
default: ARM*#0 | ||
help: "Name use to identify jtag target\n. This will be used for filtering jtag target.\n Can use wildcards e.x *" | ||
optional: True | ||
netbox_field: devices.custom_fields.jtag_cpu_target_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.