blob: f4b7279b2ed5650214ad8d87902982b229a8e7de [file] [log] [blame]
Gunnar Millsff64c542018-08-24 15:49:09 -05001<loader loading="loading"></loader>
2<div id="configuration-snmp">
Gunnar Mills5f0b7762018-09-25 14:10:45 -05003 <div class="row column">
4 <h1>SNMP settings</h1>
5 </div>
6 <form class="snmp__form" role="form" action="">
Gunnar Mills5f0b7762018-09-25 14:10:45 -05007 <div class="page-header">
Gunnar Mills854fbba2018-09-13 15:41:30 -05008 <h2 class="bold h4">Set the Simple Network Management Protocol (SNMP)</h2>
Gunnar Mills5f0b7762018-09-25 14:10:45 -05009 </div>
10 <fieldset>
Gunnar Mills854fbba2018-09-13 15:41:30 -050011 <div class="row column snmp__managers-wrap">
Gunnar Mills022b6cf2018-09-18 14:50:39 -050012 <div class="snmp__managers" ng-repeat="manager in managers track by $index">
13 <div class="snmp__manager-field">
Gunnar Mills854fbba2018-09-13 15:41:30 -050014 <label>SNMP Manager Server</label>
Gunnar Mills87510842018-09-18 15:49:33 -050015 <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 Mills854fbba2018-09-13 15:41:30 -050016 </div>
Gunnar Mills022b6cf2018-09-18 14:50:39 -050017 <div class="snmp__manager-field">
Gunnar Mills854fbba2018-09-13 15:41:30 -050018 <label>Port</label>
Gunnar Mills87510842018-09-18 15:49:33 -050019 <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 Mills854fbba2018-09-13 15:41:30 -050020 </div>
Gunnar Mills022b6cf2018-09-18 14:50:39 -050021 <button class="snmp__manager-remove" ng-click="removeSNMPManager($index)">Remove</button>
Gunnar Mills854fbba2018-09-13 15:41:30 -050022 </div>
23 <button type="button" class="btn-primary inline" ng-click="addNewSNMPManager()">Add SNMP manager</button>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050024 </div>
25 </fieldset>
Gunnar Mills854fbba2018-09-13 15:41:30 -050026 <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 Mills5f0b7762018-09-25 14:10:45 -050032 </form>
Gunnar Millsff64c542018-08-24 15:49:09 -050033</div>