.. image:: ../_static/openl2m_logo.png ========================== Adding Arista eAPI Devices ========================== .. note:: At the time of writing (Oct 2025), the Arista eAPI driver is READ-ONLY! Prerequisites ------------- Create a Credential Profile with the proper username / password that will be used to access this device via the eAPI. As needed, create Commands and Command Groups to assign to this device. Switch Configuration -------------------- Arista switches can be managed via the device REST API. You will need to configure the switch to allow this access. Something like this is needed as a base config. We recommend only running over the https port (using TLS). .. code-block:: bash switch(config)# management api http-commands switch(config-mgmt-api-http-cmds)# no shutdown switch(config-mgmt-api-http-cmds)# protocol https switch(config-mgmt-api-http-cmds)# no protocol http # you should consider securing this with an ACL, e.g. vrf MGMT no shutdown ip access-group YOUR_MANAGEMENT_ACL Please refere to your Arista eAPI documentation for more. A good place to start is https://arista.my.site.com/AristaCommunity/s/article/arista-eapi-101 OpenL2M Configuration --------------------- From the top-right Admin menu, go to Administration, and then click on Switches, or click the "+ Add" option Configure the name to show in the menu (does not need to be the switch hostname), and add a description if so desired. Add the IP v4 address or resolvable DNS name used to connect to the device. **In the Connection Configuration section, set:** **Connector Type:** to * **Arista eAPI**: for Arista switches supported via the eAPI REST API. Also set the proper Credentials Profile! **SNMP Profile:** this is a don't care field for AOS-CX switches. **Credentials Profile:** Select the proper profile that stores the REST API credentials. Note that these same credentials used for any Commands applied to this device. **Group Membership section:** For this device to be visible to users (including Admin) in their menu, you need to add it to at least one Group! Optional settings ----------------- In the Commands Configuration section, set: **Command List:** Select the command list desired, if any. `See here for more ` **In View Options section, set:** **Indentation Level:** If > 0, will add some spaces in the menu before the switch name; this can look nicer ! **Default View:** The Default View setting defines the opening tab when a user clicks on the switch. Setting this to Details is useful for routers, so that ARP and LLDP information are loaded immediately. Note that it then take a little longer to render the page, due to the extra data that needs to be read from the device. **In the Access Options section, set:** **Status:** *Note:* switches will only show in the list if their status is *Active*. For SNMP devices, devices need to have an SNMP Profile applied! Likewise, if a switch does not have a Credentials profile, interface commands and global commands options will not show. **Read-Only:** If a switch is marked Read-Only, no user (not even admin), can change settings on the switch. However, if commands are configured, they can be executed. This is useful for e.g. routers. .. note:: At the time of writing, the eAPI driver is READ-ONLY! **Bulk-Edit:** The Bulk Edit setting is enabled by default. If disabled (un-checked), this switch will not allow multiple interfaces to be edited at once. **Poe-Toggle:** If selected, users can toggle PoE on *all* ports, including those ports on vlans they do *not* have access to. (e.g this is useful for Wifi Access Points, VOIP Phones, etc.) **Edit description:** Enabled by default. If *not* selected, users cannot edit the interface descriptions on this device (regardless of rights!)