diff options
| author | David Lamparter <equinox@diac24.net> | 2019-02-18 13:13:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-18 13:13:58 +0100 |
| commit | 5243b754dc615904bbfdb40b6b4cfb44f359c6bb (patch) | |
| tree | e049351bec67014a9fbd1714365397ef69429950 /ospf6d/ospf6_area.c | |
| parent | b57442d701e05cf70b83281e652785f091e89c07 (diff) | |
| parent | 18f286adfbaba52a7d6d4a3994e763109d088c74 (diff) | |
Merge pull request #3802 from pguibert6WIND/ospfv3_misc_fixes
Ospfv3 misc fixes
Diffstat (limited to 'ospf6d/ospf6_area.c')
| -rw-r--r-- | ospf6d/ospf6_area.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ospf6d/ospf6_area.c b/ospf6d/ospf6_area.c index 30f0e9e774..76722aad10 100644 --- a/ospf6d/ospf6_area.c +++ b/ospf6d/ospf6_area.c @@ -1022,3 +1022,16 @@ void ospf6_area_init(void) install_element(OSPF6_NODE, &area_filter_list_cmd); install_element(OSPF6_NODE, &no_area_filter_list_cmd); } + +void ospf6_area_interface_delete(struct ospf6_interface *oi) +{ + struct ospf6_area *oa; + struct listnode *node, *nnode; + + if (!ospf6) + return; + for (ALL_LIST_ELEMENTS(ospf6->area_list, node, nnode, oa)) + if(listnode_lookup(oa->if_list, oi)) + listnode_delete(oa->if_list, oi); + +} |
