[ospfd] Fix ospf passive-interface subcommand to create interface if necessary

2006-06-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

	* ospf_vty.c: ({no_,}ospf_passive_interface) Replace if_lookup_by_name
	  with a call to if_get_by_name -- if the interface does not exist
	  already, it should be created.  And remove the obsolete warning
	  message.
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index 10580ab..7c367ea 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -261,13 +261,7 @@
  struct ospf_if_params *params;
  struct route_node *rn;
 
- ifp = if_lookup_by_name (argv[0]);
- 
- if (ifp == NULL)
-   {
-     vty_out (vty, "Please specify an existing interface%s", VTY_NEWLINE);
-     return CMD_WARNING;
-   }
+ ifp = if_get_by_name (argv[0]);
 
   params = IF_DEF_PARAMS (ifp);
 
@@ -331,13 +325,7 @@
   int ret;
   struct route_node *rn;
     
-  ifp = if_lookup_by_name (argv[0]);
-  
-  if (ifp == NULL)
-    {
-      vty_out (vty, "Please specify an existing interface%s", VTY_NEWLINE);
-      return CMD_WARNING;
-    }
+  ifp = if_get_by_name (argv[0]);
 
   params = IF_DEF_PARAMS (ifp);