Cabling script minor updates

This commit is contained in:
kr3ator 2022-04-08 15:51:27 +02:00
parent 302c0fed59
commit 57da852af6
3 changed files with 62 additions and 46 deletions

View file

@ -1,26 +1,44 @@
## 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
##
## If 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
##
## 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
##
# # 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

View file

@ -20,3 +20,7 @@
# enabled: true
# type: 1000base-t
# name: eth0
# - device: server02
# enabled: true
# type: virtual
# name: loopback