File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -88,14 +88,15 @@ void static_next_hop_bfd_monitor_enable(struct static_nexthop *sn,
88
88
bool mhop ;
89
89
int family ;
90
90
struct ipaddr source ;
91
+ struct vrf * vrf = NULL ;
91
92
92
93
use_interface = false;
93
94
use_source = yang_dnode_exists (dnode , "./source" );
94
95
use_profile = yang_dnode_exists (dnode , "./profile" );
95
96
onlink = yang_dnode_exists (dnode , "../onlink" ) &&
96
97
yang_dnode_get_bool (dnode , "../onlink" );
97
98
mhop = yang_dnode_get_bool (dnode , "./multi-hop" );
98
-
99
+ vrf = vrf_lookup_by_name ( yang_dnode_get_string ( dnode , "../vrf" ));
99
100
100
101
family = static_next_hop_type_to_family (sn );
101
102
if (family == AF_UNSPEC )
@@ -133,6 +134,8 @@ void static_next_hop_bfd_monitor_enable(struct static_nexthop *sn,
133
134
bfd_sess_set_profile (sn -> bsp , use_profile ? yang_dnode_get_string (
134
135
dnode , "./profile" )
135
136
: NULL );
137
+ if (vrf && vrf -> vrf_id != VRF_UNKNOWN )
138
+ bfd_sess_set_vrf (sn -> bsp , vrf -> vrf_id );
136
139
137
140
bfd_sess_set_hop_count (sn -> bsp , (onlink || mhop == false) ? 1 : 254 );
138
141
You can’t perform that action at this time.
0 commit comments