nerc-project / operations

Issues related to the operation of the NERC OpenShift environment
2 stars 0 forks source link

Write a switch driver for Cisco NXOS for ansible-switches #630

Closed hakasapl closed 2 months ago

hakasapl commented 4 months ago

In order to control Cisco switches in NERC from our existing MOCA infrastructure, we must write a Cisco NXOS driver. The driver can be tested on existing Cisco switches in the MOCA network as well as the new core switches, once they arrive.

hakasapl commented 4 months ago

I will figure out what is connected to the switch in R4-PA-C02 and move those connections to the dell switch in that rack if possible. Then I will make that cisco switch a test switch. We can't touch the one in R4-PA-C04 yet as it uplinks the NEU network.

hakasapl commented 4 months ago

This PR will move production stuff off of R4-PA-C02 cisco: https://github.com/CCI-MOC/ansible-switches/pull/57

hakasapl commented 3 months ago

I've written as much as possible without testing. This is now blocked on moving the cisco switches out of production which requires some coordination with NEU.

StHeck commented 3 months ago

Would something like this help?

Virtual NX-OS switch for network prototyping:

https://www.cisco.com/c/en/us/products/switches/nexus-9000v-switch/index.html

https://software.cisco.com/download/home/286312239/type/282088129/release/7.0(3)I6(1)

On 7/24/24 00:58, Hakan Saplakoglu wrote:

I've written as much as possible without testing. This is now blocked on moving the cisco switches out of production which requires some coordination with NEU.

— Reply to this email directly, view it on GitHub https://github.com/nerc-project/operations/issues/630#issuecomment-2246881641, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACODMWDW5NLIMNKPLBG7XZ3ZN4YAJAVCNFSM6AAAAABKCEZAMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBWHA4DCNRUGE. You are receiving this because you are subscribed to this thread.Message ID: @.***>

--------------5KfEozi52mG6rMZQHyBH5D5X Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

<!DOCTYPE html>

Would something like this help?

Virtual NX-OS switch for network prototyping:

https://www.cisco.com/c/en/us/products/switches/nexus-9000v-switch/index.html

https://software.cisco.com/download/home/286312239/type/282088129/release/7.0(3)I6(1)

On 7/24/24 00:58, Hakan Saplakoglu wrote:

I've written as much as possible without testing. This is now blocked on moving the cisco switches out of production which requires some coordination with NEU.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <nerc-project/operations/issues/630/2246881641@github.com>

--------------5KfEozi52mG6rMZQHyBH5D5X--

joachimweyl commented 3 months ago

@hakasapl is this still blocked on moving the cisco switches out of production? I believe there were other switches @naved001 mentioned we could use last week.

hakasapl commented 3 months ago

No, not blocked on Cisco anymore. The next time I'm at MGHPCC I will move the switch @naved001 mentioned somewhere where I can work on it.

hakasapl commented 2 months ago

Some good progress on this. NXOS actually supports replacing configuration in-place without reloading which simplifies things a ton. So I have python code that converts the generic yaml configurations into nxos config format, and that will be passed directly to the switch. Last thing I need to implement is breakout configs and I should be able to merge the driver.

joachimweyl commented 2 months ago

@hakasapl can you provide an update, I think this is even further along now :)

hakasapl commented 2 months ago

Yes, I would classify this as "feature complete". So I'm just testing for a bit before I make the PR. I am still working through some bugs.

hakasapl commented 2 months ago

PR created for this driver: https://github.com/CCI-MOC/ansible-switches/pull/59