* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with GNU Zebra; see the file COPYING. If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <zebra.h>
vty_conf->flags |= F_LDPD_ENABLED;
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
if (disable) {
af_conf->flags &= ~F_LDPD_AF_ENABLED;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
}
af_conf->flags |= F_LDPD_AF_ENABLED;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
break;
}
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
break;
case LDP_IPV4_NODE:
case LDP_IPV6_NODE:
break;
}
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
break;
case LDP_IPV4_IFACE_NODE:
case LDP_IPV6_IFACE_NODE:
else
ia->hello_holdtime = secs;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
break;
default:
fatalx("ldp_vty_disc_holdtime: unexpected node");
break;
}
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
break;
case LDP_IPV4_NODE:
case LDP_IPV6_NODE:
break;
}
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
break;
case LDP_IPV4_IFACE_NODE:
case LDP_IPV6_IFACE_NODE:
else
ia->hello_interval = secs;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
break;
default:
fatalx("ldp_vty_disc_interval: unexpected node");
af_conf->acl_thello_accept_from[0] = '\0';
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
nbrp->flags |= F_NBRP_KEEPALIVE;
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
else
af_conf->keepalive = secs;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
ia->hello_holdtime = 0;
ia->hello_interval = 0;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
RB_INSERT(iface_head, &vty_conf->iface_tree, iface);
QOBJ_REG(iface, iface);
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
} else {
ia = iface_af_get(iface, af);
if (!ia->enabled) {
ia->enabled = 1;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
}
}
}
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
RB_REMOVE(tnbr_head, &vty_conf->tnbr_tree, tnbr);
free(tnbr);
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
RB_INSERT(tnbr_head, &vty_conf->tnbr_tree, tnbr);
QOBJ_REG(tnbr, tnbr);
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
af_conf->acl_label_advertise_for[0] = '\0';
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
sizeof(af_conf->acl_label_allocate_for));
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
af_conf->acl_label_expnull_for[0] = '\0';
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
af_conf->acl_label_accept_for[0] = '\0';
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
else
af_conf->flags |= F_LDPD_AF_NO_GTSM;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
}
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
else
vty_conf->flags |= F_LDPD_DS_CISCO_INTEROP;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
else
vty_conf->trans_pref = DUAL_STACK_LDPOV4;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
nbrp->auth.method = AUTH_MD5SIG;
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
nbrp->gtsm_enabled = 0;
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
RB_REMOVE(l2vpn_head, &vty_conf->l2vpn_tree, l2vpn);
l2vpn_del(l2vpn);
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
VTY_PUSH_CONTEXT(LDP_L2VPN_NODE, l2vpn);
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
else
strlcpy(l2vpn->br_ifname, ifname, sizeof(l2vpn->br_ifname));
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
else
l2vpn->mtu = mtu;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
else
l2vpn->pw_type = pw_type;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
RB_REMOVE(l2vpn_if_head, &l2vpn->if_tree, lif);
free(lif);
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
RB_INSERT(l2vpn_if_head, &l2vpn->if_tree, lif);
QOBJ_REG(lif, l2vpn_if);
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
RB_REMOVE(l2vpn_pw_head, &l2vpn->pw_tree, pw);
free(pw);
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
VTY_PUSH_CONTEXT_SUB(LDP_PSEUDOWIRE_NODE, pw);
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
pw->flags |= F_PW_CWORD_CONF;
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
pw->flags |= F_PW_STATIC_NBR_ADDR;
}
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
else
pw->lsr_id = lsr_id;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
else
pw->pwid = pwid;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
else
pw->flags &= ~F_PW_STATUSTLV_CONF;
- ldp_reload(vty_conf);
+ ldp_config_apply(vty, vty_conf);
return (CMD_SUCCESS);
}
struct iface *iface;
if (ldp_iface_is_configured(conf, ifname))
- return NULL;
+ return (NULL);
iface = if_new(name);
RB_INSERT(iface_head, &conf->iface_tree, iface);
struct l2vpn_if *lif;
struct l2vpn_pw *pw;
- while ((lif = RB_ROOT(&l2vpn->if_tree)) != NULL) {
+ while ((lif = RB_ROOT(l2vpn_if_head, &l2vpn->if_tree)) != NULL) {
QOBJ_UNREG(lif);
RB_REMOVE(l2vpn_if_head, &l2vpn->if_tree, lif);
free(lif);
}
- while ((pw = RB_ROOT(&l2vpn->pw_tree)) != NULL) {
+ while ((pw = RB_ROOT(l2vpn_pw_head, &l2vpn->pw_tree)) != NULL) {
QOBJ_UNREG(pw);
RB_REMOVE(l2vpn_pw_head, &l2vpn->pw_tree, pw);
free(pw);
}
- while ((pw = RB_ROOT(&l2vpn->pw_inactive_tree)) != NULL) {
+ while ((pw = RB_ROOT(l2vpn_pw_head,
+ &l2vpn->pw_inactive_tree)) != NULL) {
QOBJ_UNREG(pw);
RB_REMOVE(l2vpn_pw_head, &l2vpn->pw_inactive_tree, pw);
free(pw);