diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-06-19 17:49:32 +0200 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2019-08-27 15:08:50 +0200 | 
| commit | e0f36c91e24d20a1013c537cc4ac47c2d71f00c5 (patch) | |
| tree | 80e41b56a1de572110b465fa7d38ac8475fdb4b4 /bfdd/bfdd_vty.c | |
| parent | 3a20889ff61c0cfaee73128324957b10603d361f (diff) | |
bfdd: if no vrfname is passed, use default vrf name
default vrf name is used to forge the key that permits storing the
session.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bfdd/bfdd_vty.c')
| -rw-r--r-- | bfdd/bfdd_vty.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c index a211f34219..5663ce54cb 100644 --- a/bfdd/bfdd_vty.c +++ b/bfdd/bfdd_vty.c @@ -685,6 +685,9 @@ static int bfd_configure_peer(struct bfd_peer_cfg *bpc, bool mhop,  			snprintf(ebuf, ebuflen, "vrf name too long");  			return -1;  		} +	} else { +		bpc->bpc_has_vrfname = true; +		strlcpy(bpc->bpc_vrfname, VRF_DEFAULT_NAME, sizeof(bpc->bpc_vrfname));  	}  	return 0;  | 
