Reset Search
 

 

Article

How to Convert EOS Configurations to EXOS using e2x.py

« Go Back

Information

 
TitleHow to Convert EOS Configurations to EXOS using e2x.py
Objective
Use e2x.py to convert EOS commands to EXOS commands.
Environment
  • Windows, Linux, or Mac PC running Python 3.3 or higher.
  • EOS configuration
  • e2x.py
Procedure
  1. If you don't already have Python v3.3 installed please download and install it
  2. Download the latest E2X bin.zip file from Extreme Networks github
  3. Extract the zip and you will find the file e2x.py
  4. Execute the e2x.py in your command line
Example E2X output:
ubuntu@ubuntu:~$ python3 e2x.py
# Enter EOS configuration commands, one per line.
# End with CTRL+D (sometimes needed twice)
  1. Type or paste commands to be converted one line at a time and press CTRL+D twice when done.  (Note: the enter/return key advances you to the next line)
    • If the commands are support for conversion it will display the EXOS configuration

Follow the discussion on the HUB at:
https://community.extremenetworks.com/extreme/topics/how-to-configure-xos-to-use-eos-default-spanning-tree-configuration
Additional notes
e2x.py is a python v3 script used to convert EOS configurations to EXOS configurations.  E2X is in the early stages of development so the supported conversions are limited.  See https://github.com/extremenetworks/E2X/releases for the latest version of E2X.  As of E2X version 0.6.4 the below command conversions are supported.
  •     Port
  •     LAG (link aggregation group)
  •     VLAN
  •     STP (spanning tree)
  •     ACL

The BOLD text is the EXOS CLI conversion.  Adding "set port jumbo disable *.1.*" to the top of your commands will reduce the command output as EOS has jumbo frames enabled by default.

Example 1:
ubuntu@ubuntu:~$ python3 e2x.py
# Enter EOS configuration commands, one per line.
# End with CTRL+D (sometimes needed twice)
set port jumbo disable *.1.*
set spantree mstcfgid cfgname Showroom rev 1
set spantree msti sid 1 create
set spantree msti sid 2 create
set spantree mstmap 1,20,50,100 sid 1
set spantree mstmap 30,101,102,103 sid 2
set spantree priority 4096 1
set spantree priority 8192 2
###Pressed CTRL+D###
configure mstp region Showroom
configure mstp revision 1
configure stpd s0 delete vlan Default ports all
disable stpd s0 auto-bind vlan Default
configure stpd s0 mode mstp cist
enable stpd s0
create stpd s1
configure stpd s1 default-encapsulation dot1d
configure stpd s1 mode mstp msti 1
enable stpd s1 auto-bind vlan Default
configure stpd s1 priority 4096
enable stpd s1
create stpd s2
configure stpd s2 default-encapsulation dot1d
configure stpd s2 mode mstp msti 2
configure stpd s2 priority 8192
enable stpd s2

NOTICE: Mapping port "tg.1.49" to port "53"
NOTICE: Mapping port "tg.1.50" to port "54"
NOTICE: Port "49" of target switch is not used
NOTICE: Port "50" of target switch is not used
NOTICE: Port "51" of target switch is not used
NOTICE: Port "52" of target switch is not used
NOTICE: XOS always allows single port LAGs


Example 2:
ubuntu@ubuntu:~$ python3 e2x.py
# Enter EOS configuration commands, one per line.
# End with CTRL+D (sometimes needed twice)
set port jumbo disable *.1.*
set lacp aadminkey lag.0.1 1
set port lacp port ge.1.47 aadminkey 1
set port lacp port ge.1.48 aadminkey 1
set port lacp port ge.1.47 enable
set port lacp port ge.1.48 enable
###Pressed CTRL+D###
enable sharing 47 grouping 47-48 algorithm address-based L3 lacp
configure vlan Default delete ports 48
configure stpd s0 delete vlan Default ports all
disable stpd s0 auto-bind vlan Default
configure stpd s0 mode mstp cist
create stpd s1
configure stpd s1 mode mstp msti 1
enable stpd s1 auto-bind vlan Default
enable stpd s0
enable stpd s1

NOTICE: Mapping port "tg.1.49" to port "53"
NOTICE: Mapping port "tg.1.50" to port "54"
NOTICE: Port "49" of target switch is not used
NOTICE: Port "50" of target switch is not used
NOTICE: Port "51" of target switch is not used
NOTICE: Port "52" of target switch is not used
NOTICE: VLAN configuration of port ge.1.47 shadowed by LAG configuration
NOTICE: XOS always allows single port LAGs


Example 3:
ubuntu@ubuntu:~$ python3 e2x.py
# Enter EOS configuration commands, one per line.
# End with CTRL+D (sometimes needed twice)
set port jumbo disable *.1.*
set vlan create 3
set vlan name 3 "Data"
set vlan egress 3 ge.1.1 tagged
###Pressed CTRL+D###
create vlan Data tag 3
configure vlan Data add ports 1 tagged
configure stpd s0 delete vlan Default ports all
disable stpd s0 auto-bind vlan Default
configure stpd s0 mode mstp cist
create stpd s1
configure stpd s1 mode mstp msti 1
enable stpd s1 auto-bind vlan Default
enable stpd s1 auto-bind vlan Base
enable stpd s0
enable stpd s1

NOTICE: Mapping port "tg.1.49" to port "53"
NOTICE: Mapping port "tg.1.50" to port "54"
NOTICE: Port "49" of target switch is not used
NOTICE: Port "50" of target switch is not used
NOTICE: Port "51" of target switch is not used
NOTICE: Port "52" of target switch is not used
NOTICE: XOS always allows single port LAGs

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255