mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
IEEE1905: Show non-neighbors in self node
This commit is contained in:
parent
3a3063342e
commit
df8b757461
2 changed files with 5 additions and 3 deletions
|
|
@ -251,7 +251,7 @@ static int browseIEEE1905ALNetworkTopologyIEEE1905DeviceNonIEEE1905NeighborInst(
|
|||
if (DM_STRCMP(prev_instance, "1") == 0) { // Self node in the network
|
||||
dmjson_foreach_obj_in_array((json_object *)prev_data, ifacearrobj, interface, i, 1, "interface") {
|
||||
curr_nonieee1905neighbor_args.mac_addr = dmjson_get_value(interface, 1, "macaddress");
|
||||
dmjson_foreach_value_in_array(non1905, neighbor_val, neighbor, j, 1, "non1905_neighbors") {
|
||||
dmjson_foreach_value_in_array(interface, neighbor_val, neighbor, j, 1, "non1905_neighbors") {
|
||||
curr_nonieee1905neighbor_args.neighbor = neighbor;
|
||||
inst = handle_instance_without_section(dmctx, parent_node, ++id);
|
||||
if (DM_LINK_INST_OBJ(dmctx, parent_node, (void *)&curr_nonieee1905neighbor_args, inst) == DM_STOP)
|
||||
|
|
|
|||
|
|
@ -166,9 +166,11 @@
|
|||
"dhcpserver": "::"
|
||||
}
|
||||
],
|
||||
"num_neighbor_non1905": 0,
|
||||
"num_neighbor_non1905": 3,
|
||||
"non1905_neighbors": [
|
||||
|
||||
"11:22:33:44:55:66",
|
||||
"12:23:34:45:56:67",
|
||||
"76:65:54:43:32:21",
|
||||
],
|
||||
"num_links": 0,
|
||||
"links": [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue