add AS112
continuous-integration/drone/push Build is passing Details

This commit is contained in:
186526 2023-03-05 15:22:53 +08:00
parent 7711ee835b
commit 3e5b318cbe
2 changed files with 8 additions and 5 deletions

View File

@ -82,3 +82,6 @@ members:
- "RIPE::AS-SET-N7DMR":
- AMER
- "AMER:CUSTOMER"
- AS112:
- GLOBAL
- "GLOBAL:CUSTOMER"

View File

@ -78,10 +78,10 @@ const main = async () => {
"TECH-C": config["TECH-C"],
"ADMIN-C": config["ADMIN-C"],
remarks: config["AS-SETS"][asSetName].remarks,
members: Array.from(new Set(members.flat(Infinity))).filter(
Boolean
) as number[],
include: config["AS-SETS"][asSetName].include,
members: Array.from(new Set(members.flat(Infinity)))
.filter(Boolean)
.sort() as number[],
include: (config["AS-SETS"][asSetName].include ?? []).sort(),
});
i++;
console.log("");
@ -92,7 +92,7 @@ ${k["MNT-BY"].map((k) => `mnt-by: ${k}`).join("\n")}
${k["TECH-C"].map((k) => `tech-c: ${k}`).join("\n")}
${k["ADMIN-C"].map((k) => `admin-c: ${k}`).join("\n")}
${k.remarks.map((k) => `remarks: ${k}`).join("\n")}
${k.members.map((k) => `members: AS${k}`).join("\n")}${(k.include ?? []).map(
${k.members.map((k) => `members: AS${k}`).join("\n")}${k.include.map(
(k) => `\nmembers: ${k}`
)}
source: RIPE\npassword: ${env["RIPE_PASSWORD"]}\n