use first capture group in regex
This commit is contained in:
parent
d90eac3fe6
commit
9f0db28ed8
4 changed files with 12 additions and 11 deletions
|
|
@ -3,8 +3,10 @@ netbox:
|
|||
token: supersecrettoken
|
||||
|
||||
datacenter_location:
|
||||
# driver_file: /opt/netbox_driver_dc.py
|
||||
driver: file:/etc/qualification
|
||||
regex: "datacenter: (?P<datacenter>[A-Za-z0-9]+)"
|
||||
driver: "cmd:cat /etc/qualification | tr [a-z] [A-Z]"
|
||||
regex: "DATACENTER: (?P<datacenter>[A-Za-z0-9]+)"
|
||||
# driver: 'cmd:lldpctl'
|
||||
# regex = 'SysName: .*\.(?P<datacenter>[A-Za-z0-9]+)'
|
||||
# regex: 'SysName: .*\.([A-Za-z0-9]+)'
|
||||
#
|
||||
# driver: "file:/tmp/datacenter"
|
||||
# regex: "(.*)"
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue