Skip to content

Commit

Permalink
tests: Add complex NBFT table from Dell R660
Browse files Browse the repository at this point in the history
Two HFIs, four discovery records (only two visible in the
table) and some form of multipath. Two SSNS records marked
as unavailable due to subnet mismatch.

Signed-off-by: Tomas Bzatek <[email protected]>
  • Loading branch information
tbzatek committed Mar 7, 2024
1 parent 5321f42 commit b4f7c28
Show file tree
Hide file tree
Showing 3 changed files with 314 additions and 1 deletion.
312 changes: 312 additions & 0 deletions test/nbft/diffs/NBFT-Dell.PowerEdge.R660-fw1.5.5-mpath+discovery
Original file line number Diff line number Diff line change
@@ -0,0 +1,312 @@
raw_nbft_size=4147
host.id=44454c4c44010448030b8c04f445833
host.nqn=nqn.2014-08.org.nvmexpress:uuid:4c4c4544-0044-4410-8030-b8c04f445833
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=27136
hfi_list[0]->tcp_info.mac_addr=062bcbeb70
hfi_list[0]->tcp_info.vlan=0
hfi_list[0]->tcp_info.ip_origin=95
hfi_list[0]->tcp_info.ipaddr=172.18.240.1
hfi_list[0]->tcp_info.subnet_mask_prefix=24
hfi_list[0]->tcp_info.gateway_ipaddr=0.0.0.0
hfi_list[0]->tcp_info.route_metric=500
hfi_list[0]->tcp_info.primary_dns_ipaddr=0.0.0.0
hfi_list[0]->tcp_info.secondary_dns_ipaddr=0.0.0.0
hfi_list[0]->tcp_info.dhcp_server_ipaddr=
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=0
hfi_list[1]->index=2
hfi_list[1]->transport=tcp
hfi_list[1]->tcp_info.pci_sbdf=27137
hfi_list[1]->tcp_info.mac_addr=062bcbeb71
hfi_list[1]->tcp_info.vlan=0
hfi_list[1]->tcp_info.ip_origin=95
hfi_list[1]->tcp_info.ipaddr=172.18.230.2
hfi_list[1]->tcp_info.subnet_mask_prefix=24
hfi_list[1]->tcp_info.gateway_ipaddr=0.0.0.0
hfi_list[1]->tcp_info.route_metric=500
hfi_list[1]->tcp_info.primary_dns_ipaddr=0.0.0.0
hfi_list[1]->tcp_info.secondary_dns_ipaddr=0.0.0.0
hfi_list[1]->tcp_info.dhcp_server_ipaddr=
hfi_list[1]->tcp_info.host_name=(null)
hfi_list[1]->tcp_info.this_hfi_is_default_route=1
hfi_list[1]->tcp_info.dhcp_override=0
discovery_list[0]->index=1
discovery_list[0]->hfi->index=1
discovery_list[0]->uri=nvme+tcp://172.18.240.70:8009/
discovery_list[0]->nqn=nqn.2014-08.org.nvmexpress.discovery
discovery_list[1]->index=2
discovery_list[1]->hfi->index=2
discovery_list[1]->uri=nvme+tcp://172.18.230.70:8009/
discovery_list[1]->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=1
subsystem_ns_list[0]->hfis[0]->index=1
subsystem_ns_list[0]->transport=tcp
subsystem_ns_list[0]->traddr=172.18.240.60
subsystem_ns_list[0]->trsvcid=4420
subsystem_ns_list[0]->subsys_port_id=0
subsystem_ns_list[0]->nsid=270
subsystem_ns_list[0]->nid_type=2
subsystem_ns_list[0]->nid=5380b42fc0c5de718ccf9680be3ca7
subsystem_ns_list[0]->subsys_nqn=nqn.1988-11.com.dell:powerstore:00:88b402df2d762AA7AF94
subsystem_ns_list[0]->pdu_header_digest_required=0
subsystem_ns_list[0]->data_digest_required=0
subsystem_ns_list[0]->controller_id=4186
subsystem_ns_list[0]->asqsz=0
subsystem_ns_list[0]->dhcp_root_path_string=(null)
subsystem_ns_list[0]->discovered=1
subsystem_ns_list[0]->unavailable=0
subsystem_ns_list[1]->index=2
subsystem_ns_list[1]->discovery->index=1
subsystem_ns_list[1]->num_hfis=1
subsystem_ns_list[1]->hfis[0]->index=1
subsystem_ns_list[1]->transport=tcp
subsystem_ns_list[1]->traddr=172.18.240.60
subsystem_ns_list[1]->trsvcid=4420
subsystem_ns_list[1]->subsys_port_id=0
subsystem_ns_list[1]->nsid=1671
subsystem_ns_list[1]->nid_type=2
subsystem_ns_list[1]->nid=f4c66fce74afdb8ccf96807eaeae
subsystem_ns_list[1]->subsys_nqn=nqn.1988-11.com.dell:powerstore:00:88b402df2d762AA7AF94
subsystem_ns_list[1]->pdu_header_digest_required=0
subsystem_ns_list[1]->data_digest_required=0
subsystem_ns_list[1]->controller_id=4186
subsystem_ns_list[1]->asqsz=0
subsystem_ns_list[1]->dhcp_root_path_string=(null)
subsystem_ns_list[1]->discovered=1
subsystem_ns_list[1]->unavailable=0
subsystem_ns_list[2]->index=3
subsystem_ns_list[2]->discovery->index=1
subsystem_ns_list[2]->num_hfis=1
subsystem_ns_list[2]->hfis[0]->index=1
subsystem_ns_list[2]->transport=tcp
subsystem_ns_list[2]->traddr=172.18.240.61
subsystem_ns_list[2]->trsvcid=4420
subsystem_ns_list[2]->subsys_port_id=0
subsystem_ns_list[2]->nsid=270
subsystem_ns_list[2]->nid_type=2
subsystem_ns_list[2]->nid=5380b42fc0c5de718ccf9680be3ca7
subsystem_ns_list[2]->subsys_nqn=nqn.1988-11.com.dell:powerstore:00:88b402df2d762AA7AF94
subsystem_ns_list[2]->pdu_header_digest_required=0
subsystem_ns_list[2]->data_digest_required=0
subsystem_ns_list[2]->controller_id=52
subsystem_ns_list[2]->asqsz=0
subsystem_ns_list[2]->dhcp_root_path_string=(null)
subsystem_ns_list[2]->discovered=1
subsystem_ns_list[2]->unavailable=0
subsystem_ns_list[3]->index=4
subsystem_ns_list[3]->discovery->index=1
subsystem_ns_list[3]->num_hfis=1
subsystem_ns_list[3]->hfis[0]->index=1
subsystem_ns_list[3]->transport=tcp
subsystem_ns_list[3]->traddr=172.18.240.61
subsystem_ns_list[3]->trsvcid=4420
subsystem_ns_list[3]->subsys_port_id=0
subsystem_ns_list[3]->nsid=1671
subsystem_ns_list[3]->nid_type=2
subsystem_ns_list[3]->nid=f4c66fce74afdb8ccf96807eaeae
subsystem_ns_list[3]->subsys_nqn=nqn.1988-11.com.dell:powerstore:00:88b402df2d762AA7AF94
subsystem_ns_list[3]->pdu_header_digest_required=0
subsystem_ns_list[3]->data_digest_required=0
subsystem_ns_list[3]->controller_id=52
subsystem_ns_list[3]->asqsz=0
subsystem_ns_list[3]->dhcp_root_path_string=(null)
subsystem_ns_list[3]->discovered=1
subsystem_ns_list[3]->unavailable=0
subsystem_ns_list[4]->index=5
subsystem_ns_list[4]->discovery->index=1
subsystem_ns_list[4]->num_hfis=1
subsystem_ns_list[4]->hfis[0]->index=1
subsystem_ns_list[4]->transport=tcp
subsystem_ns_list[4]->traddr=172.18.240.51
subsystem_ns_list[4]->trsvcid=4420
subsystem_ns_list[4]->subsys_port_id=0
subsystem_ns_list[4]->nsid=1
subsystem_ns_list[4]->nid_type=3
subsystem_ns_list[4]->nid=6be5e52f7fa24d57805b8cdce240e4c
subsystem_ns_list[4]->subsys_nqn=nqn.1992-08.com.netapp:sn.643ecb551e6b11eda647d039ea98949f:subsystem.dellr660
subsystem_ns_list[4]->pdu_header_digest_required=0
subsystem_ns_list[4]->data_digest_required=0
subsystem_ns_list[4]->controller_id=6209
subsystem_ns_list[4]->asqsz=0
subsystem_ns_list[4]->dhcp_root_path_string=(null)
subsystem_ns_list[4]->discovered=1
subsystem_ns_list[4]->unavailable=0
subsystem_ns_list[5]->index=6
subsystem_ns_list[5]->discovery->index=1
subsystem_ns_list[5]->num_hfis=1
subsystem_ns_list[5]->hfis[0]->index=1
subsystem_ns_list[5]->transport=tcp
subsystem_ns_list[5]->traddr=172.18.240.50
subsystem_ns_list[5]->trsvcid=4420
subsystem_ns_list[5]->subsys_port_id=0
subsystem_ns_list[5]->nsid=1
subsystem_ns_list[5]->nid_type=3
subsystem_ns_list[5]->nid=6be5e52f7fa24d57805b8cdce240e4c
subsystem_ns_list[5]->subsys_nqn=nqn.1992-08.com.netapp:sn.643ecb551e6b11eda647d039ea98949f:subsystem.dellr660
subsystem_ns_list[5]->pdu_header_digest_required=0
subsystem_ns_list[5]->data_digest_required=0
subsystem_ns_list[5]->controller_id=6208
subsystem_ns_list[5]->asqsz=0
subsystem_ns_list[5]->dhcp_root_path_string=(null)
subsystem_ns_list[5]->discovered=1
subsystem_ns_list[5]->unavailable=0
subsystem_ns_list[6]->index=7
subsystem_ns_list[6]->discovery->index=1
subsystem_ns_list[6]->num_hfis=1
subsystem_ns_list[6]->hfis[0]->index=1
subsystem_ns_list[6]->transport=tcp
subsystem_ns_list[6]->traddr=172.18.230.51
subsystem_ns_list[6]->trsvcid=4420
subsystem_ns_list[6]->subsys_port_id=0
subsystem_ns_list[6]->nsid=0
subsystem_ns_list[6]->nid_type=0
subsystem_ns_list[6]->nid=0000000000000000
subsystem_ns_list[6]->subsys_nqn=nqn.1992-08.com.netapp:sn.643ecb551e6b11eda647d039ea98949f:subsystem.dellr660
subsystem_ns_list[6]->pdu_header_digest_required=0
subsystem_ns_list[6]->data_digest_required=0
subsystem_ns_list[6]->controller_id=6208
subsystem_ns_list[6]->asqsz=0
subsystem_ns_list[6]->dhcp_root_path_string=(null)
subsystem_ns_list[6]->discovered=1
subsystem_ns_list[6]->unavailable=1
subsystem_ns_list[7]->index=8
subsystem_ns_list[7]->discovery->index=1
subsystem_ns_list[7]->num_hfis=1
subsystem_ns_list[7]->hfis[0]->index=1
subsystem_ns_list[7]->transport=tcp
subsystem_ns_list[7]->traddr=172.18.230.50
subsystem_ns_list[7]->trsvcid=4420
subsystem_ns_list[7]->subsys_port_id=0
subsystem_ns_list[7]->nsid=0
subsystem_ns_list[7]->nid_type=0
subsystem_ns_list[7]->nid=0000000000000000
subsystem_ns_list[7]->subsys_nqn=nqn.1992-08.com.netapp:sn.643ecb551e6b11eda647d039ea98949f:subsystem.dellr660
subsystem_ns_list[7]->pdu_header_digest_required=0
subsystem_ns_list[7]->data_digest_required=0
subsystem_ns_list[7]->controller_id=6208
subsystem_ns_list[7]->asqsz=0
subsystem_ns_list[7]->dhcp_root_path_string=(null)
subsystem_ns_list[7]->discovered=1
subsystem_ns_list[7]->unavailable=1
subsystem_ns_list[8]->index=9
subsystem_ns_list[8]->discovery->index=2
subsystem_ns_list[8]->num_hfis=1
subsystem_ns_list[8]->hfis[0]->index=2
subsystem_ns_list[8]->transport=tcp
subsystem_ns_list[8]->traddr=172.18.230.61
subsystem_ns_list[8]->trsvcid=4420
subsystem_ns_list[8]->subsys_port_id=0
subsystem_ns_list[8]->nsid=270
subsystem_ns_list[8]->nid_type=2
subsystem_ns_list[8]->nid=5380b42fc0c5de718ccf9680be3ca7
subsystem_ns_list[8]->subsys_nqn=nqn.1988-11.com.dell:powerstore:00:88b402df2d762AA7AF94
subsystem_ns_list[8]->pdu_header_digest_required=0
subsystem_ns_list[8]->data_digest_required=0
subsystem_ns_list[8]->controller_id=51
subsystem_ns_list[8]->asqsz=0
subsystem_ns_list[8]->dhcp_root_path_string=(null)
subsystem_ns_list[8]->discovered=1
subsystem_ns_list[8]->unavailable=0
subsystem_ns_list[9]->index=10
subsystem_ns_list[9]->discovery->index=2
subsystem_ns_list[9]->num_hfis=1
subsystem_ns_list[9]->hfis[0]->index=2
subsystem_ns_list[9]->transport=tcp
subsystem_ns_list[9]->traddr=172.18.230.61
subsystem_ns_list[9]->trsvcid=4420
subsystem_ns_list[9]->subsys_port_id=0
subsystem_ns_list[9]->nsid=1671
subsystem_ns_list[9]->nid_type=2
subsystem_ns_list[9]->nid=f4c66fce74afdb8ccf96807eaeae
subsystem_ns_list[9]->subsys_nqn=nqn.1988-11.com.dell:powerstore:00:88b402df2d762AA7AF94
subsystem_ns_list[9]->pdu_header_digest_required=0
subsystem_ns_list[9]->data_digest_required=0
subsystem_ns_list[9]->controller_id=51
subsystem_ns_list[9]->asqsz=0
subsystem_ns_list[9]->dhcp_root_path_string=(null)
subsystem_ns_list[9]->discovered=1
subsystem_ns_list[9]->unavailable=0
subsystem_ns_list[10]->index=11
subsystem_ns_list[10]->discovery->index=2
subsystem_ns_list[10]->num_hfis=1
subsystem_ns_list[10]->hfis[0]->index=2
subsystem_ns_list[10]->transport=tcp
subsystem_ns_list[10]->traddr=172.18.230.60
subsystem_ns_list[10]->trsvcid=4420
subsystem_ns_list[10]->subsys_port_id=0
subsystem_ns_list[10]->nsid=270
subsystem_ns_list[10]->nid_type=2
subsystem_ns_list[10]->nid=5380b42fc0c5de718ccf9680be3ca7
subsystem_ns_list[10]->subsys_nqn=nqn.1988-11.com.dell:powerstore:00:88b402df2d762AA7AF94
subsystem_ns_list[10]->pdu_header_digest_required=0
subsystem_ns_list[10]->data_digest_required=0
subsystem_ns_list[10]->controller_id=4185
subsystem_ns_list[10]->asqsz=0
subsystem_ns_list[10]->dhcp_root_path_string=(null)
subsystem_ns_list[10]->discovered=1
subsystem_ns_list[10]->unavailable=0
subsystem_ns_list[11]->index=12
subsystem_ns_list[11]->discovery->index=2
subsystem_ns_list[11]->num_hfis=1
subsystem_ns_list[11]->hfis[0]->index=2
subsystem_ns_list[11]->transport=tcp
subsystem_ns_list[11]->traddr=172.18.230.60
subsystem_ns_list[11]->trsvcid=4420
subsystem_ns_list[11]->subsys_port_id=0
subsystem_ns_list[11]->nsid=1671
subsystem_ns_list[11]->nid_type=2
subsystem_ns_list[11]->nid=f4c66fce74afdb8ccf96807eaeae
subsystem_ns_list[11]->subsys_nqn=nqn.1988-11.com.dell:powerstore:00:88b402df2d762AA7AF94
subsystem_ns_list[11]->pdu_header_digest_required=0
subsystem_ns_list[11]->data_digest_required=0
subsystem_ns_list[11]->controller_id=4185
subsystem_ns_list[11]->asqsz=0
subsystem_ns_list[11]->dhcp_root_path_string=(null)
subsystem_ns_list[11]->discovered=1
subsystem_ns_list[11]->unavailable=0
subsystem_ns_list[12]->index=13
subsystem_ns_list[12]->discovery->index=2
subsystem_ns_list[12]->num_hfis=1
subsystem_ns_list[12]->hfis[0]->index=2
subsystem_ns_list[12]->transport=tcp
subsystem_ns_list[12]->traddr=172.18.230.51
subsystem_ns_list[12]->trsvcid=4420
subsystem_ns_list[12]->subsys_port_id=0
subsystem_ns_list[12]->nsid=1
subsystem_ns_list[12]->nid_type=3
subsystem_ns_list[12]->nid=6be5e52f7fa24d57805b8cdce240e4c
subsystem_ns_list[12]->subsys_nqn=nqn.1992-08.com.netapp:sn.643ecb551e6b11eda647d039ea98949f:subsystem.dellr660
subsystem_ns_list[12]->pdu_header_digest_required=0
subsystem_ns_list[12]->data_digest_required=0
subsystem_ns_list[12]->controller_id=6273
subsystem_ns_list[12]->asqsz=0
subsystem_ns_list[12]->dhcp_root_path_string=(null)
subsystem_ns_list[12]->discovered=1
subsystem_ns_list[12]->unavailable=0
subsystem_ns_list[13]->index=14
subsystem_ns_list[13]->discovery->index=2
subsystem_ns_list[13]->num_hfis=1
subsystem_ns_list[13]->hfis[0]->index=2
subsystem_ns_list[13]->transport=tcp
subsystem_ns_list[13]->traddr=172.18.230.50
subsystem_ns_list[13]->trsvcid=4420
subsystem_ns_list[13]->subsys_port_id=0
subsystem_ns_list[13]->nsid=1
subsystem_ns_list[13]->nid_type=3
subsystem_ns_list[13]->nid=6be5e52f7fa24d57805b8cdce240e4c
subsystem_ns_list[13]->subsys_nqn=nqn.1992-08.com.netapp:sn.643ecb551e6b11eda647d039ea98949f:subsystem.dellr660
subsystem_ns_list[13]->pdu_header_digest_required=0
subsystem_ns_list[13]->data_digest_required=0
subsystem_ns_list[13]->controller_id=6272
subsystem_ns_list[13]->asqsz=0
subsystem_ns_list[13]->dhcp_root_path_string=(null)
subsystem_ns_list[13]->discovered=1
subsystem_ns_list[13]->unavailable=0
3 changes: 2 additions & 1 deletion test/nbft/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ tables = [
'NBFT-static-ipv4-discovery',
'NBFT-static-ipv6',
'NBFT-Dell.PowerEdge.R760',
'NBFT-Dell.PowerEdge.R660-fw1.5.5-single'
'NBFT-Dell.PowerEdge.R660-fw1.5.5-single',
'NBFT-Dell.PowerEdge.R660-fw1.5.5-mpath+discovery'
]

tables_bad = [
Expand Down
Binary file not shown.

0 comments on commit b4f7c28

Please sign in to comment.