Skip to content

Commit 86d5ed9

Browse files
tbzatekigaw
authored andcommitted
tests: Add sample NBFT table with empty HFI ipv6 address
Contains a single HFI record with an unconfigured IPv6 address ('::'), referenced to by a discovery descriptor and corresponding SSNS record. In theory this is recoverable by having the distribution network management framework re-acquire an IP address, followed by NVMe discovery and connect-all. Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
1 parent 4a89153 commit 86d5ed9

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
raw_nbft_size=785
2+
host.id=78563412aaaabbbbcccc123456789012
3+
host.nqn=nqn.2014-08.org.nvmexpress:uuid:12345678-aaaa-bbbb-cccc-123456789012
4+
host.host_id_configured=1
5+
host.host_nqn_configured=1
6+
host.primary=0
7+
hfi_list[0]->index=1
8+
hfi_list[0]->transport=tcp
9+
hfi_list[0]->tcp_info.pci_sbdf=3329
10+
hfi_list[0]->tcp_info.mac_addr=40a6b7c08ac9
11+
hfi_list[0]->tcp_info.vlan=0
12+
hfi_list[0]->tcp_info.ip_origin=3
13+
hfi_list[0]->tcp_info.ipaddr=::
14+
hfi_list[0]->tcp_info.subnet_mask_prefix=0
15+
hfi_list[0]->tcp_info.gateway_ipaddr=::
16+
hfi_list[0]->tcp_info.route_metric=500
17+
hfi_list[0]->tcp_info.primary_dns_ipaddr=::
18+
hfi_list[0]->tcp_info.secondary_dns_ipaddr=::
19+
hfi_list[0]->tcp_info.dhcp_server_ipaddr=::
20+
hfi_list[0]->tcp_info.host_name=(null)
21+
hfi_list[0]->tcp_info.this_hfi_is_default_route=1
22+
hfi_list[0]->tcp_info.dhcp_override=1
23+
discovery_list[0]->index=1
24+
discovery_list[0]->hfi->index=1
25+
discovery_list[0]->uri=nvme+tcp://[4321:BBBB::1]:4420/
26+
discovery_list[0]->nqn=nqn.2014-08.org.nvmexpress.discovery
27+
subsystem_ns_list[0]->index=1
28+
subsystem_ns_list[0]->discovery->index=1
29+
subsystem_ns_list[0]->num_hfis=1
30+
subsystem_ns_list[0]->hfis[0]->index=1
31+
subsystem_ns_list[0]->transport=tcp
32+
subsystem_ns_list[0]->traddr=4321:bbbb::1
33+
subsystem_ns_list[0]->trsvcid=4420
34+
subsystem_ns_list[0]->subsys_port_id=0
35+
subsystem_ns_list[0]->nsid=0
36+
subsystem_ns_list[0]->nid_type=0
37+
subsystem_ns_list[0]->nid=0000000000000000
38+
subsystem_ns_list[0]->subsys_nqn=nqn.2014-08.org.nvmexpress.discovery
39+
subsystem_ns_list[0]->pdu_header_digest_required=0
40+
subsystem_ns_list[0]->data_digest_required=0
41+
subsystem_ns_list[0]->controller_id=0
42+
subsystem_ns_list[0]->asqsz=0
43+
subsystem_ns_list[0]->dhcp_root_path_string=(null)
44+
subsystem_ns_list[0]->discovered=1
45+
subsystem_ns_list[0]->unavailable=1

test/nbft/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ tables = [
2121
'NBFT-Dell.PowerEdge.R760',
2222
'NBFT-Dell.PowerEdge.R660-fw1.5.5-single',
2323
'NBFT-Dell.PowerEdge.R660-fw1.5.5-mpath+discovery',
24-
'NBFT-mpath+disc-ipv4+6_half'
24+
'NBFT-mpath+disc-ipv4+6_half',
25+
'NBFT-ipv6-noip+disc'
2526
]
2627

2728
tables_bad = [
785 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)