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