Skip to content

Commit

Permalink
pim: Create vif if needed when trying to start vif.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Sep 6, 2012
1 parent ba0f724 commit 18d21f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xorp/pim/pim_node.cc
Expand Up @@ -1284,7 +1284,7 @@ PimNode::disable_vif(const string& vif_name, string& error_msg)
int
PimNode::start_vif(const string& vif_name, string& error_msg)
{
PimVif *pim_vif = vif_find_by_name(vif_name);
PimVif *pim_vif = find_or_create_vif(vif_name, error_msg);
if (pim_vif == NULL) {
error_msg = c_format("Cannot start vif %s: no such vif",
vif_name.c_str());
Expand Down

0 comments on commit 18d21f1

Please sign in to comment.