| 1 | package Net::Whois::Object::InetRtr::AFRINIC; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use base qw/Net::Whois::Object/; | ||
| 6 | |||
| 7 | # whois -t inet-rtr -h whois.afrinic.net | ||
| 8 | # % This is the AfriNIC Whois server. | ||
| 9 | # | ||
| 10 | # inet-rtr: [mandatory] [single] [primary/look-up key] | ||
| 11 | # descr: [mandatory] [multiple] [ ] | ||
| 12 | # alias: [optional] [multiple] [ ] | ||
| 13 | # local-as: [mandatory] [single] [inverse key] | ||
| 14 | # ifaddr: [mandatory] [multiple] [lookup key] | ||
| 15 | # interface: [optional] [multiple] [lookup key] | ||
| 16 | # peer: [optional] [multiple] [ ] | ||
| 17 | # mp-peer: [optional] [multiple] [ ] | ||
| 18 | # member-of: [optional] [multiple] [inverse key] | ||
| 19 | # remarks: [optional] [multiple] [ ] | ||
| 20 | # org: [optional] [multiple] [inverse key] | ||
| 21 | # admin-c: [mandatory] [multiple] [inverse key] | ||
| 22 | # tech-c: [mandatory] [multiple] [inverse key] | ||
| 23 | # notify: [optional] [multiple] [inverse key] | ||
| 24 | # mnt-by: [mandatory] [multiple] [inverse key] | ||
| 25 | # changed: [mandatory] [multiple] [ ] | ||
| 26 | # source: [mandatory] [single] [ ] | ||
| 27 | |||
| 28 | __PACKAGE__->attributes( 'primary', ['inet_rtr'] ); | ||
| 29 | __PACKAGE__->attributes( 'mandatory', [ 'inet_rtr', 'descr', 'local_as', 'ifaddr', 'admin_c', 'tech_c', 'mnt_by', 'changed', 'source' ] ); | ||
| 30 | __PACKAGE__->attributes( 'optional', [ 'alias', 'interface', 'peer', 'mp_peer', 'member_of', 'remarks', 'org', 'notify' ] ); | ||
| 31 | __PACKAGE__->attributes( 'single', [ 'inet_rtr', 'local_as', 'source' ] ); | ||
| 32 | __PACKAGE__->attributes( 'multiple', [ 'descr', 'alias', 'ifaddr', 'interface', 'peer', 'mp_peer', 'member_of', 'remarks', 'org', 'admin_c', 'tech_c', 'notify', 'mnt_by', 'changed' ] ); | ||
| 33 | |||
| 34 | |||
| 35 | =head1 NAME | ||
| 36 | |||
| 37 | Net::Whois::Object::InetRtr::AFRINIC - an object representation of a RPSL InetRtr block | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | The inet-rtr object specifies routers. | ||
| 42 | |||
| 43 | =head1 METHODS | ||
| 44 | |||
| 45 | =head2 new ( @options ) | ||
| 46 | |||
| 47 | Constructor for the Net::Whois::Object::InetRtr::AFRINIC class | ||
| 48 | |||
| 49 | =cut | ||
| 50 | |||
| 51 | sub new { | ||
| 52 | my ( $class, @options ) = @_; | ||
| 53 | |||
| 54 | my $self = bless {}, $class; | ||
| 55 | $self->_init(@options); | ||
| 56 | |||
| 57 | return $self; | ||
| 58 | } | ||
| 59 | |||
| 60 | =head2 B<inet_rtr( [$inet_rtr] )> | ||
| 61 | |||
| 62 | Accessor to the inet_rtr attribute. | ||
| 63 | Accepts an optional inet_rtr, always return the current inet_rtr value. | ||
| 64 | |||
| 65 | The inet_rtr attribute is a valid DNS name for a router without a trailing | ||
| 66 | dot. | ||
| 67 | |||
| 68 | =head2 B<descr( [$descr] )> | ||
| 69 | |||
| 70 | Accessor to the descr attribute. | ||
| 71 | Accepts an optional descr value to be added to the descr array, | ||
| 72 | always return the current descr array. | ||
| 73 | |||
| 74 | A short description related to the object's purpose. | ||
| 75 | |||
| 76 | =head2 B<alias( [$alias] )> | ||
| 77 | |||
| 78 | Accessor to the alias attribute. | ||
| 79 | Accepts an optional alias to be added to the alias array, | ||
| 80 | always return the current alias array. | ||
| 81 | |||
| 82 | Each alias attribute, if present, is also standard DNS name for the | ||
| 83 | specified router. | ||
| 84 | |||
| 85 | =head2 B<local_as( [$local_as] )> | ||
| 86 | |||
| 87 | Accessor to the local_as attribute. | ||
| 88 | Accepts an optional local_as, always return the current local_as. | ||
| 89 | |||
| 90 | The local_as attribute specifies the AS Number of the AS that owns or | ||
| 91 | operates this router. | ||
| 92 | |||
| 93 | =head2 B<ifaddr( [$ifaddr] )> | ||
| 94 | |||
| 95 | Accessor to the ifaddr attribute. | ||
| 96 | Accepts an optional ifaddr value to be added to the ifaddr array, | ||
| 97 | always return the current ifaddr array. | ||
| 98 | |||
| 99 | The ifaddr attribute specifies the interface address within an Internet | ||
| 100 | router, as well as an optional action to set other parameters on this | ||
| 101 | interface. | ||
| 102 | |||
| 103 | =head2 B<peer( [$peer] )> | ||
| 104 | |||
| 105 | Accessor to the peer attribute. | ||
| 106 | Accepts an optional peer to be added to the peer array, | ||
| 107 | always return the current peer array. | ||
| 108 | |||
| 109 | The peer attribute specifies the details of any interior or exterior router | ||
| 110 | peering. | ||
| 111 | |||
| 112 | =head2 B<member_of( [$member_of] )> | ||
| 113 | |||
| 114 | Accessor to the member_of attribute. | ||
| 115 | Accepts an optional member_of value to be be added to the member_of array, | ||
| 116 | always return the current member_of array. | ||
| 117 | |||
| 118 | The member_of attribute value identifies a set object that this object | ||
| 119 | wants to be a member of. This claim, however, should be acknowledged by a | ||
| 120 | respective mbrs-by-ref attribute in the referenced object. | ||
| 121 | |||
| 122 | =head2 B<remarks( [$remark] )> | ||
| 123 | |||
| 124 | Accessor to the remarks attribute. | ||
| 125 | Accepts an optional remark to be added to the remarks array, | ||
| 126 | always return the current remarks array. | ||
| 127 | |||
| 128 | General remarks. May include a URL or instructions on where to send abuse | ||
| 129 | complaints. | ||
| 130 | |||
| 131 | =head2 B<admin_c( [$contact] )> | ||
| 132 | |||
| 133 | Accessor to the admin_c attribute. | ||
| 134 | Accepts an optional contact to be added to the admin_c array, | ||
| 135 | always return the current admin_c array. | ||
| 136 | |||
| 137 | The NIC-handle of an on-site contact Person object. As more than one person | ||
| 138 | often fulfills a role function, there may be more than one admin_c listed. | ||
| 139 | |||
| 140 | An administrative contact (admin_c) must be someone who is physically | ||
| 141 | located at the site of the network. | ||
| 142 | |||
| 143 | =head2 B<tech_c( [$contact] )> | ||
| 144 | |||
| 145 | Accessor to the tech_c attribute. | ||
| 146 | Accepts an optional contact to be added to the tech_c array, | ||
| 147 | always return the current tech_c array. | ||
| 148 | |||
| 149 | The NIC-handle of a technical contact Person or Role object. As more than | ||
| 150 | one person often fulfills a role function, there may be more than one tech_c | ||
| 151 | listed. | ||
| 152 | |||
| 153 | A technical contact (tech_c) must be a person responsible for the | ||
| 154 | day-to-day operation of the network, but does not need to be | ||
| 155 | physically located at the site of the network. | ||
| 156 | |||
| 157 | =head2 B<notify( [$notify] )> | ||
| 158 | |||
| 159 | Accessor to the notify attribute. | ||
| 160 | Accepts an optional notify value to be added to the notify array, | ||
| 161 | always return the current notify array. | ||
| 162 | |||
| 163 | The email address to which notifications of changes to this object should | ||
| 164 | be sent. | ||
| 165 | |||
| 166 | =head2 B<mnt_by( [$mnt_by] )> | ||
| 167 | |||
| 168 | Accessor to the mnt_by attribute. | ||
| 169 | Accepts an optional mnt_by value to be added to the mnt_by array, | ||
| 170 | always return the current mnt_by array. | ||
| 171 | |||
| 172 | Lists a registered 'mntner' used to authorize and authenticate changes to this | ||
| 173 | object. | ||
| 174 | |||
| 175 | =head2 B<changed( [$changed] )> | ||
| 176 | |||
| 177 | Accessor to the changed attribute. | ||
| 178 | Accepts an optional changed value to be added to the changed array, | ||
| 179 | always return the current changed array. | ||
| 180 | |||
| 181 | The email address of who last updated the database object and the date it | ||
| 182 | occurred. | ||
| 183 | |||
| 184 | Every time a change is made to a database object, this attribute will show | ||
| 185 | the email address of the person who made those changes. | ||
| 186 | Please use the address format specified in RFC 822 - Standard for | ||
| 187 | the Format of ARPA Internet Text Message and provide the date | ||
| 188 | format using one of the following two formats: YYYYMMDD or YYMMDD. | ||
| 189 | |||
| 190 | =head2 B<source( [$source] )> | ||
| 191 | |||
| 192 | Accessor to the source attribute. | ||
| 193 | Accepts an optional source, always return the current source. | ||
| 194 | |||
| 195 | The database where the object is registered. | ||
| 196 | |||
| 197 | =head2 B<mp_peer( [$peer] )> | ||
| 198 | |||
| 199 | Accessor to the mp_peer attribute. | ||
| 200 | Accepts an optional peer to be added to the mp_peer array, | ||
| 201 | always return the current mp_peer array. | ||
| 202 | |||
| 203 | This attribute performs the same function as the peer attribute above. The | ||
| 204 | difference is that mp-peer allows both IPv4 and IPv6 address families to be | ||
| 205 | specified. | ||
| 206 | |||
| 207 | The mp-peer attribute extends the peer attribute for IPv6 addresses. | ||
| 208 | |||
| 209 | =head2 B<interface( [$interface] )> | ||
| 210 | |||
| 211 | Accessor to the interface attribute. | ||
| 212 | Accepts an optional interface to be added to the interface array, | ||
| 213 | always return the current interface array. | ||
| 214 | |||
| 215 | The interface attribute specifies a multi-protocol interface address within | ||
| 216 | an Internet router, optional action and tunnel definition. | ||
| 217 | |||
| 218 | =head2 B<org( [$org] )> | ||
| 219 | |||
| 220 | Accessor to the org attribute. | ||
| 221 | Accepts an optional org to be added to the org array, | ||
| 222 | always return the current org array. | ||
| 223 | |||
| 224 | The organisation entity this object is bound to. | ||
| 225 | |||
| 226 | =cut | ||
| 227 | |||
| 228 | 1; |