-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #636 from veops/dev_ui_ipam
feat(ui): add ipam
- Loading branch information
Showing
47 changed files
with
6,250 additions
and
66 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
import { axios } from '@/utils/request' | ||
|
||
export function getIPAMSubnet() { | ||
return axios({ | ||
url: '/v0.1/ipam/subnet', | ||
method: 'GET' | ||
}) | ||
} | ||
|
||
export function postIPAMSubnet(data) { | ||
return axios({ | ||
url: '/v0.1/ipam/subnet', | ||
method: 'POST', | ||
data | ||
}) | ||
} | ||
|
||
export function getIPAMSubnetById(id) { | ||
return axios({ | ||
url: `/v0.1/ipam/subnet/${id}`, | ||
method: 'GET' | ||
}) | ||
} | ||
|
||
export function putIPAMSubnet(id, data) { | ||
return axios({ | ||
url: `/v0.1/ipam/subnet/${id}`, | ||
method: 'PUT', | ||
data | ||
}) | ||
} | ||
|
||
export function deleteIPAMSubnet(id) { | ||
return axios({ | ||
url: `/v0.1/ipam/subnet/${id}`, | ||
method: 'DELETE' | ||
}) | ||
} | ||
|
||
export function postIPAMScope(data) { | ||
return axios({ | ||
url: '/v0.1/ipam/scope', | ||
method: 'POST', | ||
data | ||
}) | ||
} | ||
|
||
export function putIPAMScope(id, data) { | ||
return axios({ | ||
url: `/v0.1/ipam/scope/${id}`, | ||
method: 'PUT', | ||
data | ||
}) | ||
} | ||
|
||
export function deleteIPAMScope(id) { | ||
return axios({ | ||
url: `/v0.1/ipam/scope/${id}`, | ||
method: 'DELETE' | ||
}) | ||
} | ||
|
||
export function getIPAMAddress(params) { | ||
return axios({ | ||
url: '/v0.1/ipam/address', | ||
method: 'GET', | ||
params | ||
}) | ||
} | ||
|
||
export function getIPAMHosts(params) { | ||
return axios({ | ||
url: '/v0.1/ipam/subnet/hosts', | ||
method: 'GET', | ||
params | ||
}) | ||
} | ||
|
||
export function postIPAMAddress(data) { | ||
return axios({ | ||
url: '/v0.1/ipam/address', | ||
method: 'POST', | ||
data | ||
}) | ||
} | ||
|
||
export function getIPAMHistoryOperate(params) { | ||
return axios({ | ||
url: '/v0.1/ipam/history/operate', | ||
method: 'GET', | ||
params | ||
}) | ||
} | ||
|
||
export function getIPAMHistoryScan(params) { | ||
return axios({ | ||
url: '/v0.1/ipam/history/scan', | ||
method: 'GET', | ||
params | ||
}) | ||
} | ||
|
||
export function getIPAMStats(params) { | ||
return axios({ | ||
url: '/v0.1/ipam/stats', | ||
method: 'GET', | ||
params | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.