mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23:36 -06:00
Fixes #20056: Add rf_role to generate_schema.json
This commit is contained in:
parent
8e08524fed
commit
30f3907c2a
@ -474,6 +474,13 @@
|
|||||||
"passive-48v-2pair",
|
"passive-48v-2pair",
|
||||||
"passive-48v-4pair"
|
"passive-48v-4pair"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"rf_role": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"ap",
|
||||||
|
"station"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -7,6 +7,7 @@ from jinja2 import FileSystemLoader, Environment
|
|||||||
|
|
||||||
from dcim.choices import *
|
from dcim.choices import *
|
||||||
from netbox.choices import WeightUnitChoices
|
from netbox.choices import WeightUnitChoices
|
||||||
|
from wireless.choices import WirelessRoleChoices
|
||||||
|
|
||||||
TEMPLATE_FILENAME = 'devicetype_schema.jinja2'
|
TEMPLATE_FILENAME = 'devicetype_schema.jinja2'
|
||||||
OUTPUT_FILENAME = 'contrib/generated_schema.json'
|
OUTPUT_FILENAME = 'contrib/generated_schema.json'
|
||||||
@ -23,6 +24,7 @@ CHOICES_MAP = {
|
|||||||
'interface_type_choices': InterfaceTypeChoices,
|
'interface_type_choices': InterfaceTypeChoices,
|
||||||
'interface_poe_mode_choices': InterfacePoEModeChoices,
|
'interface_poe_mode_choices': InterfacePoEModeChoices,
|
||||||
'interface_poe_type_choices': InterfacePoETypeChoices,
|
'interface_poe_type_choices': InterfacePoETypeChoices,
|
||||||
|
'interface_rf_role_choices': WirelessRoleChoices,
|
||||||
'front_port_type_choices': PortTypeChoices,
|
'front_port_type_choices': PortTypeChoices,
|
||||||
'rear_port_type_choices': PortTypeChoices,
|
'rear_port_type_choices': PortTypeChoices,
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,10 @@
|
|||||||
"poe_type": {
|
"poe_type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": {{ interface_poe_type_choices }}
|
"enum": {{ interface_poe_type_choices }}
|
||||||
|
},
|
||||||
|
"rf_role": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": {{ interface_rf_role_choices }}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user