aboutsummaryrefslogtreecommitdiffstats
path: root/web/api
Commit message (Collapse)AuthorAgeLines
* Use new metrics in dhcp apiOle Mathias Aa. Heggem2019-04-16-5/+16
|
* tag fix in switches writeOle Mathias Aa. Heggem2019-04-15-0/+5
|
* dhcp-summary fixOle Mathias Aa. Heggem2019-04-15-1/+1
|
* update what to look forSjur Fredriksen2019-04-15-1/+1
|
* update what to look forSjur Fredriksen2019-04-15-1/+1
|
* Make network work againOle Mathias Aa. Heggem2019-04-11-1/+1
|
* Attempt to avoid loopback in totalts in switch-stateKristian Lyngstol2019-04-09-2/+4
|
* read/oplog: Shut up, perlKristian Lyngstol2019-02-13-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28. \1 better written as $1 at /opt/gondul/web/api/read/oplog line 28.
* 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
* api/ping: remove linknet stuff (again)Kristian Lyngstol2019-01-06-6/+0
| | | | | This hasn't really been used and will probably be reimplemented before it would be used. Thus removed.
* First step to major cleanupKristian Lyngstol2019-01-03-249/+45
| | | | | | | | Fixes #150 Fixe #88 Closes #3 Probably lots of bugs introduced, will fix ASAP.
* oplog: Add support fort "when"/dated replayKristian Lyngstol2018-12-02-1/+8
| | | | Makes the replay so much more "alive" :D
* Tweak DHCP/uplink/client-port logicKristian Lyngstol2018-04-04-9/+17
|
* Throw TG18-stuff over the wallroot2018-03-31-9/+9
|
* Mange dager med rot på TG18root2018-03-26-60/+17
|
* Added new API point for list of templatesOle Mathias Heggem2018-03-22-0/+21
|
* Commit diverse av Ole Mathias sitt template-greierroot2018-03-22-1/+1
|
* Merge branch 'master' into network-firstclassOle Mathias Aa. Heggem2018-03-21-13/+14
|\
| * Added support for delete switchesOle Mathias Aa. Heggem2018-03-17-13/+14
| |
* | Making network first class citizenOle Mathias Aa. Heggem2018-01-28-7/+207
|/ | | | Still work in progress
* api/oplog: Time is !@#!@#!@#!@# (fixes non-utc times)Kristian2017-04-19-0/+1
|
* TG17 monster commitKristian Lyngstøl2017-04-16-21/+39
|
* TG17 stuff ?Kristian Lyngstøl2017-04-10-4/+22
|
* switches.txt as an api endpointLasse Haugen2017-03-31-0/+31
|
* Implement support for per-switch queries for switches-managementLasse Haugen2017-01-10-1/+11
|
* added distro_name to api endpointLasse Haugen2016-12-16-1/+1
|
* Start clean switches-tableKristian Lyngstol2016-11-15-6/+6
| | | | Lots of cruft
* Various build-tweaks and cache tweaksKristian Lyngstol2016-11-11-2/+4
| | | | | | | | | - mibs are moved to data/, update gitignore - Adjust cache for switches and switches-management to improve responsiveness when adding new content. - Ensure mibs are correctly loaded if the data directory doesn't exist - Add a small timer to the startup of ping collector/snmp to avoid starting before graphite.
* Add distro-tree endpointKristian Lyngstol2016-11-08-0/+25
| | | | | | | Fixes #139 References #148 New problem: Test data is insufficient.
* Remove debug output and fix linknet-adding in nightmodeKristian Lyngstol2016-07-01-2/+0
|
* Implement support for per-switch/port queries for switch-stateKristian Lyngstol2016-07-01-4/+25
|
* Implement tags and various other minor tweaksKristian Lyngstol2016-07-01-8/+18
|
* switch-state: Use ifAlias to determine client/uplinkKristian Lyngstol2016-06-30-14/+16
|
* Uplink logic for DXKristian Lyngstol2016-06-30-3/+3
|
* Get cisco temperatures too and mix other tweaksKristian Lyngstol2016-06-28-1/+1
|
* front/api: Add user-provided nick to oplogKristian Lyngstol2016-05-28-1/+1
| | | | | | Fixes #84 It's really stupid simple, but it will work.
* front: Fix/tweak edit-boxKristian Lyngstol2016-05-25-1/+1
| | | | | | | | | No need to expose 'switch' id in the API - it's internal to the db. The entire edit-logic should be cleaned up, but at least this fixes the immediate problem. Fixes #74
* Ping and expose ipv6 as a true equal/superiorKristian Lyngstol2016-05-23-8/+12
| | | | | | | | | | Fixes #80 I should go to bed. Also: Fixes a tiny little issue where we didn't take into account the nature if the OPing timeout? Or has it changed? Either way, no longer do we store thousands of ping replies - per second.
* 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.
* Config: Output some defaults if there is no config.Kristian Lyngstol2016-05-20-0/+3
| | | | Fixes #79
* Remove comments from code in place of oplogsKristian Lyngstol2016-05-18-65/+1
|
* Add basic oplogKristian Lyngstol2016-05-18-0/+44
| | | | | | | | | | 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
* Add config read-api and use it to detect public accessKristian Lyngstol2016-05-16-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently no way to modify the settings except by manual SQL, but it's coming. This allows us to have event-specific configuration in the database. This commit adds js that uses this to detect if the frontend is a public vhost or not. There are currently only three columns provided in addition to ID. publicvhost: The domain name of the publicly accessible version of Gondul. shortname: code name for the vent. e.g dx16, tg17, etc. data: jsonb to contain most other settings as we see fit. Most settings will be stored in 'data' if it's only or mainly used by the frontend. This will allow frontend developers to supply arbitrary configuration options without the need for API or database changes in the future. Fixes #51 References #54 Still need the GUI for it.
* Move stuff from /opt/nms to /opt/gondul etcKristian Lyngstol2016-05-13-13/+13
| | | | Still lots to do
* Tweak README and create doc/ directoryKristian Lyngstol2016-04-14-131/+0
|