diff options
| author | Mark Stapp <mjs@voltanet.io> | 2021-10-19 16:46:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-19 16:46:58 -0400 |
| commit | 32c8a3c2ae48d85bd855b0ebb55c426121be843a (patch) | |
| tree | 2b489718f0d61ed4c5b043959bcbe3e18035d874 /ospfd/ospf_interface.c | |
| parent | e9f7b2b597ad8c6947ce3b7238e89391e4f9f863 (diff) | |
| parent | f60a11883cb426f574dbe5abeff8254148e7c371 (diff) | |
Merge pull request #9818 from idryzhov/lib-if-fixes
lib: allow to create interfaces in non-existing VRFs
Diffstat (limited to 'ospfd/ospf_interface.c')
| -rw-r--r-- | ospfd/ospf_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 81cc346000..60e109ea80 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -915,9 +915,9 @@ struct ospf_interface *ospf_vl_new(struct ospf *ospf, ospf->vrf_id); snprintf(ifname, sizeof(ifname), "VLINK%u", vlink_count); - vi = if_create_name(ifname, ospf->vrf_id); + vi = if_get_by_name(ifname, ospf->vrf_id, ospf->name); /* - * if_create_name sets ZEBRA_INTERFACE_LINKDETECTION + * if_get_by_name sets ZEBRA_INTERFACE_LINKDETECTION * virtual links don't need this. */ UNSET_FLAG(vi->status, ZEBRA_INTERFACE_LINKDETECTION); |
