mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Minor fix for VMInterfaces
This commit is contained in:
@ -173,8 +173,8 @@ class VirtualMachineVMInterfaceTable(VMInterfaceTable):
|
|||||||
default_columns = ('pk', 'name', 'enabled', 'mac_address', 'mtu', 'mode', 'description', 'ip_addresses')
|
default_columns = ('pk', 'name', 'enabled', 'mac_address', 'mtu', 'mode', 'description', 'ip_addresses')
|
||||||
row_attrs = {
|
row_attrs = {
|
||||||
'data-name': lambda record: record.name,
|
'data-name': lambda record: record.name,
|
||||||
'data-virtual': lambda record: "true" if record.is_virtual else "false",
|
'data-virtual': lambda record: "true",
|
||||||
'data-mark-connected': lambda record: "true" if record.mark_connected else "false",
|
'data-enabled': lambda record: "true" if record.enabled else "false",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user