summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_interface.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-04-23 16:13:46 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-04-23 16:13:46 +0200
commit1ce626aea6f1f274da92478a8e487c229b08f9ce (patch)
tree5d3e241a513f8f7af640776cedf2837d269e9c03 /ospfd/ospf_interface.c
parentMerge pull request #15813 from pguibert6WIND/isis_srv6_backup_endx (diff)
downloadfrr-1ce626aea6f1f274da92478a8e487c229b08f9ce.tar.xz
frr-1ce626aea6f1f274da92478a8e487c229b08f9ce.zip
vtysh: Show `ip ospf network ...` even if it's not the same as the interface type
ospfv3 shows this unconditionally, and ospfv2 does not show `ip ospf network ...` if the type of the interface matches the specified network. Fixes: https://github.com/FRRouting/frr/issues/15817 Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_interface.c')
-rw-r--r--ospfd/ospf_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c
index 319db1efe..022e48f72 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -1382,7 +1382,8 @@ static int ospf_ifp_create(struct interface *ifp)
(!OSPF_IF_PARAM_CONFIGURED(IF_DEF_PARAMS(ifp), type) ||
if_is_loopback(ifp))) {
SET_IF_PARAM(IF_DEF_PARAMS(ifp), type);
- IF_DEF_PARAMS(ifp)->type = ospf_default_iftype(ifp);
+ if (!IF_DEF_PARAMS(ifp)->type_cfg)
+ IF_DEF_PARAMS(ifp)->type = ospf_default_iftype(ifp);
}
ospf = ifp->vrf->info;