Home
last modified time | relevance | path

Searched refs:CableLengthUnitChoices (Results 1 – 8 of 8) sorted by relevance

/dports/net-mgmt/netbox/netbox-3.0.12/netbox/utilities/
H A Dutils.py14 from dcim.choices import CableLengthUnitChoices
200 valid_units = CableLengthUnitChoices.values()
206 if unit == CableLengthUnitChoices.UNIT_KILOMETER:
208 if unit == CableLengthUnitChoices.UNIT_METER:
210 if unit == CableLengthUnitChoices.UNIT_CENTIMETER:
212 if unit == CableLengthUnitChoices.UNIT_MILE:
214 if unit == CableLengthUnitChoices.UNIT_FOOT:
216 if unit == CableLengthUnitChoices.UNIT_INCH:
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/dcim/models/
H A Dcables.py85 choices=CableLengthUnitChoices,
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/dcim/
H A Dchoices.py1138 class CableLengthUnitChoices(ChoiceSet): class
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/dcim/tests/
H A Dtest_filtersets.py2867 …Choices.STATUS_CONNECTED, color='aa1409', length=10, length_unit=CableLengthUnitChoices.UNIT_FOOT)…
2868 …Choices.STATUS_CONNECTED, color='aa1409', length=20, length_unit=CableLengthUnitChoices.UNIT_FOOT)…
2869 …Choices.STATUS_CONNECTED, color='f44336', length=30, length_unit=CableLengthUnitChoices.UNIT_FOOT)…
2870 …usChoices.STATUS_PLANNED, color='f44336', length=40, length_unit=CableLengthUnitChoices.UNIT_FOOT)…
2871 …usChoices.STATUS_PLANNED, color='e91e63', length=10, length_unit=CableLengthUnitChoices.UNIT_METER…
2872 …usChoices.STATUS_PLANNED, color='e91e63', length=20, length_unit=CableLengthUnitChoices.UNIT_METER…
2884 params = {'length_unit': CableLengthUnitChoices.UNIT_FOOT}
H A Dtest_views.py1815 'length_unit': CableLengthUnitChoices.UNIT_FOOT,
1832 'length_unit': CableLengthUnitChoices.UNIT_METER,
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/dcim/forms/
H A Dbulk_import.py814 choices=CableLengthUnitChoices,
H A Dbulk_edit.py469 choices=add_blank_choice(CableLengthUnitChoices),
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/dcim/api/
H A Dserializers.py760 length_unit = ChoiceField(choices=CableLengthUnitChoices, allow_blank=True, required=False)