|
OpenSDN source code
|
#include <physical_interface.h>


Classes | |
| struct | Bond_ChildIntf |
Public Types | |
| enum | SubType { FABRIC , VMWARE , CONFIG , INVALID } |
| enum | EncapType { ETHERNET , RAW_IP } |
| typedef std::map< const std::string, Bond_ChildIntf > | BondChildIntfMap |
| typedef BondChildIntfMap::const_iterator | BondChildIntfMapIterator |
Public Types inherited from Interface | |
| enum | Type { INVALID , PHYSICAL , REMOTE_PHYSICAL , LOGICAL , VM_INTERFACE , INET , PACKET } |
| enum | Trace { ADD , DEL , ACTIVATED , DEACTIVATED , FLOATING_IP_CHANGE , SERVICE_CHANGE } |
| enum | MirrorDirection { MIRROR_RX_TX , MIRROR_RX , MIRROR_TX , UNKNOWN } |
| enum | Transport { TRANSPORT_INVALID , TRANSPORT_VIRTUAL , TRANSPORT_ETHERNET , TRANSPORT_SOCKET , TRANSPORT_PMD } |
Public Types inherited from AgentDBEntry | |
| typedef boost::intrusive_ptr< AgentDBEntry > | AgentDBEntyRef |
Public Types inherited from DBEntryBase | |
| typedef DBTableBase::ListenerId | ListenerId |
| typedef std::unique_ptr< DBRequestKey > | KeyPtr |
Public Member Functions | |
| PhysicalInterface (const std::string &name, const boost::uuids::uuid &logical_router_uuid) | |
| virtual | ~PhysicalInterface () |
| virtual bool | CmpInterface (const DBEntry &rhs) const |
| virtual std::string | ToString () const |
| virtual KeyPtr | GetDBRequestKey () const |
| virtual void | PostAdd () |
| virtual bool | Delete (const DBRequest *req) |
| virtual bool | OnChange (const InterfaceTable *table, const PhysicalInterfaceData *data) |
| SubType | subtype () const |
| PhysicalDevice * | physical_device () const |
| const std::string & | display_name () const |
| bool | persistent () const |
| EncapType | encap_type () const |
| bool | no_arp () const |
| Ip4Address | ip_addr () const |
| bool | OnChange (PhysicalInterfaceData *data) |
| virtual void | ObtainOsSpecificParams (const std::string &name, Agent *agent) |
| const BondChildIntfMap & | getBondChildIntfMap () const |
| void | setBondChildIntfMap (const BondChildIntfMap bondChildIntfMap) |
Public Member Functions inherited from Interface | |
| Interface (Type type, const boost::uuids::uuid &uuid, const std::string &name, VrfEntry *vrf, bool os_oper_state, const boost::uuids::uuid &logical_router_uuid) | |
| virtual | ~Interface () |
| virtual void | SetKey (const DBRequestKey *key) |
| virtual void | Add () |
| virtual void | SendTrace (const AgentDBTable *table, Trace event) const |
| virtual void | GetOsParams (Agent *agent) |
| void | SetPciIndex (Agent *agent, size_t index) |
| bool | IsLess (const DBEntry &rhs) const |
| uint32_t | vrf_id () const |
| uint32_t | GetRefCount () const |
| bool | DBEntrySandesh (Sandesh *sresp, std::string &name) const |
| bool | IsTunnelEnabled () const |
| Type | type () const |
| const boost::uuids::uuid & | GetUuid () const |
| const std::string & | name () const |
| VrfEntry * | vrf () const |
| bool | ipv4_active () const |
| bool | ipv6_active () const |
| bool | is_hc_active () const |
| bool | metadata_ip_active () const |
| bool | metadata_l2_active () const |
| bool | ip_active (Address::Family family) const |
| bool | l2_active () const |
| const uint32_t | id () const |
| bool | dhcp_enabled () const |
| bool | dhcp_enabled_v6 () const |
| bool | dns_enabled () const |
| uint32_t | label () const |
| uint32_t | l2_label () const |
| bool | IsL2LabelValid (uint32_t label) const |
| uint32_t | os_index () const |
| const MacAddress & | mac () const |
| bool | os_oper_state () const |
| bool | admin_state () const |
| void | set_test_oper_state (bool val) |
| void | set_flow_key_nh (const NextHop *nh) |
| const NextHop * | flow_key_nh () const |
| Interface::Transport | transport () const |
| bool | IsUveActive () const |
| const AgentQosConfig * | qos_config () const |
| void | UpdateOperStateOfSubIntf (const InterfaceTable *table) |
| bool | NeedDefaultOsOperStateDisabled (Agent *agent) const |
| boost::optional< InterfaceOsParams::IfGuid > | os_guid () const |
| const boost::uuids::uuid & | logical_router_uuid () const |
| void | set_logical_router_uuid (const boost::uuids::uuid &logical_router_uuid) |
| InterfaceOsParams | get_os_params () |
Public Member Functions inherited from AgentOperDBEntry | |
| AgentOperDBEntry () | |
| virtual | ~AgentOperDBEntry () |
| IFMapNode * | ifmap_node () const |
| void | SetIFMapNodeState (IFMapDependencyManager::IFMapNodePtr sref) |
Public Member Functions inherited from AgentDBEntry | |
| AgentDBEntry () | |
| virtual | ~AgentDBEntry () |
| void | SetRefState () const |
| void | ClearRefState () const |
| bool | IsActive () const |
| DBState * | GetAgentDBEntryState (int listener_id) |
| const DBState * | GetAgentDBEntryState (int listener_id) const |
| virtual void | AllocateResources (ResourceManager *resource_manager) |
| virtual void | FreeResources (ResourceManager *resource_manager) |
Public Member Functions inherited from DBEntry | |
| DBEntry () | |
| virtual | ~DBEntry () |
| bool | operator< (const DBEntry &rhs) const |
Public Member Functions inherited from DBEntryBase | |
| DBEntryBase () | |
| virtual | ~DBEntryBase () |
| virtual bool | IsMoreSpecific (const std::string &match) const |
| virtual bool | IsLessSpecific (const std::string &match) const |
| void | SetState (DBTableBase *tbl_base, ListenerId listener, DBState *state) |
| void | ClearState (DBTableBase *tbl_base, ListenerId listener) |
| DBState * | GetState (DBTableBase *tbl_base, ListenerId listener) const |
| const DBState * | GetState (const DBTableBase *tbl_base, ListenerId listener) const |
| bool | is_state_empty (DBTablePartBase *tpart) |
| bool | is_state_empty_unlocked (DBTablePartBase *tpart) |
| void | Delete () |
| void | MarkDelete () |
| void | ClearDelete () |
| bool | IsDeleted () const |
| void | set_onlist () |
| void | clear_onlist () |
| bool | is_onlist () |
| void | SetOnRemoveQ () |
| bool | IsOnRemoveQ () |
| void | ClearOnRemoveQ () |
| void | set_last_change_at (uint64_t time) |
| void | set_last_change_at_to_now () |
| const uint64_t | last_change_at () const |
| const std::string | last_change_at_str () const |
| void | set_last_update_at (uint64_t time) |
| void | set_last_update_at_to_now () |
| const uint64_t | last_update_at () const |
| DBTablePartBase * | get_table_partition () const |
| void | set_table_partition (DBTablePartBase *tpart) |
| DBTableBase * | get_table () const |
| void | Notify () |
Static Public Member Functions | |
| static void | CreateReq (InterfaceTable *table, const std::string &ifname, const std::string &vrf_name, SubType subtype, EncapType encap, bool no_arp, const boost::uuids::uuid &device_uuid, const Ip4Address &ip, Interface::Transport transport) |
| static void | Create (InterfaceTable *table, const std::string &ifname, const std::string &vrf_name, SubType subtype, EncapType encap, bool no_arp, const boost::uuids::uuid &device_uuid, const Ip4Address &ip, Interface::Transport transport_) |
| static void | DeleteReq (InterfaceTable *table, const std::string &ifname) |
| static void | Delete (InterfaceTable *table, const std::string &ifname) |
Private Member Functions | |
| std::string | GetPhysicalInterfaceName () const |
| DISALLOW_COPY_AND_ASSIGN (PhysicalInterface) | |
Private Attributes | |
| bool | persistent_ |
| SubType | subtype_ |
| EncapType | encap_type_ |
| bool | no_arp_ |
| PhysicalDeviceRef | physical_device_ |
| std::string | display_name_ |
| Ip4Address | ip_ |
| BondChildIntfMap | bond_childIntf_map_ |
Friends | |
| struct | PhysicalInterfaceKey |
| struct | PhysicalInterfaceOsOperStateData |
| class | TestVnswIf |
Additional Inherited Members | |
Public Attributes inherited from DBEntryBase | |
| boost::intrusive::list_member_hook | chg_list_ |
Static Public Attributes inherited from Interface | |
| static const uint32_t | kInvalidIndex = 0xFFFFFFFF |
Protected Member Functions inherited from Interface | |
| void | SetItfSandeshData (ItfSandeshData &data) const |
Protected Attributes inherited from Interface | |
| Type | type_ |
| boost::uuids::uuid | uuid_ |
| VrfEntryRef | vrf_ |
| uint32_t | label_ |
| uint32_t | l2_label_ |
| bool | ipv4_active_ |
| bool | ipv6_active_ |
| bool | is_hc_active_ |
| bool | metadata_ip_active_ |
| bool | metadata_l2_active_ |
| bool | l2_active_ |
| size_t | id_ |
| bool | dhcp_enabled_ |
| bool | dhcp_enabled_v6_ |
| bool | dns_enabled_ |
| bool | admin_state_ |
| bool | test_oper_state_ |
| NextHopConstRef | flow_key_nh_ |
| Transport | transport_ |
| AgentQosConfigConstRef | qos_config_ |
| struct InterfaceOsParams | os_params_ |
| boost::uuids::uuid | logical_router_uuid_ |
Definition at line 16 of file physical_interface.h.
| typedef std::map<const std::string, Bond_ChildIntf> PhysicalInterface::BondChildIntfMap |
Definition at line 36 of file physical_interface.h.
| typedef BondChildIntfMap::const_iterator PhysicalInterface::BondChildIntfMapIterator |
Definition at line 37 of file physical_interface.h.
| Enumerator | |
|---|---|
| ETHERNET | |
| RAW_IP | |
Definition at line 25 of file physical_interface.h.
| Enumerator | |
|---|---|
| FABRIC | |
| VMWARE | |
| CONFIG | |
| INVALID | |
Definition at line 18 of file physical_interface.h.
| PhysicalInterface::PhysicalInterface | ( | const std::string & | name, |
| const boost::uuids::uuid & | logical_router_uuid | ||
| ) |
Definition at line 28 of file physical_interface.cc.
|
virtual |
Definition at line 35 of file physical_interface.cc.
|
virtual |
Implements Interface.
Definition at line 46 of file physical_interface.cc.

|
static |
|
static |
|
virtual |
Reimplemented from Interface.
Definition at line 111 of file physical_interface.cc.

|
static |
|
static |
|
private |
|
inline |
Definition at line 54 of file physical_interface.h.
|
inline |
Definition at line 63 of file physical_interface.h.
|
inline |
Definition at line 88 of file physical_interface.h.
|
virtual |
Implements Interface.
Definition at line 51 of file physical_interface.cc.

|
private |
|
inline |
Definition at line 65 of file physical_interface.h.
|
inline |
Definition at line 64 of file physical_interface.h.
|
virtual |
Reimplemented from Interface.
Definition at line 55 of file interface_params.cc.

|
virtual |
| bool PhysicalInterface::OnChange | ( | PhysicalInterfaceData * | data | ) |
|
inline |
Definition at line 62 of file physical_interface.h.
| PhysicalDevice * PhysicalInterface::physical_device | ( | ) | const |
Definition at line 38 of file physical_interface.cc.
|
virtual |
Reimplemented from AgentDBEntry.
Definition at line 125 of file physical_interface.cc.

|
inline |
Definition at line 91 of file physical_interface.h.
|
inline |
Definition at line 52 of file physical_interface.h.
|
virtual |
Implements DBEntryBase.
Definition at line 42 of file physical_interface.cc.

|
friend |
Definition at line 84 of file physical_interface.h.
|
friend |
Definition at line 85 of file physical_interface.h.
|
friend |
Definition at line 86 of file physical_interface.h.
|
private |
Definition at line 106 of file physical_interface.h.
|
private |
Definition at line 103 of file physical_interface.h.
|
private |
Definition at line 100 of file physical_interface.h.
|
private |
Definition at line 104 of file physical_interface.h.
|
private |
Definition at line 101 of file physical_interface.h.
|
private |
Definition at line 98 of file physical_interface.h.
|
private |
Definition at line 102 of file physical_interface.h.
|
private |
Definition at line 99 of file physical_interface.h.