aboutsummaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2014-12-19Fix up self-test codeSteve McIntyre
switch_restart closes the connection itself Change-Id: I6eb045a211ea06be99064eafec497c891a0770cf
2014-12-19Added switch_restart method - use to force config rollbackSteve McIntyre
This will be horrendous to use, as it's a very slow operation. But AFAICS it's the only safe way to force a switch to revert config Used by error paths in complex API calls Change-Id: Ib042dacfcf026d754398dfb1f40d31f6e2a4f1cc
2014-10-20Simplify driver setupSteve McIntyre
Change-Id: Ia66afaaaf2117f1e5ef1a9904f78f0906c75a4c2
2014-10-20Fix cut and paste error in error messagesSteve McIntyre
Change-Id: Ia88a74d21a6e341deaaee04776c79c95de18834a
2014-10-10Initial skeleton for driversSteve McIntyre
Change-Id: I78c85bca755c15af5f90d987b6b9f9bef2ba92b8
2014-10-10Clear out any existing systemdata each callSteve McIntyre
Change-Id: Iee686ed664463faa4e18bb15999bb244a69daa57
2014-10-10Rename driver files to remove hyphensSteve McIntyre
Change-Id: I2a8cc8f87023001db1915401c5afb533f3c3225e
2014-10-01Major code change: s/general/access/Steve McIntyre
Fix misunderstanding from unclear documentation: in Cisco terms, we want to be using "Access" mode for ports rather than "General" mode. This simplifies the sX300 driver somewhat (which is good!) and makes the two drivers more similar in operation. Testing is good: * the built-in test harnesses work ok for driving both models of switch * single SF-300 shows appropriate VLAN isolation * single Catalyst-3750 works similarly * cross SF-300 interop works similarly * SF-300 to Catalyst-3750 works similarly Change-Id: I1b89afc4c3504f197a2f8dd819e7c4ee3babfde9
2014-09-24Change coding styleSteve McIntyre
Switch from CamelCase to under_score style for method names Change-Id: I3ae5bafa659f7d8a847e51b88a368b3fba5f272f
2014-09-18stupid changeSteve McIntyre
Change-Id: I16915039ac44da08bd12eb5f0912a6a2bfb61bc6
2014-09-17Add "no shutdown" when changing VLANsSteve McIntyre
Cisco docs suggest this, and it doesn't hurt
2014-09-15Remove duplicate def for _show_clockSteve McIntyre
2014-08-19Remove old debugSteve McIntyre
2014-08-19Loosen the expected regex for sX300 modelsSteve McIntyre
The trailing "P" looks to be for PoE instead of ports, maybe. The SF300-48 in the lab doesn't have the trailing "P".
2014-08-18Believed-working driver for the Catalyst 3750Steve McIntyre
Will need more testing yet! Not yet chccked VLAN interop between switches. Includes the "TrunkWildCardVlans" capability, the first one we've defined. Not sure how many exactl models of Catalyst this will support, may need to tighten up on the _expected_descr_re later once we've done more testing.
2014-08-18Move more common code out into common.pySteve McIntyre
Refactor existing code some more to make it more common for drivers. Rename a lot of internal class variables to make it clearer they're internal.
2014-08-18Add the SwitchGetCapabilites() methodSteve McIntyre
Returns an empty list so far, other switches/drivers may add more.
2014-08-15Fix format strings - ports are strings, not numbersSteve McIntyre
2014-08-14More WIP for the Catalyst driverSteve McIntyre
Add support for saving running config Initial support for general port VLAN setting
2014-08-14Clean up driver interface for sX300Steve McIntyre
Refactor the interface around setting up general ports in VLANs. Move all the direct calls to the switch to internal-only functions, and just expose the top-level wrapper PortSetGeneralVlan(). This makes the interface easier to match up with that for other drviers.
2014-08-13More WIPSteve McIntyre
Deal with s/access/general/ Parse "show interfaces" for port mode
2014-08-12Add commentSteve McIntyre
2014-08-12WIP on Catalyst supportSteve McIntyre
Working: connect/disconnect identify device identify ports create/destroy/rename/list VLANs
2014-08-12Move common driver methods out to a separate fileSteve McIntyre
2014-08-12Set window size to remove/reduce pagingSteve McIntyre
2014-08-12Minor tweaksSteve McIntyre
2014-08-11WIP checkin of Cisco sX300 driverSteve McIntyre
Believed functional, needs more stress-testing