Add a throw-away tool to remove IP addresses of external hosts

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=121279715
This commit is contained in:
Michael Muller 2016-05-02 09:38:13 -07:00 committed by Justine Tunney
parent b672643194
commit 05803bbc33
10 changed files with 129 additions and 9 deletions

View file

@ -0,0 +1,33 @@
{namespace domain.registry.tools autoescape="strict"}
/**
* Request to remove IP addresses.
*/
{template .remove_ip_address}
{@param name: string}
{@param ipAddresses: list<map<string, string>>}
{@param requestedByRegistrar: string}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<update>
<host:update
xmlns:host="urn:ietf:params:xml:ns:host-1.0">
<host:name>{$name}</host:name>
{foreach $ip in $ipAddresses}
<host:rem>
<host:addr ip="{$ip['type']}">{$ip['address']}</host:addr>
</host:rem>
{/foreach}
</host:update>
</update>
<extension>
<metadata:metadata xmlns:metadata="urn:google:params:xml:ns:metadata-1.0">
<metadata:reason>External IP address removed by registry administrator.</metadata:reason>
<metadata:requestedByRegistrar>{$requestedByRegistrar}</metadata:requestedByRegistrar>
</metadata:metadata>
</extension>
<clTRID>ABC-12345</clTRID>
</command>
</epp>
{/template}