This procedure describes how to delete an address pool.
You must first halt new sessions from being started and verify that
no active sessions remain. The steps are similar to those described
in Changing Address Attributes in the Address Pool.
To delete an address from an address pool:
- From configuration mode, activate maintenance mode for
an address pool.
[edit]
user@host# set routing-instance juniper-vrf access address-assignment address-pools pool-name service-mode maintenance
user@host# commit
- Verify that all subscriber sessions have ended.
[edit]
user@host# run show unified-edge tdf address-assignment pool brief
The service mode shows Maintenance – Active
Phase
if all the sessions are cleared. The service
mode shows Maintenance – In Phase
if some sessions are active. The service mode shows Maintenance – Out Phase
if maintenance mode
is not configured (that is, it is in operational mode).
- (Optional) Terminate sessions that are using an address
pool using the clear command.
[edit]
user@host# run clear unified-edge tdf subscribers routing-instance juniper-vrf
When the subscriber count is zero and all sessions have terminated,
the service mode status indicates Maintenance –
Active phase
. In this state, you can modify pool attributes
and commit changes.
- When the subscriber count is zero and all sessions have
ended, modify address pool attributes and commit changes.
Note: These modifications, if made outside of active maintenance
mode, fail.
- Delete the address pool and commit the change.
[edit]
user@host# delete routing-instance juniper-vrf access address-assignment address-pools juniper-pool
user@host# commit
- Verify that the address pool has been deleted (that is,
it is not listed in the output).
[edit]
user@host# run show configuration routing-instance juniper-vrf access address-assignment address-pools juniper-pool