Commit bd16d6a0 authored by Janis Streib's avatar Janis Streib 🦉

FIX: bcdlist sort

parent 82e0dc7a
Pipeline #118653 passed with stages
in 11 minutes and 56 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment