/* Do we need to allocate or free labels?
* Right now, since we only deal with per-prefix labels, it is not
- * necessary
- * to do this upon changes to best path except of the label index
- * changes.
+ * necessary to do this upon changes to best path except if the label
- * index changes.
- * NOTE: This is only relevant for the default instance.
++ * index changes
*/
- if (bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT
- && safi == SAFI_UNICAST) {
+ if (bgp->allocate_mpls_labels[afi][safi]) {
if (new_select) {
if (!old_select
|| bgp_label_index_differs(new_select, old_select)
install_element(CONFIG_NODE, &hostname_cmd);
install_element(CONFIG_NODE, &no_hostname_cmd);
+ install_element(CONFIG_NODE, &domainname_cmd);
+ install_element(CONFIG_NODE, &no_domainname_cmd);
install_element(CONFIG_NODE, &frr_version_defaults_cmd);
+ install_element(CONFIG_NODE, &debug_memstats_cmd);
if (terminal > 0) {
install_element(CONFIG_NODE, &password_cmd);