Skip to content

Commit

Permalink
tests: Add sample NBFT table from Dell PowerEdge R760
Browse files Browse the repository at this point in the history
Covered by the Python tests already, let's include this
table in the other NBFT parser tests (which are all
QEMU dumps).

Signed-off-by: Tomas Bzatek <[email protected]>
  • Loading branch information
tbzatek committed Jan 5, 2024
1 parent db70d38 commit 8d89f03
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
62 changes: 62 additions & 0 deletions test/nbft/diffs/NBFT-Dell.PowerEdge.R760
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
raw_nbft_size=1017
host.id=44454c4c34010368038b2c04f313233
host.nqn=nqn.1988-11.com.dell:PowerEdge.R760.1234567
host.host_id_configured=1
host.host_nqn_configured=1
host.primary=0
hfi_list[0]->index=1
hfi_list[0]->transport=tcp
hfi_list[0]->tcp_info.pci_sbdf=16384
hfi_list[0]->tcp_info.mac_addr=b02628e87ce
hfi_list[0]->tcp_info.vlan=0
hfi_list[0]->tcp_info.ip_origin=82
hfi_list[0]->tcp_info.ipaddr=100.71.245.232
hfi_list[0]->tcp_info.subnet_mask_prefix=24
hfi_list[0]->tcp_info.gateway_ipaddr=100.71.245.254
hfi_list[0]->tcp_info.route_metric=500
hfi_list[0]->tcp_info.primary_dns_ipaddr=100.64.0.5
hfi_list[0]->tcp_info.secondary_dns_ipaddr=100.64.0.6
hfi_list[0]->tcp_info.dhcp_server_ipaddr=100.71.245.254
hfi_list[0]->tcp_info.host_name=(null)
hfi_list[0]->tcp_info.this_hfi_is_default_route=1
hfi_list[0]->tcp_info.dhcp_override=1
discovery_list[0]->index=1
discovery_list[0]->hfi->index=1
discovery_list[0]->uri=nvme+tcp://100.71.103.50:8009/
discovery_list[0]->nqn=nqn.2014-08.org.nvmexpress.discovery
subsystem_ns_list[0]->index=1
subsystem_ns_list[0]->discovery->index=1
subsystem_ns_list[0]->num_hfis=2
subsystem_ns_list[0]->hfis[0]->index=1
subsystem_ns_list[0]->hfis[1]->index=1
subsystem_ns_list[0]->transport=tcp
subsystem_ns_list[0]->traddr=100.71.103.48
subsystem_ns_list[0]->trsvcid=4420
subsystem_ns_list[0]->subsys_port_id=0
subsystem_ns_list[0]->nsid=148
subsystem_ns_list[0]->nid_type=2
subsystem_ns_list[0]->nid=c8244ed9c15f53b8ccf96802efca
subsystem_ns_list[0]->subsys_nqn=nqn.1988-11.com.dell:powerstore:00:2a64abf1c5b81F6C4549
subsystem_ns_list[0]->pdu_header_digest_required=0
subsystem_ns_list[0]->data_digest_required=0
subsystem_ns_list[0]->controller_id=5
subsystem_ns_list[0]->asqsz=0
subsystem_ns_list[0]->dhcp_root_path_string=(null)
subsystem_ns_list[1]->index=2
subsystem_ns_list[1]->discovery->index=1
subsystem_ns_list[1]->num_hfis=2
subsystem_ns_list[1]->hfis[0]->index=1
subsystem_ns_list[1]->hfis[1]->index=1
subsystem_ns_list[1]->transport=tcp
subsystem_ns_list[1]->traddr=100.71.103.49
subsystem_ns_list[1]->trsvcid=4420
subsystem_ns_list[1]->subsys_port_id=0
subsystem_ns_list[1]->nsid=148
subsystem_ns_list[1]->nid_type=2
subsystem_ns_list[1]->nid=c8244ed9c15f53b8ccf96802efca
subsystem_ns_list[1]->subsys_nqn=nqn.1988-11.com.dell:powerstore:00:2a64abf1c5b81F6C4549
subsystem_ns_list[1]->pdu_header_digest_required=0
subsystem_ns_list[1]->data_digest_required=0
subsystem_ns_list[1]->controller_id=4166
subsystem_ns_list[1]->asqsz=0
subsystem_ns_list[1]->dhcp_root_path_string=(null)
1 change: 1 addition & 0 deletions test/nbft/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tables = [
'NBFT-static-ipv4',
'NBFT-static-ipv4-discovery',
'NBFT-static-ipv6',
'NBFT-Dell.PowerEdge.R760'
]

tables_bad = [
Expand Down
1 change: 1 addition & 0 deletions test/nbft/tables/NBFT-Dell.PowerEdge.R760

0 comments on commit 8d89f03

Please sign in to comment.