| 1 | package Net::Whois::Object::RouteSet::AFRINIC; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use base qw/Net::Whois::Object/; | ||
| 6 | |||
| 7 | # whois -t route-set -h whois.afrinic.net | ||
| 8 | # % This is the AfriNIC Whois server. | ||
| 9 | # | ||
| 10 | # route-set: [mandatory] [single] [primary/look-up key] | ||
| 11 | # descr: [mandatory] [multiple] [ ] | ||
| 12 | # members: [optional] [multiple] [ ] | ||
| 13 | # mp-members: [optional] [multiple] [ ] | ||
| 14 | # mbrs-by-ref: [optional] [multiple] [inverse key] | ||
| 15 | # remarks: [optional] [multiple] [ ] | ||
| 16 | # org: [optional] [multiple] [inverse key] | ||
| 17 | # tech-c: [mandatory] [multiple] [inverse key] | ||
| 18 | # admin-c: [mandatory] [multiple] [inverse key] | ||
| 19 | # notify: [optional] [multiple] [inverse key] | ||
| 20 | # mnt-by: [mandatory] [multiple] [inverse key] | ||
| 21 | # mnt-lower: [optional] [multiple] [inverse key] | ||
| 22 | # changed: [mandatory] [multiple] [ ] | ||
| 23 | # source: [mandatory] [single] [ ] | ||
| 24 | |||
| 25 | __PACKAGE__->attributes( 'primary', ['route_set'] ); | ||
| 26 | __PACKAGE__->attributes( 'mandatory', [ 'route_set', 'descr', 'tech_c', 'admin_c', 'mnt_by', 'changed', 'source' ] ); | ||
| 27 | __PACKAGE__->attributes( 'optional', [ 'members', 'mp_members', 'mbrs_by_ref', 'remarks', 'org', 'notify', 'mnt_lower' ] ); | ||
| 28 | __PACKAGE__->attributes( 'single', [ 'route_set', 'source' ] ); | ||
| 29 | __PACKAGE__->attributes( 'multiple', [ 'descr', 'members', 'mp_members', 'mbrs_by_ref', 'remarks', 'org', 'tech_c', 'admin_c', 'notify', 'mnt_by', 'mnt_lower', 'changed' ] ); | ||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | Net::Whois::Object::RouteSet::AFRINIC - an object representation of the RPSL RouteSet block | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | A route-set object defines a set of routes that can be represented by | ||
| 38 | route objects or by address prefixes. In the first case, the set is | ||
| 39 | populated by means of the "mbrs-by-ref:" attribute, in the latter, the | ||
| 40 | members of the set are explicitly listed in the "members:" | ||
| 41 | attribute. The "members:" attribute is a list of address prefixes or | ||
| 42 | other route-set names. Note that the route-set class is a set of | ||
| 43 | route prefixes, not of database route objects. | ||
| 44 | |||
| 45 | =head1 METHODS | ||
| 46 | |||
| 47 | =head2 B<new( %options )> | ||
| 48 | |||
| 49 | Constructor for the Net::Whois::Object::RouteSet::AFRINIC class | ||
| 50 | |||
| 51 | =cut | ||
| 52 | |||
| 53 | sub new { | ||
| 54 | my ( $class, @options ) = @_; | ||
| 55 | |||
| 56 | my $self = bless {}, $class; | ||
| 57 | $self->_init(@options); | ||
| 58 | |||
| 59 | |||
| 60 | return $self; | ||
| 61 | } | ||
| 62 | |||
| 63 | =head2 B<route_set( [$route_set] )> | ||
| 64 | |||
| 65 | Accessor to the route_set attribute. | ||
| 66 | Accepts an optional route_set, always return the current route_set. | ||
| 67 | |||
| 68 | =head2 B<descr( [$descr] )> | ||
| 69 | |||
| 70 | Accessor to the descr attribute. | ||
| 71 | Accepts an optional descr line to be added to the descr array, | ||
| 72 | always return the current descr array. | ||
| 73 | |||
| 74 | =head2 B<members( [$members] )> | ||
| 75 | |||
| 76 | Accessor to the members attribute. | ||
| 77 | Accepts an optional members value to be added to the members array, | ||
| 78 | always return the current members array. | ||
| 79 | |||
| 80 | =head2 B<mbrs_by_ref( [$mbrs_by_ref] )> | ||
| 81 | |||
| 82 | Accessor to the mbrs_by_ref attribute. | ||
| 83 | Accepts an optional mbrs_by_ref to be added to the mbrs_by_ref array, | ||
| 84 | always return the current 'mbrs_by_ref' array. | ||
| 85 | |||
| 86 | =head2 B<remarks( [$remark] )> | ||
| 87 | |||
| 88 | Accessor to the remarks attribute. | ||
| 89 | Accepts an optional remark to be added to the remarks array, | ||
| 90 | always return the current remarks array. | ||
| 91 | |||
| 92 | =head2 B<org( [$org] )> | ||
| 93 | |||
| 94 | Accessor to the org attribute. | ||
| 95 | Accepts an optional org, always return the current org. | ||
| 96 | |||
| 97 | Points to an existing organisation object representing the entity that | ||
| 98 | holds the resource. | ||
| 99 | |||
| 100 | The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits | ||
| 101 | followed by a source specification. The first digit must not be "0". | ||
| 102 | Source specification starts with "-" followed by source name up to | ||
| 103 | 9-character length. | ||
| 104 | |||
| 105 | =head2 B<tech_c( [$contact] )> | ||
| 106 | |||
| 107 | Accessor to the tech_c attribute. | ||
| 108 | Accepts an optional contact to be added to the tech_c array, | ||
| 109 | always return the current tech_c array. | ||
| 110 | |||
| 111 | =head2 B<admin_c( [$contact] )> | ||
| 112 | |||
| 113 | Accessor to the admin_c attribute. | ||
| 114 | Accepts an optional contact to be added to the admin_c array, | ||
| 115 | always return the current admin_c array. | ||
| 116 | |||
| 117 | =head2 B<notify( [$notify] )> | ||
| 118 | |||
| 119 | Accessor to the notify attribute. | ||
| 120 | Accepts an optional notify value to be added to the notify array, | ||
| 121 | always return the current notify array. | ||
| 122 | |||
| 123 | =head2 B<mnt_by( [$mnt_by] )> | ||
| 124 | |||
| 125 | Accessor to the mnt_by attribute. | ||
| 126 | Accepts an optional mnt_by value to be added to the mnt_by array, | ||
| 127 | always return the current mnt_by array. | ||
| 128 | |||
| 129 | =head2 B<changed( [$changed] )> | ||
| 130 | |||
| 131 | Accessor to the changed attribute. | ||
| 132 | Accepts an optional changed value to be added to the changed array, | ||
| 133 | always return the current changed array. | ||
| 134 | |||
| 135 | =head2 B<source( [$source] )> | ||
| 136 | |||
| 137 | Accessor to the source attribute. | ||
| 138 | Accepts an optional source, always return the current source. | ||
| 139 | |||
| 140 | =head2 B<mnt_lower( [$mnt_lower] )> | ||
| 141 | |||
| 142 | Accessor to the mnt_lower attribute. | ||
| 143 | Accepts an optional mnt_lower value to be added to the mnt_lower array, | ||
| 144 | always return the current mnt_lower array. | ||
| 145 | |||
| 146 | =head2 B<mp_members( [$mp_member] )> | ||
| 147 | |||
| 148 | Accessor to the mp_members attribute. | ||
| 149 | Accepts an optional mp_member to be added to the mp_members array, | ||
| 150 | always return the current mp_members array. | ||
| 151 | |||
| 152 | =cut | ||
| 153 | |||
| 154 | 1; |