Infoblox::Grid::Member::IPv6StaticRoute - Static route member object


NAME

Infoblox::Grid::Member::IPv6StaticRoute - Static route member object


DESCRIPTION

An IPv6StaticRoute object provides IPv6 static route information for a grid member.


CONSTRUCTOR

 my $route = Infoblox::Grid::Member::IPv6StaticRoute->new(
        "address" => $ip_address,       #Required
        "gateway" => $ip_address,       #Required
        "cidr"    => $cidr,                     #Required
 );


MODULE METHODS

The following functions can be applied to an IPv6staticroute object.

Infoblox::Grid::Member->ipv6_static_routes( )

Use this function to specify an IPv6staticroute object for the grid member. See Infoblox::Grid::Member->ipv6_static_routes() for parameters and return values.

Example
 #Get static routes list
 my $ipv6_static_routes = $grid_member->ipv6_static_routes();
 #Modify static routes list
 my $route = Infoblox::Grid::Member::IPv6StaticRoute->new(
        "address" => "2002::5",
        "cidr"    => 64
        "gateway" => "2002::1",
 );
 $grid_member->ipv6_static_routes([$route]);


METHODS

This section describes all the methods that can be used to configure and retrieve the attribute values of an IPv6 static route object.

address( )

Use this method to set or retrieve the IPv6 address of an IPv6 static route object.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

An IPv6 address is a 128-bit number represented as eight groups of four hexadecimal digits (i.e. two octets), each group separated by a colon(:) (example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334). Leading zeroes and groups of consecutive zeros within the value can be omitted to produce a more compact representation (example: 2001::1, ::1).

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get the address
 my $address= $route->address();
 #Modify the address
 $route->address("2002::5");

cidr( )

Use this method to set or retrieve the cidr of the IPv6 static route object.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

Specify the netmask in CIDR format.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get the cidr
 my $cidr= $route->cidr();
 #Modify the cidr
 $route->cidr(64);

gateway( )

Use this method to set or retrieve the gateway of the IPv6 static route object.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

An IPv6 address is a 128-bit number represented as eight groups of four hexadecimal digits (i.e. two octets), each group separated by a colon(:) (example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334). Leading zeroes and groups of consecutive zeros within the value can be omitted to produce a more compact representation (example: 2001::1, ::1).

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get the gateway address
 my $gateway= $route->gateway();
 #Modify the gateway address
 $route->gateway("2002::1");


AUTHOR

Infoblox Inc. http://www.infoblox.com/


SEE ALSO

Infoblox::Grid::Member


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.