Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Aruba-Master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Aruba-Master
Commits
3d990ba1
Commit
3d990ba1
authored
Jan 20, 2020
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
fe4fa169
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
app.js
app.js
+3
-2
aruba.js
aruba.js
+1
-1
No files found.
app.js
View file @
3d990ba1
...
...
@@ -79,7 +79,7 @@ cron.schedule('*/10 * * * * *', () => {
});
postRequest
()
cronRemover
.
schedule
(
'
*/5 * * * *
'
,
()
=>
{
cronRemover
.
schedule
(
'
*/
1
5 * * * *
'
,
()
=>
{
init
()
});
...
...
@@ -114,7 +114,7 @@ async function checkIps() {
await
aruba
.
RemovedByIp
(
ips
[
i
].
Value
)
break
case
1
:
await
addIPs
(
ips
[
i
].
Value
)
//
await addIPs(ips[i].Value)
break
}
...
...
@@ -134,6 +134,7 @@ async function initToken() {
async
function
addNewIp
(
req
,
res
)
{
res
.
send
(
'
Done
'
)
await
aruba
.
createFloatingIp
(
dc
)
checkIps
()
}
function
postFloatingIps
(
data
)
{
...
...
aruba.js
View file @
3d990ba1
...
...
@@ -3,7 +3,7 @@ let post = 'post'
let
_
=
require
(
'
lodash
'
)
let
auth
=
{
Username
:
"
AWI-236440
"
,
Password
:
"
QVMUB653$H
"
}
let
ip
let
AvailDc
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
]
let
AvailDc
=
[
1
,
2
,
3
,
4
,
6
,
7
,
8
]
let
foundDc
let
masterIp
let
networkId
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment