Changing PE IDs with SPX Interactive-setup

SPX interactive-setup makes changing PE IDs simpler.
The procedure assumes that SPX has been enabled as described in this guide.
Follow these steps to change assigned PE IDs in a Campus Fabric domain with SPX interactive-setup.
Note: The new PE ID can be any ID including an existing or provisional PE ID. The exception is an ID that causes a module mismatch.
  1. Use the show running-config command to verify that the CB is enabled and to check SPX port and LAG configurations.
    ICX7750-48F Router(config)# show running-config
    Current configuration:
    !
    ver 08.0.50b1T203
    !
    stack unit 1
      module 1 icx7750-48-xgf-port-management-module
      module 2 icx7750-qsfp-6port-qsfp-240g-module
      module 3 icx7750-6q-6port-qsfp-240g-module
    spx unit 17
      module 1 icx7250-24-port-management-module
      module 2 icx7250-sfp-plus-8port-80g-module
      spx-port 17/2/4
      spx-lag 17/2/5 to 17/2/6 17/2/8
    spx unit 18
      module 1 icx7250-24-port-management-module
      module 2 icx7250-sfp-plus-8port-80g-module
      spx-port 18/2/3
      spx-lag 18/2/5 to 18/2/6 18/2/8
    !
    !
    spx cb-enable
    spx cb-configure
      zero-touch-enable                                               
      spx-port 1/1/3 
      spx-port 1/1/16 
      zero-touch-ports 1/1/3 to 1/1/16 
      pe-id 1/1/3 18 17 1/1/16
    !
    !
    no inline power non-pd-detection enable
    ip ssl min-version tls_1_1
    !
    !
    interface management 1
    !
    !
    end
    
    In this example, the show running-config command indicates that the CB is already enabled. The zero-touch utility is also enabled and must be disabled. Two CB SPX ports (1/1/3 and 1/1/16) are configured, and a range of ports are identified by the zero-touch-ports configuration to detect new PE candidates. Two PEs, 17 and 18, are attached to the CB (a standalone ICX 7750).
  2. If necessary, disable the zero-touch utility.
    ICX7750-48F Router(config-spx-cb)# no zero-touch-enable	  <-- You cannot run spx interactive-
                                                                     setup when zero-touch 
                                                                     is enabled.
    ICX7750-48F Router(config-spx-cb)# end
    
    In the example, the zero-touch utility is disabled as a precursor to enabling interactive-setup.
  3. In Privileged EXEC mode, enable the spx interactive-setup utility.
    ICX7750-48F Router# spx interactive-setup
    You can abort spx interactive-setup at any stage by <ctrl-c>
    0: quit
    1: change PE IDs
    2: discover and convert new units (no startup-config flash) to PEs
    3: discover and convert existing/new standalone units to PEs
    2&3 can also find new links and convert chain(s) to ring.
    
    The example shows the options available when you start the interactive-setup utility.
  4. When prompted, type "1" to change PE IDs.
    Please type your selection: 1
                +----+        +----+                                               
      1/1/3--2/3| 18 |2/5==2/5| 17 |2/4--1/1/16                                    
                +----+        +----+                                               
    
  5. When prompted, type the new ID for each PE unit. After you complete your entry, type done. If you do not want to change the ID of a particular PE, press the Enter key. At the end of the PE list, you are prompted to confirm or cancel your entries.
    Note: A PE ID can be changed to any legitimate ID, even if it is used by an existing PE. For example, you can swap two IDs. There are a few exceptions:
    • The module configuration of the new ID must either be empty or match the PE.
    • SPX port or LAG configuration, including speed configuration, must match.

    If you try to change a PE ID using an existing ID or provisional PE ID with a module mismatch, the ID selection is blocked, and SPX interactive-setup prints a warning similar to the following message.

    Error! PE21 --> 51 requires same modules or no PE51 configuration.
    Allowed IDs: 18,21,26-29,33-39,42-49,52-56
    

    If you select an existing or provisional ID that would result in an SPX port or SPX LAG configuration mismatch, the system blocks the configuration and displays a warning similar to the following message.

    Error! PE21 --> 23 requires same spx-port/lag or no PE23 configuration.
    Allowed IDs: 18,21,26-29,33-39,42-49,52-56
    
    

    If you select an existing or provisional ID that would result in an SPX port or SPX LAG speed mismatch, the system blocks the configuration and displays a warning similar to the following message.

    Error! PE21 --> 32: Port 21/2/2 and 32/2/2 have different speed configuration.
    Allowed IDs: 18,21,26-29,33-39,42-49,52-56
    

    Note: After a PE is re-numbered, the old configuration still exists if it is a static unit. The system does not convert the old configuration to the new IDs. For example, if PE 20 changes its ID to 30, the system does not move interface 20/1/1 configuration to interface 30/1/1.
    Note: You can type n to cancel. If you need to cancel later, type Cntrl-C at any time.
  6. Type y to confirm your changes.
    You do not need to physically detach or un-configure any unit. The system temporarily disables any SPX ports or LAGs necessary to detach the affected PE units. After a few seconds, the ports are re-enabled, allowing the PEs to join with new PE IDs.
    Type "done" to finish, or a new ID for PE 18 (default 18): 23
    Type "done" to finish, or a new ID for PE 17 (default 17): 24
    Change IDs: 18->23, 17->24, 
    Do you want to proceed? (enter 'y' or 'n'): y
    T=14m43.4: Sending new IDs to PE(s) 17-18...
    power down ports to detach PEs: 1/1/3 1/1/16
    power up ports: 1/1/3 1/1/16. 
    Affected PEs will join with new IDs.
    Exit spx interactive-setup, reason: done ID changes
    Sica Unit id:24, PoD License Capacity:8
    Stack unit 24 Power supply 1 is up
    Stack unit 24 Power supply 2 is down
    Sica Unit id:23, PoD License Capacity:8
    Stack unit 23 Power supply 1 is up
    Stack unit 23 Power supply 2 is down
    sh spx
    T=17m13.2: alone: standalone, D: dynamic cfg, S: static
    ID   Type          Role    Mac Address    Pri State   Comment                   
    1  S ICX7750-48XGF alone   cc4e.24d2.2c00   0 local   Ready
    23 D ICX7250-24    spx-pe  cc4e.24dc.e9ce N/A remote  Ready
    24 D ICX7250-24    spx-pe  cc4e.24dc.f166 N/A remote  Ready
    
                                                                                   
         +---+                                                                     
      2/1| 1 |2/4                                                                  
         +---+                                                                     
                +----+        +----+                                               
      1/1/3--2/3| 23 |2/5==2/5| 24 |2/4--1/1/16                                    
                +----+        +----+            
    
    The example changes the ID for PE 18 to 23 and the ID for PE 17 to 24. At the end of the process, the SPX configuration is displayed, showing the new PE IDs.
  7. Execute the write memory command to save the configuration.
    ICX7750-48F Router# write memory
    

The following example uses the SPX interactive-setup utility to change two existing PE IDs.

ICX7750-48F Router# configure terminal
ICX7750-48F Router(config)# show running-config
Current configuration:
!
ver 08.0.50b1T203
!
stack unit 1
  module 1 icx7750-48-xgf-port-management-module
  module 2 icx7750-qsfp-6port-qsfp-240g-module
  module 3 icx7750-6q-6port-qsfp-240g-module
spx unit 17
  module 1 icx7250-24-port-management-module
  module 2 icx7250-sfp-plus-8port-80g-module
  spx-port 17/2/4
  spx-lag 17/2/5 to 17/2/6 17/2/8
spx unit 18
  module 1 icx7250-24-port-management-module
  module 2 icx7250-sfp-plus-8port-80g-module
  spx-port 18/2/3
  spx-lag 18/2/5 to 18/2/6 18/2/8
!
!
spx cb-enable
spx cb-configure
  zero-touch-enable                                               
  spx-port 1/1/3 
  spx-port 1/1/16 
  zero-touch-ports 1/1/3 to 1/1/16 
  pe-id 1/1/3 18 17 1/1/16
!
!
no inline power non-pd-detection enable
ip ssl min-version tls_1_1
!
!
interface management 1
!
!
end
ICX7750-48F Router(config)# spx cb-config
ICX7750-48F Router(config-spx-cb)# no zero-touch-enable	  <-- You cannot run spx interactive-
                                                                 setup when zero-touch is enabled.
ICX7750-48F Router(config-spx-cb)# end
ICX7750-48F Router# spx interactive-setup
You can abort spx interactive-setup at any stage by <ctrl-c>
0: quit
1: change PE IDs
2: discover and convert new units (no startup-config flash) to PEs
3: discover and convert existing/new standalone units to PEs
2&3 can also find new links and convert chain(s) to ring.
Please type your selection: 1
            +----+        +----+                                               
  1/1/3--2/3| 18 |2/5==2/5| 17 |2/4--1/1/16                                    
            +----+        +----+                                               
                                                                               
Type "done" to finish, or a new ID for PE 18 (default 18): 23
Type "done" to finish, or a new ID for PE 17 (default 17): 24
Change IDs: 18->23, 17->24, 
Do you want to proceed? (enter 'y' or 'n'): y
T=14m43.4: Sending new IDs to PE(s) 17-18...
power down ports to detach PEs: 1/1/3 1/1/16
power up ports: 1/1/3 1/1/16. 
Affected PEs will join with new IDs.
Exit spx interactive-setup, reason: done ID changes
Sica Unit id:24, PoD License Capacity:8
Stack unit 24 Power supply 1 is up
Stack unit 24 Power supply 2 is down
Sica Unit id:23, PoD License Capacity:8
Stack unit 23 Power supply 1 is up
Stack unit 23 Power supply 2 is down
sh spx
T=17m13.2: alone: standalone, D: dynamic cfg, S: static
ID   Type          Role    Mac Address    Pri State   Comment                   
1  S ICX7750-48XGF alone   cc4e.24d2.2c00   0 local   Ready
23 D ICX7250-24    spx-pe  cc4e.24dc.e9ce N/A remote  Ready
24 D ICX7250-24    spx-pe  cc4e.24dc.f166 N/A remote  Ready

                                                                               
     +---+                                                                     
  2/1| 1 |2/4                                                                  
     +---+                                                                     
            +----+        +----+                                               
  1/1/3--2/3| 23 |2/5==2/5| 24 |2/4--1/1/16                                    
            +----+        +----+                                               
ICX7750-48F Router# write memory