diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-16 18:01:03 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-16 18:07:11 +0300 | 
| commit | 608c887069173344b7bb6b1d3d4a59841ecdff4b (patch) | |
| tree | 7efa49b17948a3fbc7638b4d9f46a87322851e89 /isisd/isis_circuit.c | |
| parent | de093103cb859b7ec2349bf158764233efd15705 (diff) | |
*: unify if_is_loopback/if_is_loopback_or_vrf
We should always treat the VRF interface as a loopback. Currently, this
is not the case, because in some old pre-VRF code we use if_is_loopback
instead of if_is_loopback_or_vrf. To avoid any future problems, the
proposal is to rename if_is_loopback_or_vrf to if_is_loopback and use it
everywhere. if_is_loopback is renamed to if_is_loopback_exact in case
it's ever needed, but currently it's not used anywhere.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'isisd/isis_circuit.c')
| -rw-r--r-- | isisd/isis_circuit.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c index 8810d6107d..59212db3eb 100644 --- a/isisd/isis_circuit.c +++ b/isisd/isis_circuit.c @@ -505,7 +505,7 @@ void isis_circuit_if_add(struct isis_circuit *circuit, struct interface *ifp)  			circuit->circ_type = CIRCUIT_T_BROADCAST;  	} else if (if_is_pointopoint(ifp)) {  		circuit->circ_type = CIRCUIT_T_P2P; -	} else if (if_is_loopback_or_vrf(ifp)) { +	} else if (if_is_loopback(ifp)) {  		circuit->circ_type = CIRCUIT_T_LOOPBACK;  		circuit->is_passive = 1;  	} else { @@ -1332,7 +1332,7 @@ ferr_r isis_circuit_passive_set(struct isis_circuit *circuit, bool passive)  	if (circuit->is_passive == passive)  		return ferr_ok(); -	if (if_is_loopback_or_vrf(circuit->interface) && !passive) +	if (if_is_loopback(circuit->interface) && !passive)  		return ferr_cfg_invalid("loopback is always passive");  	if (circuit->state != C_STATE_UP) {  | 
