Skip to content
Snippets Groups Projects
Commit bd16d6a0 authored by Janis Streib's avatar Janis Streib :owl:
Browse files

FIX: bcdlist sort

parent 82e0dc7a
No related branches found
No related tags found
No related merge requests found
Pipeline #275087 passed
......@@ -180,12 +180,12 @@ export default {
if (key === 'usage') {
let usage_a = 0
let usage_b = 0
this.ip_subnet_by_bcd[a.name].forEach((subnet) => {
this.bcd2subnets[a.name].forEach((subnet) => {
if (this.isIPv4(subnet.cidr)) {
usage_a += this.usagePercentage(subnet)
}
})
this.ip_subnet_by_bcd[b.name].forEach((subnet) => {
this.bcd2subnets[b.name].forEach((subnet) => {
if (this.isIPv4(subnet.cidr)) {
usage_b += this.usagePercentage(subnet)
}
......@@ -194,10 +194,10 @@ export default {
} else if (key === 'adresses') {
let adresses_a = 0
let adresses_b = 0
this.ip_subnet_by_bcd[a.name].forEach((subnet) => {
this.bcd2subnets[a.name].forEach((subnet) => {
adresses_a += subnet.dns_addr_rr_count
})
this.ip_subnet_by_bcd[b.name].forEach((subnet) => {
this.bcd2subnets[b.name].forEach((subnet) => {
adresses_b += subnet.dns_addr_rr_count
})
return adresses_a - adresses_b
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment