| 1 | package Net::Whois::Object::Route::AFRINIC; | ||
| 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 | # whois -t route -h whois.afrinic.net | ||
| 8 | # % This is the AfriNIC Whois server. | ||
| 9 | # | ||
| 10 | # route: [mandatory] [single] [primary/look-up key] | ||
| 11 | # descr: [mandatory] [multiple] [ ] | ||
| 12 | # origin: [mandatory] [single] [primary/inverse key] | ||
| 13 | # holes: [optional] [multiple] [ ] | ||
| 14 | # org: [optional] [multiple] [inverse key] | ||
| 15 | # member-of: [optional] [multiple] [ ] | ||
| 16 | # inject: [optional] [multiple] [ ] | ||
| 17 | # aggr-mtd: [optional] [single] [ ] | ||
| 18 | # aggr-bndry: [optional] [single] [ ] | ||
| 19 | # export-comps: [optional] [single] [ ] | ||
| 20 | # components: [optional] [single] [ ] | ||
| 21 | # remarks: [optional] [multiple] [ ] | ||
| 22 | # notify: [optional] [multiple] [inverse key] | ||
| 23 | # mnt-lower: [optional] [multiple] [inverse key] | ||
| 24 | # mnt-routes: [optional] [multiple] [inverse key] | ||
| 25 | # mnt-by: [mandatory] [multiple] [inverse key] | ||
| 26 | # changed: [mandatory] [multiple] [ ] | ||
| 27 | # source: [mandatory] [single] [ ] | ||
| 28 | |||
| 29 | 1 | __PACKAGE__->attributes( 'primary', ['route'] ); | |
| 30 | 1 | __PACKAGE__->attributes( 'mandatory', [ 'route', 'descr', 'origin', 'mnt_by', 'changed', 'source' ] ); | |
| 31 | 1 | __PACKAGE__->attributes( 'optional', [ 'holes', 'org', 'member_of', 'inject', 'aggr_mtd', 'aggr_bndry', 'export_comps', 'components', 'remarks', 'notify', 'mnt_lower', 'mnt_routes' ] ); | |
| 32 | 1 | __PACKAGE__->attributes( 'single', [ 'route', 'origin', 'aggr_mtd', 'aggr_bndry', 'export_comps', 'components', 'source' ] ); | |
| 33 | 1 | __PACKAGE__->attributes( 'multiple', [ 'descr', 'holes', 'org', 'member_of', 'inject', 'remarks', 'notify', 'mnt_lower', 'mnt_routes', 'mnt_by', 'changed' ] ); | |
| 34 | |||
| 35 | =head1 NAME | ||
| 36 | |||
| 37 | Net::Whois::Object::Route::AFRINIC - an object representation of the RPSL Route block | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | Route objects are used to help configure your network's routers. Route objects, | ||
| 42 | in combination with the aut-num and other related objects, can be used to | ||
| 43 | describe your IPv4 routing policy in a compact form. This can help your | ||
| 44 | network identify routing policy errors and omissions more easily than by | ||
| 45 | reading long configuration files. | ||
| 46 | |||
| 47 | |||
| 48 | =head1 METHODS | ||
| 49 | |||
| 50 | =head2 B<new( %options )> | ||
| 51 | |||
| 52 | Constructor for the Net::Whois::Object::Route::AFRINIC class | ||
| 53 | |||
| 54 | =cut | ||
| 55 | |||
| 56 | sub new { | ||
| 57 | 1 | ▶ | my ( $class, @options ) = @_; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 58 | |||
| 59 | 1 | my $self = bless {}, $class; | |
| 60 | 1 | $self->_init(@options); | |
| 61 | |||
| 62 | |||
| 63 | 1 | return $self; | |
| 64 | } | ||
| 65 | |||
| 66 | =head2 B<route( [$route] )> | ||
| 67 | |||
| 68 | Accessor to the route attribute. | ||
| 69 | Accepts an optional route, always return the current route. | ||
| 70 | |||
| 71 | =head2 B<descr( [$descr] )> | ||
| 72 | |||
| 73 | Accessor to the descr attribute. | ||
| 74 | Accepts an optional descr line to be added to the descr array, | ||
| 75 | always return the current descr array. | ||
| 76 | |||
| 77 | =head2 B<origin( [$origin] )> | ||
| 78 | |||
| 79 | Accessor to the origin attribute. | ||
| 80 | Accepts an optional origin, always return the current origin. | ||
| 81 | |||
| 82 | =head2 B<pingable( [$pingable] )> | ||
| 83 | |||
| 84 | Accessor to the pingable attribute. | ||
| 85 | Accepts an optional pingable line to be added to the pingable array, | ||
| 86 | always return the current pingable array. | ||
| 87 | |||
| 88 | An IPv4 or an IPv6 address allowing a network operator to advertise an IP address of a node | ||
| 89 | that should be reachable from outside networks. This node can be | ||
| 90 | used as a destination address for diagnostic tests. | ||
| 91 | The IP address must be within the address range of the prefix | ||
| 92 | containing this attribute. | ||
| 93 | |||
| 94 | =head2 B<ping_hdl( [$ping_hdl] )> | ||
| 95 | |||
| 96 | Accessor to the ping_hdl attribute. | ||
| 97 | Accepts an optional ping_hdl line to be added to the ping_hdl array, | ||
| 98 | always return the current ping_hdl array. | ||
| 99 | |||
| 100 | References a person or role capable of responding to queries | ||
| 101 | concerning the IP address(es) specified in the 'pingable' | ||
| 102 | attribute. | ||
| 103 | |||
| 104 | =head2 B<holes( [$hole] )> | ||
| 105 | |||
| 106 | Accessor to the holes attribute. | ||
| 107 | Accepts an optional hole to be added to the holes array, | ||
| 108 | always return the current holes array. | ||
| 109 | |||
| 110 | =head2 B<org( [$org] )> | ||
| 111 | |||
| 112 | Accessor to the org attribute. | ||
| 113 | Accepts an optional org, always return the current org. | ||
| 114 | |||
| 115 | Points to an existing organisation object representing the entity that | ||
| 116 | holds the resource. | ||
| 117 | |||
| 118 | The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits | ||
| 119 | followed by a source specification. The first digit must not be "0". | ||
| 120 | Source specification starts with "-" followed by source name up to | ||
| 121 | 9-character length. | ||
| 122 | |||
| 123 | =head2 B<member_of( [$member_of] )> | ||
| 124 | |||
| 125 | Accessor to the member_of attribute. | ||
| 126 | Accepts an optional member_of value to be added to the member_of array, | ||
| 127 | always return the current member_of array. | ||
| 128 | |||
| 129 | =head2 B<inject( [$inject] )> | ||
| 130 | |||
| 131 | Accessor to the inject attribute. | ||
| 132 | Accepts an optional inject value to be added to the inject array, | ||
| 133 | always return the current inject array. | ||
| 134 | |||
| 135 | =head2 B<aggr_mtd( [$aggr_mtd] )> | ||
| 136 | |||
| 137 | Accessor to the aggr_mtd attribute. | ||
| 138 | Accepts an optional aggr_mtd value to be added to the aggr_mtd array, | ||
| 139 | always return the current aggr_mtd. | ||
| 140 | |||
| 141 | =head2 B<aggr_bndry( [$aggr_bndry] )> | ||
| 142 | |||
| 143 | Accessor to the aggr_bndry attribute. | ||
| 144 | Accepts an optional aggr_bndry value to be added to the aggr_bndry array, | ||
| 145 | always return the current aggr_bndry. | ||
| 146 | |||
| 147 | =head2 B<export_comps( [$export_comp] )> | ||
| 148 | |||
| 149 | Accessor to the export_comps attribute. | ||
| 150 | Accepts an optional export_comp value to be added the export_comps array, | ||
| 151 | always return the current export_comps. | ||
| 152 | |||
| 153 | =head2 B<components( [$component] )> | ||
| 154 | |||
| 155 | Accessor to the components attribute. | ||
| 156 | Accepts an optional component to be added to the components array, | ||
| 157 | always return the current components. | ||
| 158 | |||
| 159 | =head2 B<remarks( [$remark] )> | ||
| 160 | |||
| 161 | Accessor to the remarks attribute. | ||
| 162 | Accepts an optional remark to be added to the remarks array, | ||
| 163 | always return the current 'remarks' array. | ||
| 164 | |||
| 165 | =head2 B<cross_mnt( [$cross_mnt] )> | ||
| 166 | |||
| 167 | Accessor to the cross_mnt attribute. | ||
| 168 | Accepts an optional cross_mnt value to be added to the cross_mnt array, | ||
| 169 | always return the current cross_mnt array. | ||
| 170 | |||
| 171 | =head2 B<cross_nfy( [$cross_nfy] )> | ||
| 172 | |||
| 173 | Accessor to the cross_nfy attribute. | ||
| 174 | Accepts an optional cross_nfy value to be added to the cross_nfy array, | ||
| 175 | always return the current cross_nfy array. | ||
| 176 | |||
| 177 | =head2 B<notify( [$notify] )> | ||
| 178 | |||
| 179 | Accessor to the notify attribute. | ||
| 180 | Accepts an optional notify value to be added to the notify array, | ||
| 181 | always return the current notify array. | ||
| 182 | |||
| 183 | =head2 B<mnt_lower( [$mnt_lower] )> | ||
| 184 | |||
| 185 | Accessor to the mnt_lower attribute. | ||
| 186 | Accepts an optional mnt_lower value to be added to the mnt_lower array, | ||
| 187 | always return the current mnt_lower array. | ||
| 188 | |||
| 189 | =head2 B<mnt_routes( [$mnt_route] )> | ||
| 190 | |||
| 191 | Accessor to the mnt_routes attribute. | ||
| 192 | Accepts an optional mnt_route to be added to the mnt_routes array, | ||
| 193 | always return the current mnt_routes array. | ||
| 194 | |||
| 195 | =head2 B<mnt_by( [$mnt_by] )> | ||
| 196 | |||
| 197 | Accessor to the mnt_by attribute. | ||
| 198 | Accepts an optional mnt_by value to be added to the mnt_by array, | ||
| 199 | always return the current mnt_by array. | ||
| 200 | |||
| 201 | =head2 B<changed( [$changed] )> | ||
| 202 | |||
| 203 | Accessor to the changed attribute. | ||
| 204 | Accepts an optional changed value to be added to the changed array, | ||
| 205 | always return the current changed array. | ||
| 206 | |||
| 207 | =head2 B<source( [$source] )> | ||
| 208 | |||
| 209 | Accessor to the source attribute. | ||
| 210 | Accepts an optional source, always return the current source. | ||
| 211 | |||
| 212 | =head2 B<country( [$country] )> | ||
| 213 | |||
| 214 | Accessor to the country attribute. | ||
| 215 | Accepts an optional country, always return the current country. | ||
| 216 | Two letter ISO 3166 code of the country or economy where the admin-c is based. | ||
| 217 | |||
| 218 | Please use UPPERCASE letters. | ||
| 219 | |||
| 220 | =cut | ||
| 221 | |||
| 222 | 1 | 1; | |