Add tags,device roles,tenants.. (#110)
* Adds support for: * sets the tenant for IP addresses and Devices. * setting device tags * setting the blade, chassis, and server roles. Co-authored-by: Thomas Davis <tdavis@nersc.gov> Co-authored-by: Solvik <solvik@solvik.fr>
This commit is contained in:
parent
bd5037996b
commit
a60c0cd70c
8 changed files with 165 additions and 35 deletions
|
@ -8,6 +8,22 @@ network:
|
|||
# enable auto-cabling
|
||||
lldp: true
|
||||
|
||||
#
|
||||
# You can use these to change the roles.
|
||||
#
|
||||
#device:
|
||||
# chassis_role: "Server Chassis"
|
||||
# blade_role: "Blade"
|
||||
# server_role: "Server"
|
||||
# tags: server, blade, ,just a comma,delimited,list
|
||||
|
||||
#
|
||||
# Use this to set the tenant
|
||||
#
|
||||
#tenant:
|
||||
# driver: "file:/tmp/tenant"
|
||||
# regex: "(.*)"
|
||||

|
||||
datacenter_location:
|
||||
driver: "cmd:cat /etc/qualification | tr [a-z] [A-Z]"
|
||||
regex: "DATACENTER: (?P<datacenter>[A-Za-z0-9]+)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue