route_map_impl

Warning

doxygenfile: Cannot find file “eos/route_map_impl.h

Type definitions in route_map_impl

namespace eos
class link_bandwidth_impl_t
#include <route_map_impl.h>

Extended community link bandwidth value.

Public Functions

link_bandwidth_impl_t(float value, bandwidth_unit_t unit)
link_bandwidth_impl_t(float value)
link_bandwidth_impl_t()
float value() const

Getter for ‘value’: The link bandwidth value.

void value_is(float value)

Setter for ‘value’.

bandwidth_unit_t unit() const

Getter for ‘unit’: The link bandwidth bitrate unit.

void unit_is(bandwidth_unit_t unit)

Setter for ‘unit’.

bool operator==(link_bandwidth_impl_t const & other) const
bool operator!=(link_bandwidth_impl_t const & other) const
bool operator<(link_bandwidth_impl_t const & other) const
uint32_t hash() const

The hash function for type link_bandwidth_t.

void mix_me(hash_mix & h) const

The hash mix function for type link_bandwidth_t.

std::string to_string() const

Returns a string representation of the current object’s values.

Private Members

float value_
bandwidth_unit_t unit_

Friends

friend std::ostream & operator<<

A utility stream operator that adds a string representation of link_bandwidth_t to the ostream.

class route_map_link_bandwidth_impl_t
#include <route_map_impl.h>

Route map link bandwidth operation attribute information.

Public Functions

route_map_link_bandwidth_impl_t()

Create route map link bandwidth.

route_map_operation_type_t operation() const

Getter for ‘operation’: Operation type.

bgp_asn_t asn() const

Getter for ‘asn’: Peer AS number.

link_bandwidth_t bandwidth() const

Getter for ‘bandwidth’: Link bandwidth value.

void route_map_operation_type_set_is(link_bandwidth_t bandwidth)
void route_map_operation_type_delete_is(link_bandwidth_t bandwidth, bgp_asn_t asn)
bool operator==(route_map_link_bandwidth_impl_t const & other) const
bool operator!=(route_map_link_bandwidth_impl_t const & other) const
bool operator<(route_map_link_bandwidth_impl_t const & other) const
uint32_t hash() const

The hash function for type route_map_link_bandwidth_t.

void mix_me(hash_mix & h) const

The hash mix function for type route_map_link_bandwidth_t.

std::string to_string() const

Returns a string representation of the current object’s values.

Private Members

route_map_operation_type_t operation_
bgp_asn_t asn_
link_bandwidth_t bandwidth_

Friends

friend std::ostream & operator<<

A utility stream operator that adds a string representation of route_map_link_bandwidth_t to the ostream.

class route_map_entry_impl_t
#include <route_map_impl.h>

Route map entry sequence.

Public Functions

route_map_entry_impl_t()
route_map_entry_impl_t(bool permit)
bool permit() const

Getter for ‘permit’: Permit sequence entry when true, deny otherwise.

void permit_is(bool permit)

Setter for ‘permit’.

route_map_sequence_number_t continue_sequence() const

Getter for ‘continue_sequence’: Continue to a different map entry. Set to 0 for deletion.

void continue_sequence_is(route_map_sequence_number_t continue_sequence)

Setter for ‘continue_sequence’.

route_map_link_bandwidth_t link_bandwidth() const

Getter for ‘link_bandwidth’: BGP extended community link bandwidth attribute.

void link_bandwidth_is(route_map_link_bandwidth_t const & link_bandwidth)

Setter for ‘link_bandwidth’.

void link_bandwidth_del()

Remove the link bandwidth configuration.

bool operator==(route_map_entry_impl_t const & other) const
bool operator!=(route_map_entry_impl_t const & other) const
uint32_t hash() const

The hash function for type route_map_entry_t.

void mix_me(hash_mix & h) const

The hash mix function for type route_map_entry_t.

std::string to_string() const

Returns a string representation of the current object’s values.

Private Members

bool permit_
route_map_sequence_number_t continue_sequence_
route_map_link_bandwidth_t link_bandwidth_

Friends

friend std::ostream & operator<<

A utility stream operator that adds a string representation of route_map_entry_t to the ostream.

class route_map_impl_t

Public Functions

route_map_impl_t()
std::map< route_map_sequence_number_t, route_map_entry_t > const & map_entry() const

Getter for ‘map_entry’: A map of route map entries, keyed by sequence number.

void map_entry_is(std::map< route_map_sequence_number_t, route_map_entry_t > const & map_entry)

Setter for ‘map_entry’.

void map_entry_set(route_map_sequence_number_t const & key, route_map_entry_t const & value)

Inserts key/value pair to the map.

void map_entry_del(route_map_sequence_number_t const & key)

Deletes the key/value pair from the map.

bool operator==(route_map_impl_t const & other) const
bool operator!=(route_map_impl_t const & other) const
uint32_t hash() const

The hash function for type route_map_t.

void mix_me(hash_mix & h) const

The hash mix function for type route_map_t.

std::string to_string() const

Returns a string representation of the current object’s values.

Private Members

std::map< route_map_sequence_number_t, route_map_entry_t > map_entry_

Friends

friend std::ostream & operator<<

A utility stream operator that adds a string representation of route_map_t to the ostream.