Description

This KB article explain you about the error error: Unique id allocation failed for '//var/etc/stp_ae_port.id' - no more free ids which is observed while configuring a new ae interface on switch.

 

Sample Configuration :

user@device#show | compare 

[edit interfaces]

ge-15/0/1 

{

ether-options 

{

802.3ad ae61;

}

}

ge-16/0/1 

{

ether-options 

{

802.3ad ae61;

}

}

aggregated-ether-options 

{

lacp 

{

active;

}

}

unit 0 {

family ethernet-switching {

interface-mode trunk;

vlan {

members all;

}

}

}

}

user@device#commit check 

error: Unique id allocation failed for '//var/etc/stp_ae_port.id' - no more free ids

Symptoms

We will Observe the commit error while try to configure AE interface, if we have more than 487 interface on the switch.

Error : " error: Unique id allocation failed for '//var/etc/stp_ae_port.id' - no more free ids "  

Solution

  • Observing the following commit error while committing the ae interface configuration "error: Unique id allocation failed for '//var/etc/stp_ae_port.id' - no more free ids "
  • The Commit error will appear when there are 487 or more interfaces in the system and xSTP is enabled on all interfaces (e.g. using command "set rstp protocols interface all"),
  • The "/var/etc/stp_ae_port.id" list will get filled and xSTP port might not work for all the aggregate interfaces that are configured. Also, "error: Unique id allocation failed for '//var/etc/stp_ae_port.id' - no more free ids" error will be seen while committing the configuration.       

 

  •  We can check the number of interface using the below command :


             user@device# show interfaces | display inheritance | display set | count    
       Count: 1509 lines 

  • We can use the below mentioned workarounds to avoid the error, which will help to reduce the count of stp_ae_port.id list :

1. Try creating separate member ranges for interfaces, it will reduce the count for interface set commands.


EXAMPLE :  
  set interfaces interface-range jtac-test1 member-range ge-0/0/0 to ge-6/0/47

  set interfaces interface-range jtac-test1 member-range ge-7/0/0 to ge-8/0/47

  set interfaces interface-range jtac-test2 member-range ge-7/0/0 to ge-8/0/47

  set interfaces interface-range jtac-test2 member-range ge-0/0/0 to ge-6/0/47

 

2. Try creating the xSTP for specific interface rather than applying for all interface.

     
EXAMPLE :
set protocols vstp interface ge-5/0/14

set protocols vstp interface ge-5/0/15

set protocols vstp interface ge-5/0/16

set protocols vstp interface ge-5/0/17
        
 

The above subjected issue is addressed in PR : PR1598839. Please refer the below link for more details :
 https://prsearch.juniper.net/problemreport/PR1598839

Modification History

version 1