int write = 0;
for (ALL_LIST_ELEMENTS_RO (vrf_iflist(VRF_DEFAULT), node, ifp)) {
- vty_out (vty, "interface %s\n",ifp->name);
+ vty_frame (vty, "interface %s\n",ifp->name);
if (ifp->desc)
vty_out (vty, " description %s\n",ifp->desc);
babel_interface_nfo *babel_ifp = babel_get_if_nfo (ifp);
write++;
}
}
- vty_out (vty, "!\n");
+ vty_endframe (vty, "!\n");
write++;
}
return write;
struct listnode *node;
for (ALL_LIST_ELEMENTS_RO(eigrp->eiflist, node, ei)) {
- vty_out(vty, "interface %s\n", ei->ifp->name);
+ vty_frame(vty, "interface %s\n", ei->ifp->name);
if ((IF_DEF_PARAMS(ei->ifp)->auth_type)
== EIGRP_AUTH_TYPE_MD5) {
}
/*Separate this EIGRP interface configuration from the others*/
- vty_out(vty, "!\n");
+ vty_endframe(vty, "!\n");
}
return 0;
struct interface *ifp;
for (ALL_LIST_ELEMENTS_RO(vrf_iflist(VRF_DEFAULT), node, ifp)) {
- vty_out(vty, "interface %s\n", ifp->name);
+ vty_frame(vty, "interface %s\n", ifp->name);
if (ifp->desc)
vty_out(vty, " description %s\n", ifp->desc);
vty_out(vty, " ip hold-time eigrp %u\n",
IF_DEF_PARAMS(ifp)->v_wait);
- vty_out(vty, "!\n");
+ vty_endframe(vty, "!\n");
}
return 0;
continue;
/* IF name */
- vty_out(vty, "interface %s\n", ifp->name);
+ vty_frame(vty, "interface %s\n", ifp->name);
write++;
/* IF desc */
if (ifp->desc) {
}
write += circuit_write_mt_settings(circuit, vty);
}
- vty_out(vty, "!\n");
+ vty_endframe(vty, "!\n");
}
return write;
int i;
for (ALL_LIST_ELEMENTS_RO(vrf_iflist(VRF_DEFAULT), node, ifp)) {
- vty_out (vty, "interface %s\n", ifp->name);
+ vty_frame(vty, "interface %s\n", ifp->name);
if (ifp->desc)
vty_out (vty, " description %s\n", ifp->desc);
}
}
- vty_out (vty, "!\n");
+ vty_endframe(vty, "!\n");
}
return 0;
if (oi == NULL)
continue;
- vty_out(vty, "interface %s\n", oi->interface->name);
+ vty_frame(vty, "interface %s\n", oi->interface->name);
if (ifp->desc)
vty_out(vty, " description %s\n", ifp->desc);
ospf6_bfd_write_config(vty, oi);
- vty_out(vty, "!\n");
+ vty_endframe(vty, "!\n");
}
return 0;
}
if (ifp->ifindex == IFINDEX_DELETED)
continue;
- vty_out(vty, "!\n");
- vty_out(vty, "interface %s\n", ifp->name);
+ vty_frame(vty, "!\n");
+ vty_frame(vty, "interface %s\n", ifp->name);
if (ifp->desc)
vty_out(vty, " description %s\n", ifp->desc);
} while (rn);
ospf_opaque_config_write_if(vty, ifp);
+
+ vty_endframe(vty, NULL);
}
return write;
/* IF name */
if (vrf->vrf_id == VRF_DEFAULT)
- vty_out(vty, "interface %s\n", ifp->name);
+ vty_frame(vty, "interface %s\n", ifp->name);
else
vty_out(vty, "interface %s vrf %s\n", ifp->name,
vrf->name);
pim_static_write_mroute(pim, vty, ifp);
pim_bfd_write_config(vty, ifp);
}
- vty_out(vty, "!\n");
+ vty_endframe(vty, "!\n");
++writes;
}
}
&& (!ri->auth_str) && (!ri->key_chain))
continue;
- vty_out(vty, "interface %s\n", ifp->name);
+ vty_frame(vty, "interface %s\n", ifp->name);
if (ifp->desc)
vty_out(vty, " description %s\n", ifp->desc);
vty_out(vty, " ip rip authentication key-chain %s\n",
ri->key_chain);
- vty_out(vty, "!\n");
+ vty_endframe(vty, "!\n");
}
return 0;
}
&& (ri->split_horizon == ri->split_horizon_default))
continue;
- vty_out(vty, "interface %s\n", ifp->name);
+ vty_frame(vty, "interface %s\n", ifp->name);
if (ifp->desc)
vty_out(vty, " description %s\n", ifp->desc);
}
}
- vty_out(vty, "!\n");
+ vty_endframe(vty, "!\n");
write++;
}
vrf = vrf_lookup_by_id(ifp->vrf_id);
if (ifp->vrf_id == VRF_DEFAULT)
- vty_out(vty, "interface %s\n", ifp->name);
+ vty_frame(vty, "interface %s\n", ifp->name);
else
vty_out(vty, "interface %s vrf %s\n", ifp->name,
vrf->name);
link_params_config_write(vty, ifp);
- vty_out(vty, "!\n");
+ vty_endframe(vty, "!\n");
}
return 0;
}