Skip to main content

Location Minimal

This schema extension is minimal but will provide you with basic items to store location related data.

Details

  • Dependencies:

Nodes

Region

  • Label: Region
  • Namespace: Location
  • Icon: carbon:cics-region-target
  • Inherit From: LocationGeneric, IpamPrefixScope

Country

  • Label: Country
  • Namespace: Location
  • Icon: gis:search-country
  • Inherit From: LocationGeneric

Site

  • Label: Site
  • Namespace: Location
  • Icon: ri:building-line
  • Inherit From: LocationGeneric, LocationHosting, IpamPrefixScope, IpamVLANGroupScope

Attributes

namedescriptionkindoptionaldefault_valuechoices
statusDropdownFalseactiveactive, planned, staging, decommissioning, retired
facilityTextTrue
physical_addressTextTrue
timezoneTextTrue

Code

version: '1.0'
nodes:
- name: Region
namespace: Location
label: Region
inherit_from:
- LocationGeneric
- IpamPrefixScope
menu_placement: LocationGeneric
parent: ''
children: LocationCountry
icon: carbon:cics-region-target
- name: Country
namespace: Location
label: Country
inherit_from:
- LocationGeneric
menu_placement: LocationGeneric
parent: LocationRegion
children: LocationSite
icon: gis:search-country
- name: Site
namespace: Location
label: Site
inherit_from:
- LocationGeneric
- LocationHosting
- IpamPrefixScope
- IpamVLANGroupScope
menu_placement: LocationGeneric
display_label: name__value
parent: LocationCountry
icon: ri:building-line
attributes:
- name: status
kind: Dropdown
optional: false
default_value: active
order_weight: 1250
choices:
- name: active
label: Active
color: '#00d25b'
- name: planned
label: Planned
color: '#2196f3'
- name: staging
label: Staging
color: '#f0ad4e'
- name: decommissioning
label: Decommissioning
color: '#ff9800'
- name: retired
label: Retired
color: '#6c757d'
- name: facility
kind: Text
unique: false
optional: true
order_weight: 1100
- name: physical_address
kind: Text
unique: false
optional: true
order_weight: 1500
- name: timezone
kind: Text
optional: true
order_weight: 1300