Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhen-H3C committed Oct 18, 2024
1 parent 84efce2 commit ffff0b1
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions isisd/isisd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,13 +1043,12 @@ int show_isis_interface_common_json(struct json_object *json,
for (ALL_LIST_ELEMENTS_RO(area->circuit_list,
cnode, circuit)) {
circuit_json = json_object_new_object();
if (!ifname || strcmp(circuit->interface->name,
ifname) == 0) {
if (!ifname ||
strcmp(circuit->interface->name, ifname) == 0) {
isis_circuit_print_json(circuit,
circuit_json,
detail);
json_object_array_add(circuits_json,
circuit_json);
json_object_array_add(circuits_json, circuit_json);
if (ifname)
break;
}
Expand All @@ -1072,16 +1071,13 @@ int show_isis_interface_common_json(struct json_object *json,
circuits_json = json_object_new_array();
json_object_object_add(area_json, "circuits",
circuits_json);
for (ALL_LIST_ELEMENTS_RO(area->circuit_list,
cnode, circuit)) {
for (ALL_LIST_ELEMENTS_RO(area->circuit_list, cnode, circuit)) {
circuit_json = json_object_new_object();
if (!ifname || strcmp(circuit->interface->name,
ifname) == 0) {
if (!ifname || strcmp(circuit->interface->name, ifname) == 0) {
isis_circuit_print_json(circuit,
circuit_json,
detail);
json_object_array_add(circuits_json,
circuit_json);
json_object_array_add(circuits_json, circuit_json);
if (ifname)
break;
}
Expand Down

0 comments on commit ffff0b1

Please sign in to comment.