rfc8416: update comment field to use url to registry on web
This commit is contained in:
parent
7bcb084f8f
commit
72a09ef39c
|
@ -11,4 +11,6 @@ $roas = array();
|
||||||
|
|
||||||
define ("MAX_LEN_IPV4", 28);
|
define ("MAX_LEN_IPV4", 28);
|
||||||
define ("MAX_LEN_IPV6", 64);
|
define ("MAX_LEN_IPV6", 64);
|
||||||
|
|
||||||
|
$web_registry_url = 'https://git.dn42.us/dn42/registry/src/master';
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -110,7 +110,9 @@ foreach ($raw_array as $sub_array)
|
||||||
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["asn"] = trim ($_asn[0], "AS");
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["asn"] = trim ($_asn[0], "AS");
|
||||||
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["prefix"] = $_prefix;
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["prefix"] = $_prefix;
|
||||||
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["maxPrefixLength"] = $_maxlength;
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["maxPrefixLength"] = $_maxlength;
|
||||||
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["comment"] = "$_ta - mnt-by $_mnt";
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["comment"] = "$web_registry_url/data/inet6num/$prefix[1]_$prefix[2]";
|
||||||
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["source"] = "$_ta";
|
||||||
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["mnt-by"] = "$_mnt";
|
||||||
|
|
||||||
$k++;
|
$k++;
|
||||||
}
|
}
|
||||||
|
@ -209,7 +211,9 @@ foreach ($raw_array as $sub_array)
|
||||||
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["asn"] = trim ($_asn[0], "AS");
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["asn"] = trim ($_asn[0], "AS");
|
||||||
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["prefix"] = $_prefix;
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["prefix"] = $_prefix;
|
||||||
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["maxPrefixLength"] = $_maxlength;
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["maxPrefixLength"] = $_maxlength;
|
||||||
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["comment"] = "$_ta - mnt-by $_mnt";
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["comment"] = "$web_registry_url/data/inetnum/$prefix[1]_$prefix[2]";
|
||||||
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["source"] = "$_ta";
|
||||||
|
$roas["locallyAddedAssertions"]["prefixAssertions"][$k]["mnt-by"] = "$_mnt";
|
||||||
|
|
||||||
$k++;
|
$k++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue