Merge pull request #736 from kr3ator/feature/cable_initializers
Startup script for cables
This commit is contained in:
commit
f13a6573a8
5 changed files with 314 additions and 8 deletions
71
initializers/cables.yml
Normal file
71
initializers/cables.yml
Normal file
|
@ -0,0 +1,71 @@
|
|||
# # Required parameters for termination X ('a' or 'b'):
|
||||
# #
|
||||
# # ```
|
||||
# # termination_x_name -> name of interface
|
||||
# # termination_x_device -> name of the device interface belongs to
|
||||
# # termination_x_class -> required if different than 'Interface' which is the default
|
||||
# # ```
|
||||
# #
|
||||
# # Supported termination classes: Interface, ConsolePort, ConsoleServerPort, FrontPort, RearPort, PowerPort, PowerOutlet
|
||||
# #
|
||||
# #
|
||||
# # If a termination is a circuit then the required parameter is termination_x_circuit.
|
||||
# # Required parameters for a circuit termination:
|
||||
# #
|
||||
# # ```
|
||||
# # termination_x_circuit:
|
||||
# # term_side -> termination side of a circuit. Must be A or B
|
||||
# # cid -> circuit ID value
|
||||
# # site OR provider_network -> name of Site or ProviderNetwork respectively. If both provided, Site takes precedence
|
||||
# # ```
|
||||
# #
|
||||
# # If a termination is a power feed then the required parameter is termination_x_feed.
|
||||
# #
|
||||
# # ```
|
||||
# # termination_x_feed:
|
||||
# # name -> name of the PowerFeed object
|
||||
# # power_panel:
|
||||
# # name -> name of the PowerPanel the PowerFeed is attached to
|
||||
# # site -> name of the Site in which the PowerPanel is present
|
||||
# # ```
|
||||
# #
|
||||
# # Any other Cable parameters supported by Netbox are supported as the top level keys, e.g. 'type', 'status', etc.
|
||||
# #
|
||||
# # - termination_a_name: console
|
||||
# # termination_a_device: spine
|
||||
# # termination_a_class: ConsolePort
|
||||
# # termination_b_name: tty9
|
||||
# # termination_b_device: console-server
|
||||
# # termination_b_class: ConsoleServerPort
|
||||
# # type: cat6
|
||||
# #
|
||||
# - termination_a_name: to-server02
|
||||
# termination_a_device: server01
|
||||
# termination_b_name: to-server01
|
||||
# termination_b_device: server02
|
||||
# status: planned
|
||||
# type: mmf
|
||||
|
||||
# - termination_a_name: eth0
|
||||
# termination_a_device: server02
|
||||
# termination_b_circuit:
|
||||
# term_side: A
|
||||
# cid: Circuit_ID-1
|
||||
# site: AMS 1
|
||||
# type: cat6
|
||||
|
||||
# - termination_a_name: psu0
|
||||
# termination_a_device: server04
|
||||
# termination_a_class: PowerPort
|
||||
# termination_b_feed:
|
||||
# name: power feed 1
|
||||
# power_panel:
|
||||
# name: power panel AMS 1
|
||||
# site: AMS 1
|
||||
|
||||
# - termination_a_name: outlet1
|
||||
# termination_a_device: server04
|
||||
# termination_a_class: PowerOutlet
|
||||
# termination_b_name: psu1
|
||||
# termination_b_device: server04
|
||||
# termination_b_class: PowerPort
|
|
@ -19,9 +19,17 @@
|
|||
# parent: ath0
|
||||
# - device: server01
|
||||
# enabled: true
|
||||
# type: virtual
|
||||
# type: 1000base-x-sfp
|
||||
# name: to-server02
|
||||
# - device: server02
|
||||
# enabled: true
|
||||
# type: virtual
|
||||
# type: 1000base-x-sfp
|
||||
# name: to-server01
|
||||
# - device: server02
|
||||
# enabled: true
|
||||
# type: 1000base-t
|
||||
# name: eth0
|
||||
# - device: server02
|
||||
# enabled: true
|
||||
# type: virtual
|
||||
# name: loopback
|
||||
|
|
|
@ -31,8 +31,7 @@
|
|||
# - name_template: ttyS[1-48]
|
||||
# type: rj-45
|
||||
# power_ports:
|
||||
# - name: psu0 # both non-template and template field specified; non-template field takes precedence
|
||||
# name_template: psu[0,1]
|
||||
# - name_template: psu[0,1]
|
||||
# type: iec-60320-c14
|
||||
# maximum_draw: 35
|
||||
# allocated_draw: 35
|
||||
|
@ -46,7 +45,9 @@
|
|||
# type: 8p8c
|
||||
# positions_template: "[3,2]"
|
||||
# device_bays:
|
||||
# - name_template: bay[0-9]
|
||||
# - name: bay0 # both non-template and template field specified; non-template field takes precedence
|
||||
# name_template: bay[0-9]
|
||||
# label: test0
|
||||
# label_template: test[0-5,9,6-8]
|
||||
# description: Test description
|
||||
# power_outlets:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue