aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-24Initial Debian packagingdebianSteve McIntyre
Change-Id: I4190095771711f22de5d248a11eb0697ad9d527a
2016-03-24Release version 0.6v0.6Steve McIntyre
Change-Id: Iac2eccf6046de546c3ea4ae9fecb67b78b2d2df7
2016-03-22Pylint warning fixesSteve McIntyre
Change-Id: I995e2158a3f37b773c83f5d1aee2203a2b87082f
2016-03-22Add better distinction of error casesSteve McIntyre
Add a new NotFoundError exception for use internally, so we can track specific failure cases. Also add a new Error class as a central place to store our error numbers consistently. In the API protocol, add a "NOTFOUND" error string alongside "ERROR" to help the admin interface and other callers distinguish error cases better. In the admin interface, actually return distinct non-zero errors in failure cases. Previously, almost all failures would have returned suceesfully to the calling shell. Change-Id: Ie382b737a80b7cd41c551e3a4a2a7e0827260bdc
2016-03-12Change service file to match the new admin.py interfacesSteve McIntyre
Change-Id: I72699ed5c25b4ec021dc30a0dfc2f10fda7122c1
2016-03-12Change test harness scripts to match the new admin.py interfacesSteve McIntyre
Change-Id: Iaf94de537f02186aee00b870c78828c0feae9038
2016-03-12Change suggested auto_import_switch command to match new worldSteve McIntyre
Change-Id: Ia533e0afb4df2f3e723e5f106d2d0689c3234bd9
2016-03-12Massive rewrite of admin.py: use argparse instead of optparseSteve McIntyre
Gives significantly better command line handling: * git-like subcommands instead of --arguments for commands * better enforcement of arguments for subcommands, and better help Change-Id: I131e132da6a12744f5e89e21f01163449b90dd70
2016-03-12Bugfix: s/if/elif/ typo in the middle of the db_update API handlerSteve McIntyre
Calls would have worked, but reported failure by falling through Change-Id: Ia262caf55ab121c1dd5ee4c4fc44e65ad2975a10
2016-03-12Start 0.6 development, and update boilerplateSteve McIntyre
Change-Id: Ie4c201b50803ef0e32cef19459088a215b95ed2d
2015-12-24Update the README for 0.5 toov0.5Steve McIntyre
And release! Change-Id: I80182883982dbeac457923ea633ec8e31fb72a7d
2015-12-24Release version 0.5Steve McIntyre
Update Changelog etc. to match Change-Id: I2e55775f5239f674a432245a557f56056bba8f12
2015-12-24Update the example config fileSteve McIntyre
Include examples for all the different supported switch drivers. Change-Id: If007b7bf06fe93228611ceeb0ba62936d6ee04e1
2015-12-24Turn off refresh by defaultSteve McIntyre
Change-Id: Iffb57154cbe2ee120a8b2f1502c920237f45fa85
2015-12-24Minor metadata updates in setup.pySteve McIntyre
Change-Id: I0095698512cc54ea153bff222e623bfa54f6c6aa
2015-10-31Update Changelog to match changes since v0.4Steve McIntyre
Change-Id: I2b191d145b77bf037454a8f09c1cf220e2ad0a82
2015-10-30Major change to the tooltip code design - switch to javascriptSteve McIntyre
Some browsers will do the imagemap and span CSS, but IE and Konqueror (Safari?) won't. Ugh. Give up on that, and switch to trivial Javascript functions to trigger on onMouseOver() and onMouseOut() events instead. Generate all the port tooltip boxes in the right place but invisible, and when desired simply make the right one visible. Works on all of IE, Firefox, Chrome and Konqueror here, so this will do. Change-Id: I9062ff02c09f275d570148542bcf994f6698c9fc
2015-10-30Drop CSS we're not using to make things smallerSteve McIntyre
Change-Id: I004c14c6a631dbec7c1d0b6c9ffbbb40316f20a5
2015-10-29Make capitalisation more consistent across the interfaceSteve McIntyre
Change-Id: I431326d3ee89bdd054174c55b3257107aa7405ce
2015-10-28Minor tweaks to layoutSteve McIntyre
Change-Id: I82fcf6cf1f50a51e75a1e3a162a118f51db98b99
2015-10-28Add extra HTTP headers for better standards-complianceSteve McIntyre
Change-Id: I5285ae491842b240c3d1da0b71b837df7bb1561f
2015-10-28Major re-vamp of the visualisation code: caching and tooltipsSteve McIntyre
Instead of generating the images on-demand every time they're asked for, add a cache and generate them when the index is asked for. Only update the cache if the database underneath us has changed. This will reduce load noticeably when nothing has changed, plus in the index-generating code we now have access to information about the images. We now use that information to generate pop-up tooltips when the user hovers over each port in the network graphics, giving more information about the port in question. Major modifications to the CSS needed to make this work too. Tested successfully in Firefox and Chrome so far; IE and webkit are not showing the tooltips yet. :-( Change-Id: I7d2f3ddf289c0ca4379a8e287c37e2e043745487
2015-10-28Make 404 errors more useful - report the path asked forSteve McIntyre
Change-Id: If1dae28581080481052fef36be930fae55e324bc
2015-10-27Allow for refresh = False / 0 etc. to turn off refreshSteve McIntyre
Change-Id: I6b2a55598153f6e52d7809582aed94ee1d67cec1
2015-10-26Change how port locations are describedSteve McIntyre
Previously, Switch.get_port_location() would return the co-ordinates of the middle of an edge of a port box, ready for (only) passing into Graphics.draw_trunk(). We now have more users who will want to find where a port is, so update what's passed here. Now we will pass the co-ordinates of the UL and LR corners of the port box (along with whether it's upper or lower row). This will enable other users to pick up on the location of a port box properly, e.g. for image maps. Change-Id: I82a7e7f63381a64f32188e21af46f72ee3ba7915
2015-10-23Fix up the db.get_last_modified_time() outputSteve McIntyre
Explicitly return just the data, not a list. Change-Id: Ia4344faba039c771b5aad2c6e3aed516d2ef96ec
2015-10-23Add a database last-modified-timeSteve McIntyre
Add a new table which will have one record, simply containing the last-modified-time of the database as a whole. Will be useful for caching in the visualisation layer. Create the table at startup in the main VLANd process if it doesn't exist, and create the record too. Add code to update the record on all other changes to the database. Add code to report it through the daemon.status() API call. Change-Id: I503c4371c04accb2c3f91adecc3e8a8a8614ea90
2015-10-19Fix trailing-whitespace errorsSteve McIntyre
Change-Id: Ic94046f37bcb32ea3ea3df38d322fd82be12d6de
2015-10-19Add checking for clashes in port number in configSteve McIntyre
And add test case Change-Id: I3abe8c71bb95614c2edbbd2d8943edf6aa060f49
2015-10-19Improve handling for true/false options in config fileSteve McIntyre
Change-Id: I57cd3f82196ed841fb07c392bc4d6951f2fcd612
2015-10-19Update config handling for logging level, and add testSteve McIntyre
Set the default to CRITICAL only, to simplify code. Add check for the specified logging level, and a unit test for that. Change-Id: I3ffa467f001dfdfb840f312bf0df8265aac58299
2015-10-13Fix pylint warning for format stringSteve McIntyre
Change-Id: Ic53997bc257aa690a5c00b19c3cbc7e8d973959f
2015-10-13Fix pylint warning on regex stringSteve McIntyre
Change-Id: I1a5eb17709d0e01ab26dc8c8fe727f4f7a7da283
2015-10-09Ignore *.pk droppings from the Dummy switch driverSteve McIntyre
Change-Id: Ife8e918f8d1222ec3a8e32d7d3632a50ce4c0dd6
2015-10-09More robust error handling and loggingSteve McIntyre
Catch and log InputError() Catch and log ValueError() and report back to the API user Change-Id: I1d7414baa4a84106439c37ad36be3578356a3371
2015-10-09Add commented examples using the Dummy switch driverSteve McIntyre
Change-Id: I80ac77ee07d6f8738c13d638fcdf6ca1da52a1ca
2015-10-09Add a Dummy switch driver to help with debugging and unit testingSteve McIntyre
This new driver kust remembers what it's been told and gives the same data back on demand, to allow for simple test harness use. Change-Id: I2f397efdbf41729c7aff65fcefc9ae9648db35c6
2015-10-09Move calls to self.connection.close back into specific driversSteve McIntyre
It's not a good fit in common code - not all drivers are necessarily going to use a Pexpect-style connection. Move that call back into the drivers that use it. Change-Id: Ie69210c168af1bf6f785570f42bc16f8727af6b0
2015-10-08Add an option for the visualisation web interface to auto-refreshSteve McIntyre
Change-Id: Iee39e5c221a57d7e418a236b546cd790cd3902b3
2015-10-08Sort config optionsSteve McIntyre
Change-Id: I54dba7c5a21d0d8500d89c1a8d3ad6675998eb9c
2015-09-28Bind to any interface, not just localhostSteve McIntyre
Change-Id: Ifc0d17b9e23d2c850b463ce1714ebed32805fe3f
2015-09-28Improve error logging in the visualisation codeSteve McIntyre
Change-Id: I607e732121cfa357cef3dea167e0adae7d6ac61c
2015-09-28Start development of v0.5Steve McIntyre
Change-Id: I37ee3ac79a723a5d9ddd8cfe262f03b52517c0a8
2015-09-25In database multi-element calls, sort the output for consistencyv0.4Steve McIntyre
In _get_multi_elements() and _get_multi_elements2(), add an extra sort_field argument. Update all the callers to specify which field to use. Change-Id: Ib09bdb0cf6e7126c94b79ce8110aab1004bbba74
2015-09-25Enable the visualisation service by defaultSteve McIntyre
Change-Id: Ic890affa7eb7a20ecc1d1ce4bba4b7fe1f87cf6a
2015-09-25Preparing the v0.4 releaseSteve McIntyre
Update version strings Update the Changelog and README Update copyright year in various files Change-Id: If746211e0b36e59d4f3de977b81df082f2da9fe3
2015-09-24Add simple-ish CSS and tweak layoutSteve McIntyre
Far from pretty, but it works... Change-Id: I20ac6cbd1df2cbb31b8bc50e34f6c05302006881
2015-09-23Fix pylint warningsSteve McIntyre
Change-Id: Ie35df98fe02dfc2f6705f6ac4219f01972d9e2db
2015-09-23Remove debugSteve McIntyre
Change-Id: Ib7f5017ae1af56ac5f2ed287acfcffe9a537a3d4
2015-09-23Cosmetic changes to logging for the main daemonSteve McIntyre
Change-Id: I2102cc15d8ee9dded6d32a42b5555444f0b58187