aboutsummaryrefslogtreecommitdiffstats
path: root/web/api/write
Commit message (Collapse)AuthorAgeLines
* tag fix in switches writeOle Mathias Aa. Heggem2019-04-15-0/+5
|
* Make network work againOle Mathias Aa. Heggem2019-04-11-1/+1
|
* Add basic collector-implementationKristian Lyngstol2019-02-13-0/+23
| | | | | | | | | | | | | | | References #195 This is the first dumb-ass implementation of the collector-api. It actually works fine for write AS IS, but has 0 safties. But I'm thinking the API itself is reasonably stable and ready for testing. I will need to extend it for dhcp-specific stuff, and the plan is to create a secondary table with metadata (hidden from the user) and a few other nice things. Also, indexes. We need indexes. Obviously.
* Front + api: Fix parsing of JSON-fields for switchesKristian Lyngstol2019-02-13-1/+3
| | | | | | | | | | | | | | | | | | | | | | | Sort of. It's two issues at once, related: 1. API: The problem here was that the old way of updating tags simply didn't use actual JSON, but just sent "'foo','bar','baz'" as a text string. This seems dumb so I've made it send actual JSON now - just like the "placement" field. This meant updating the API. And it's not pretty, but it works. 2. Front: I've simplified nms-types a bit (hopefully to provide to simple methods: either get/set the raw value, or get/set strings. There was a bug where we sent text-encoded json instead of real json, and the reason was a confusion between when we're dealing with JSON and when we're dealing with strings. Now we are explicit. This makes the nmsEditRow-thing slightly uglier, but it needs to be fixed properly either way. In the future, we should provide renderers and editors based on types, e.g.: Placement-editor could start as a general-purpose JSON-editor, and the "switch reference" should be a drop-down.... etc. Fixes #202
* Expose new-style edit-stuff in old-style panelKristian Lyngstol2019-01-09-18/+6
| | | | | | | | | | | The integration is a hack, but a first step. I will eventually remove all the code in nms-info-box, but I needed a simple test. This also demonstrates how to add a new switch.... simply hit edit, then change the name. It aint pretty, and shouldn't work like it does today, but it's a decent example. Also, had to fix the backend again now that I actually tested the write-api :D
* First step to major cleanupKristian Lyngstol2019-01-03-180/+18
| | | | | | | | Fixes #150 Fixe #88 Closes #3 Probably lots of bugs introduced, will fix ASAP.
* Mange dager med rot på TG18root2018-03-26-51/+8
|
* Commit diverse av Ole Mathias sitt template-greierroot2018-03-22-0/+0
|
* Merge branch 'master' into network-firstclassOle Mathias Aa. Heggem2018-03-21-1/+1
|\
| * Added support for delete switchesOle Mathias Aa. Heggem2018-03-17-1/+1
| |
* | Making network first class citizenOle Mathias Aa. Heggem2018-01-28-4/+167
|/ | | | Still work in progress
* Start clean switches-tableKristian Lyngstol2016-11-15-4/+4
| | | | Lots of cruft
* Implement tags and various other minor tweaksKristian Lyngstol2016-07-01-2/+5
|
* front/api: Add user-provided nick to oplogKristian Lyngstol2016-05-28-1/+1
| | | | | | Fixes #84 It's really stupid simple, but it will work.
* Search box/oplog: Add string-literal searchKristian Lyngstol2016-05-22-1/+1
| | | | | You can now use "foo" to find a switch called foo, but not also the ones called foobar foobar1, etc
* Add rudimentary way of providing linknets.Kristian Lyngstol2016-05-20-0/+32
| | | | Needs a lot of work, including the API side, possibly also the schema.
* Add system-generated op logsKristian Lyngstol2016-05-20-1/+3
| | | | | | | | First up: Add a switch, get a log entry. This might require some filtering in the GUI eventually. This is why the user is set to 'system', even when we have an actual user that triggered the event.
* Remove comments from code in place of oplogsKristian Lyngstol2016-05-18-49/+0
|
* Add basic oplogKristian Lyngstol2016-05-18-0/+22
| | | | | | | | | | It still needs to be integrated with switches/info box, but this is a good start. Shows the last 5 log messages in an overlay on the map, with the rest visible in an oplog tab. Fixes #20
* Add write-api for configKristian Lyngstol2016-05-16-0/+22
| | | | References #54
* Move stuff from /opt/nms to /opt/gondul etcKristian Lyngstol2016-05-13-4/+4
| | | | Still lots to do
* More work on adapting /opt and testsKristian Lyngstol2016-04-13-4/+4
|
* Actual initial importKristian Lyngstol2016-04-12-0/+264
Fetched from tgmanage.