Gunnar Mills | ff64c54 | 2018-08-24 15:49:09 -0500 | [diff] [blame] | 1 | <loader loading="loading"></loader> |
| 2 | <div id="configuration-snmp"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 3 | <div class="row column"> |
| 4 | <h1>SNMP settings</h1> |
| 5 | </div> |
| 6 | <form class="snmp__form" role="form" action=""> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 7 | <div class="page-header"> |
Gunnar Mills | 854fbba | 2018-09-13 15:41:30 -0500 | [diff] [blame] | 8 | <h2 class="bold h4">Set the Simple Network Management Protocol (SNMP)</h2> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 9 | </div> |
| 10 | <fieldset> |
Gunnar Mills | 854fbba | 2018-09-13 15:41:30 -0500 | [diff] [blame] | 11 | <div class="row column snmp__managers-wrap"> |
Gunnar Mills | 022b6cf | 2018-09-18 14:50:39 -0500 | [diff] [blame] | 12 | <div class="snmp__managers" ng-repeat="manager in managers track by $index"> |
| 13 | <div class="snmp__manager-field"> |
Gunnar Mills | 854fbba | 2018-09-13 15:41:30 -0500 | [diff] [blame] | 14 | <label>SNMP Manager Server</label> |
Gunnar Mills | 8751084 | 2018-09-18 15:49:33 -0500 | [diff] [blame^] | 15 | <input class="inline" id="snmp-manager{{$index+1}}-address" ng-change="manager.update_address = true" type="text" ng-model="manager.address" ng-blur="managers[$index].address = manager.address"/> |
Gunnar Mills | 854fbba | 2018-09-13 15:41:30 -0500 | [diff] [blame] | 16 | </div> |
Gunnar Mills | 022b6cf | 2018-09-18 14:50:39 -0500 | [diff] [blame] | 17 | <div class="snmp__manager-field"> |
Gunnar Mills | 854fbba | 2018-09-13 15:41:30 -0500 | [diff] [blame] | 18 | <label>Port</label> |
Gunnar Mills | 8751084 | 2018-09-18 15:49:33 -0500 | [diff] [blame^] | 19 | <input class="inline" id="snmp-manager{{$index+1}}-port" type="text" ng-change="manager.update_port = true" ng-model="manager.port" ng-blur="managers[$index].port = manager.port"/> |
Gunnar Mills | 854fbba | 2018-09-13 15:41:30 -0500 | [diff] [blame] | 20 | </div> |
Gunnar Mills | 022b6cf | 2018-09-18 14:50:39 -0500 | [diff] [blame] | 21 | <button class="snmp__manager-remove" ng-click="removeSNMPManager($index)">Remove</button> |
Gunnar Mills | 854fbba | 2018-09-13 15:41:30 -0500 | [diff] [blame] | 22 | </div> |
| 23 | <button type="button" class="btn-primary inline" ng-click="addNewSNMPManager()">Add SNMP manager</button> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 24 | </div> |
| 25 | </fieldset> |
Gunnar Mills | 854fbba | 2018-09-13 15:41:30 -0500 | [diff] [blame] | 26 | <div class="snmp__submit-wrapper"> |
| 27 | <button type="button" class="btn-primary inline" ng-click="setSNMP()">Save settings</button> |
| 28 | <button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button> |
| 29 | </div> |
| 30 | <p class="success-msg" ng-show="success" role="alert">Success! SNMP managers updated!</p> |
| 31 | <p class="error error-msg" ng-show="error" role="alert">Error setting SNMP Managers!</p> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 32 | </form> |
Gunnar Mills | ff64c54 | 2018-08-24 15:49:09 -0500 | [diff] [blame] | 33 | </div> |