1ff64c54aSGunnar Mills<loader loading="loading"></loader>
2ff64c54aSGunnar Mills<div id="configuration-snmp">
3ff64c54aSGunnar Mills  <div class="row column">
4ff64c54aSGunnar Mills    <h1>SNMP settings</h1>
5ddda4decSbeccabroek    <div class="small-12 snmp_description">
6ddda4decSbeccabroek      Set the Simple Network Management Protocol (SNMP) with a host name or IP address and a port.
7ff64c54aSGunnar Mills    </div>
8ff64c54aSGunnar Mills    <div class="page-header">
9ddda4decSbeccabroek      <h2>Managers</h2>
10ff64c54aSGunnar Mills    </div>
11854fbba1SGunnar Mills  </div>
12ddda4decSbeccabroek  <div class="row column">
13ddda4decSbeccabroek    <div class="small-8">
14ddda4decSbeccabroek      <div class="row column manager_group">
15ddda4decSbeccabroek        <div class="small-5 snmp__address">
161ffa209eSDerick Montague          <h3 id="host-name-ip-label">Host name or IP Address</h3>
17854fbba1SGunnar Mills        </div>
18ddda4decSbeccabroek        <div class="small-5 snmp__port label">
191ffa209eSDerick Montague          <h3 id="port-label">Port</h3>
20854fbba1SGunnar Mills        </div>
21ff64c54aSGunnar Mills      </div>
22ddda4decSbeccabroek      <div class="row column manager_group empty" ng-if="managers.length < 1">
23ddda4decSbeccabroek        No managers have been added yet.
24ddda4decSbeccabroek      </div>
25ddda4decSbeccabroek      <form id="snmp__form" name="snmp__form" novalidate>
26ddda4decSbeccabroek        <div class="row column manager_group" ng-form="manager_group" ng-repeat="manager in managers track by $index">
27ddda4decSbeccabroek          <div class="small-11 snmp__fields">
28ddda4decSbeccabroek            <div class="row column">
29ddda4decSbeccabroek              <div class="small-10">
30ddda4decSbeccabroek                <div class="row column">
311ffa209eSDerick Montague                  <div id="snmp-manager{{$index+1}}-port-description" class="small-offset-6 small-6 help__text snmp__port">
32ddda4decSbeccabroek                    Value must be between 0-65,535
33ddda4decSbeccabroek                  </div>
34ddda4decSbeccabroek                </div>
351ffa209eSDerick Montague                <fieldset>
36ddda4decSbeccabroek                  <div class="row column" ng-class="{'submitted':submitted}">
37ddda4decSbeccabroek                    <div class="small-6 snmp__address">
38ddda4decSbeccabroek                      <input id="snmp-manager{{$index+1}}-address"
39ddda4decSbeccabroek                            name="snmp-manager{{$index+1}}-address"
40ddda4decSbeccabroek                            type="text"
41ddda4decSbeccabroek                            ng-change="manager.updateAddress=true"
42ddda4decSbeccabroek                            ng-model="manager.address"
431ffa209eSDerick Montague                            required
441ffa209eSDerick Montague                            aria-labeledby="host-name-ip-label"/>
45ddda4decSbeccabroek                      <div ng-messages="manager_group['snmp-manager'+($index+1)+'-address'].$error" class="form-error" ng-class="{'visible': manager_group['snmp-manager'+($index+1)+'-address'].$touched || submitted}">
46ddda4decSbeccabroek                        <p ng-message="required" role="alert">Field is required</p>
47ddda4decSbeccabroek                      </div>
48ddda4decSbeccabroek                    </div>
49ddda4decSbeccabroek                    <div class="small-6 snmp__port">
50ddda4decSbeccabroek                      <input id="snmp-manager{{$index+1}}-port"
51ddda4decSbeccabroek                            name="snmp-manager{{$index+1}}-port"
52ddda4decSbeccabroek                            type="number"
53ddda4decSbeccabroek                            min="0"
54ddda4decSbeccabroek                            max="65535"
55ddda4decSbeccabroek                            step="1"
56ddda4decSbeccabroek                            ng-change="manager.updatePort=true"
57ddda4decSbeccabroek                            ng-model="manager.port"
581ffa209eSDerick Montague                            required
591ffa209eSDerick Montague                            aria-labeledby="port-label"
601ffa209eSDerick Montague                            aria-describedby="snmp-manager{{$index+1}}-port-description"/>
61ddda4decSbeccabroek                      <div ng-messages="manager_group['snmp-manager'+($index+1)+'-port'].$error" class="form-error" ng-class="{'visible': manager_group['snmp-manager'+($index+1)+'-port'].$touched || submitted}">
62ddda4decSbeccabroek                        <div ng-message-exp="['min', 'max', 'number', 'step']">
63ddda4decSbeccabroek                          Invalid format
64ddda4decSbeccabroek                        </div>
65ddda4decSbeccabroek                        <p ng-message="required" role="alert">Field is required</p>
66ddda4decSbeccabroek                      </div>
67ddda4decSbeccabroek                    </div>
68ddda4decSbeccabroek                  </div>
691ffa209eSDerick Montague                </fieldset>
70ddda4decSbeccabroek              </div>
71ddda4decSbeccabroek              <div class="small-2 align-self-center snmp__buttons">
72*c86ce3c9SYoshie Muranaka                <button class="btn edit_button" type="button">
73*c86ce3c9SYoshie Muranaka                  <icon file="icon-edit.svg" aria-label="Edit"></icon>
74ddda4decSbeccabroek                </button>
75ddda4decSbeccabroek              </div>
76ddda4decSbeccabroek            </div>
77ddda4decSbeccabroek          </div>
78ddda4decSbeccabroek          <div class="small-1 align-self-center snmp__buttons trash">
79*c86ce3c9SYoshie Muranaka            <button class="btn trash_button" type="button" ng-click="removeSNMPManager($index)">
80*c86ce3c9SYoshie Muranaka              <icon file="icon-trashcan.svg" aria-label="Remove"></icon>
81ddda4decSbeccabroek            </button>
82ddda4decSbeccabroek          </div>
83ddda4decSbeccabroek        </div>
84ddda4decSbeccabroek        <div class="row column">
85*c86ce3c9SYoshie Muranaka          <button class="btn  btn-tertiary  btn-add" type="button" ng-click="submitted=false; addNewSNMPManager();">
86*c86ce3c9SYoshie Muranaka            <icon file="icon-plus.svg"></icon>Add manager</button>
87854fbba1SGunnar Mills        </div>
88ff64c54aSGunnar Mills      </form>
89ff64c54aSGunnar Mills    </div>
90ddda4decSbeccabroek  </div>
91ddda4decSbeccabroek  <div class="row column">
92ddda4decSbeccabroek    <div class="snmp__submit-wrapper">
93*c86ce3c9SYoshie Muranaka      <button type="button" ng-click="submitted=true;  snmp__form.$valid && setSNMP();" class="btn  btn-primary">Save settings</button>
94*c86ce3c9SYoshie Muranaka      <button type="button" class="btn  btn-secondary" ng-click="refresh()">Cancel</button>
95ddda4decSbeccabroek    </div>
96ddda4decSbeccabroek  </div>
97ddda4decSbeccabroek</div>