Documentation ¶
Index ¶
- Constants
- type BGPFlexSwitch
- type BGPOvsOperations
- type BGPOvsRouterInfo
- type BGPOvsdbHandler
- func (ovsHdl *BGPOvsdbHandler) CreateBgpGlobalConfig(rtrInfo *BGPOvsRouterInfo) *bgpd.BGPGlobal
- func (ovsHdl *BGPOvsdbHandler) DumpBgpNeighborInfo(addrs []net.IP, uuids []UUID, table ovsdb.TableUpdate)
- func (ovsHdl *BGPOvsdbHandler) GetBGPNeighInfoFromBgpRouter() ([]net.IP, []UUID, error)
- func (ovsHdl *BGPOvsdbHandler) GetBGPRouterAsn(table ovsdb.TableUpdate) (*BGPOvsRouterInfo, error)
- func (ovsHdl *BGPOvsdbHandler) GetBGPRouterId(rtUuid UUID, table ovsdb.TableUpdate) string
- func (ovsHdl *BGPOvsdbHandler) HandleBGPNeighborUpd(table ovsdb.TableUpdate) error
- func (ovsHdl *BGPOvsdbHandler) HandleBGPRouteUpd(table ovsdb.TableUpdate) error
- func (ovsHdl *BGPOvsdbHandler) PopulateOvsdbCache(updates ovsdb.TableUpdates)
- func (ovsHdl *BGPOvsdbHandler) StartMonitoring() error
- func (ovsHdl *BGPOvsdbHandler) Transact(operations []ovsdb.Operation) error
- func (ovsHdl *BGPOvsdbHandler) UpdateInfo(updates ovsdb.TableUpdates)
- type BGPOvsdbNotifier
- func (ovsHdl BGPOvsdbNotifier) Disconnected(client *ovsdb.OvsdbClient)
- func (ovsHdl BGPOvsdbNotifier) Echo([]interface{})
- func (ovsHdl BGPOvsdbNotifier) Locked([]interface{})
- func (ovsHdl BGPOvsdbNotifier) Stolen([]interface{})
- func (ovsHdl BGPOvsdbNotifier) Update(context interface{}, tableUpdates ovsdb.TableUpdates)
- type OvsBfdMgr
- type OvsIntfMgr
- func (mgr *OvsIntfMgr) GetIPv4Information(ifIndex int32) (string, error)
- func (mgr *OvsIntfMgr) GetIPv4Intfs() []*config.IntfStateInfo
- func (mgr *OvsIntfMgr) GetIPv6Information(ifIndex int32) (string, error)
- func (mgr *OvsIntfMgr) GetIPv6Intfs() []*config.IntfStateInfo
- func (mgr *OvsIntfMgr) GetIPv6Neighbors() []*config.IntfStateInfo
- func (mgr *OvsIntfMgr) GetIfIndex(ifIndex, ifType int) int32
- func (m *OvsIntfMgr) GetLogicalIntfInfo() []config.IntfMapInfo
- func (m *OvsIntfMgr) GetPortInfo() []config.IntfMapInfo
- func (m *OvsIntfMgr) GetVlanInfo() []config.IntfMapInfo
- func (mgr *OvsIntfMgr) PortStateChange()
- func (mgr *OvsIntfMgr) Start()
- type OvsPolicyMgr
- type OvsRouteMgr
- func (mgr *OvsRouteMgr) ApplyPolicy(applyList []*config.ApplyPolicyInfo, undoList []*config.ApplyPolicyInfo)
- func (mgr *OvsRouteMgr) CreateRoute(cfg *config.RouteConfig)
- func (mgr *OvsRouteMgr) DeleteRoute(cfg *config.RouteConfig)
- func (mgr *OvsRouteMgr) GetNextHopInfo(ipAddr string, ifIndex int32) (*config.NextHopInfo, error)
- func (mgr *OvsRouteMgr) GetRoutes() ([]*config.RouteInfo, []*config.RouteInfo)
- func (mgr *OvsRouteMgr) Start()
- func (mgr *OvsRouteMgr) UpdateRoute(cfg *config.RouteConfig, op string)
- type UUID
Constants ¶
const ( // OVSDB Server Location OVSDB_HANDLER_HOST_IP = "10.1.10.229" OVSDB_HANDLER_HOST_PORT = 6640 // OVSDB Table OVSDB_HANDLER_DB_TABLE = "OpenSwitch" // OVSDB macro defines OVSDB_HANDLER_OPERATIONS_SIZE = 1024 OVSDB_FS_INITIAL_SIZE = 100 )
const ( OVSDB_DEFAULT_VRF = "vrf_default" OVSDB_BGP_ROUTER_TABLE = "BGP_Router" OVSDB_BGP_NEIGHBOR_TABLE = "BGP_Neighbor" OVSDB_VRF_TABLE = "VRF" OVSDB_BGP_NEIGHBOR_ENTRIES = "bgp_neighbors" OVSDB_BGP_ROUTER_ENTRIES = "bgp_routers" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BGPFlexSwitch ¶
type BGPFlexSwitch struct {
// contains filtered or unexported fields
}
type BGPOvsOperations ¶
type BGPOvsOperations struct {
// contains filtered or unexported fields
}
type BGPOvsRouterInfo ¶
type BGPOvsdbHandler ¶
type BGPOvsdbHandler struct {
// contains filtered or unexported fields
}
func NewBGPOvsdbHandler ¶
func NewBGPOvsdbHandler(logger *logging.Writer, handler *rpc.BGPHandler) (*BGPOvsdbHandler, error)
func (*BGPOvsdbHandler) CreateBgpGlobalConfig ¶
func (ovsHdl *BGPOvsdbHandler) CreateBgpGlobalConfig(rtrInfo *BGPOvsRouterInfo) *bgpd.BGPGlobal
Creating bgp global flexswitch object using BGP_Router information that was
* parse/collected from ovsdb update
func (*BGPOvsdbHandler) DumpBgpNeighborInfo ¶
func (ovsHdl *BGPOvsdbHandler) DumpBgpNeighborInfo(addrs []net.IP, uuids []UUID, table ovsdb.TableUpdate)
func (*BGPOvsdbHandler) GetBGPNeighInfoFromBgpRouter ¶
func (ovsHdl *BGPOvsdbHandler) GetBGPNeighInfoFromBgpRouter() ([]net.IP, []UUID, error)
Get bgp neighbor uuids and addrs information from bgp router table
func (*BGPOvsdbHandler) GetBGPRouterAsn ¶
func (ovsHdl *BGPOvsdbHandler) GetBGPRouterAsn(table ovsdb.TableUpdate) (*BGPOvsRouterInfo, error)
Lets get asn number for the local bgp and also get the ovsdb BGP_Router uuid
func (*BGPOvsdbHandler) GetBGPRouterId ¶
func (ovsHdl *BGPOvsdbHandler) GetBGPRouterId(rtUuid UUID, table ovsdb.TableUpdate) string
Lets get router id for the asn
func (*BGPOvsdbHandler) HandleBGPNeighborUpd ¶
func (ovsHdl *BGPOvsdbHandler) HandleBGPNeighborUpd(table ovsdb.TableUpdate) error
BGP neighbor update in ovsdb... we will update our backend object
func (*BGPOvsdbHandler) HandleBGPRouteUpd ¶
func (ovsHdl *BGPOvsdbHandler) HandleBGPRouteUpd(table ovsdb.TableUpdate) error
func (*BGPOvsdbHandler) PopulateOvsdbCache ¶
func (ovsHdl *BGPOvsdbHandler) PopulateOvsdbCache(updates ovsdb.TableUpdates)
BGP OVS DB populate cache with the latest update information from the
* notification channel
func (*BGPOvsdbHandler) StartMonitoring ¶
func (ovsHdl *BGPOvsdbHandler) StartMonitoring() error
* BGP OVS DB server. * This API will handle reading operations from table... It can also do * transactions.... In short its read/write bgp ovsdb handler
func (*BGPOvsdbHandler) Transact ¶
func (ovsHdl *BGPOvsdbHandler) Transact(operations []ovsdb.Operation) error
BGP OVS DB transaction api handler
func (*BGPOvsdbHandler) UpdateInfo ¶
func (ovsHdl *BGPOvsdbHandler) UpdateInfo(updates ovsdb.TableUpdates)
BGP OVS DB handle update information
type BGPOvsdbNotifier ¶
type BGPOvsdbNotifier struct {
// contains filtered or unexported fields
}
func NewBGPOvsdbNotifier ¶
func NewBGPOvsdbNotifier(ch chan *ovsdb.TableUpdates) *BGPOvsdbNotifier
func (BGPOvsdbNotifier) Disconnected ¶
func (ovsHdl BGPOvsdbNotifier) Disconnected(client *ovsdb.OvsdbClient)
Stub interfaces for ovsdb library notifier
func (BGPOvsdbNotifier) Echo ¶
func (ovsHdl BGPOvsdbNotifier) Echo([]interface{})
Stub interfaces for ovsdb library notifier
func (BGPOvsdbNotifier) Locked ¶
func (ovsHdl BGPOvsdbNotifier) Locked([]interface{})
Stub interfaces for ovsdb library notifier
func (BGPOvsdbNotifier) Stolen ¶
func (ovsHdl BGPOvsdbNotifier) Stolen([]interface{})
Stub interfaces for ovsdb library notifier
func (BGPOvsdbNotifier) Update ¶
func (ovsHdl BGPOvsdbNotifier) Update(context interface{}, tableUpdates ovsdb.TableUpdates)
Stub interfaces for ovsdb library notifier
type OvsBfdMgr ¶
type OvsBfdMgr struct {
// contains filtered or unexported fields
}
func (*OvsBfdMgr) CreateBfdSession ¶
func (*OvsBfdMgr) DeleteBfdSession ¶
type OvsIntfMgr ¶
type OvsIntfMgr struct {
// contains filtered or unexported fields
}
func (*OvsIntfMgr) GetIPv4Information ¶
func (mgr *OvsIntfMgr) GetIPv4Information(ifIndex int32) (string, error)
func (*OvsIntfMgr) GetIPv4Intfs ¶
func (mgr *OvsIntfMgr) GetIPv4Intfs() []*config.IntfStateInfo
func (*OvsIntfMgr) GetIPv6Information ¶
func (mgr *OvsIntfMgr) GetIPv6Information(ifIndex int32) (string, error)
func (*OvsIntfMgr) GetIPv6Intfs ¶
func (mgr *OvsIntfMgr) GetIPv6Intfs() []*config.IntfStateInfo
func (*OvsIntfMgr) GetIPv6Neighbors ¶
func (mgr *OvsIntfMgr) GetIPv6Neighbors() []*config.IntfStateInfo
func (*OvsIntfMgr) GetIfIndex ¶
func (mgr *OvsIntfMgr) GetIfIndex(ifIndex, ifType int) int32
func (*OvsIntfMgr) GetLogicalIntfInfo ¶
func (m *OvsIntfMgr) GetLogicalIntfInfo() []config.IntfMapInfo
func (*OvsIntfMgr) GetPortInfo ¶
func (m *OvsIntfMgr) GetPortInfo() []config.IntfMapInfo
func (*OvsIntfMgr) GetVlanInfo ¶
func (m *OvsIntfMgr) GetVlanInfo() []config.IntfMapInfo
func (*OvsIntfMgr) PortStateChange ¶
func (mgr *OvsIntfMgr) PortStateChange()
func (*OvsIntfMgr) Start ¶
func (mgr *OvsIntfMgr) Start()
type OvsPolicyMgr ¶
type OvsPolicyMgr struct {
// contains filtered or unexported fields
}
func (*OvsPolicyMgr) Start ¶
func (mgr *OvsPolicyMgr) Start()
type OvsRouteMgr ¶
type OvsRouteMgr struct {
// contains filtered or unexported fields
}
func (*OvsRouteMgr) ApplyPolicy ¶
func (mgr *OvsRouteMgr) ApplyPolicy(applyList []*config.ApplyPolicyInfo, undoList []*config.ApplyPolicyInfo)
func (*OvsRouteMgr) CreateRoute ¶
func (mgr *OvsRouteMgr) CreateRoute(cfg *config.RouteConfig)
func (*OvsRouteMgr) DeleteRoute ¶
func (mgr *OvsRouteMgr) DeleteRoute(cfg *config.RouteConfig)
func (*OvsRouteMgr) GetNextHopInfo ¶
func (mgr *OvsRouteMgr) GetNextHopInfo(ipAddr string, ifIndex int32) (*config.NextHopInfo, error)
func (*OvsRouteMgr) GetRoutes ¶
func (mgr *OvsRouteMgr) GetRoutes() ([]*config.RouteInfo, []*config.RouteInfo)
func (*OvsRouteMgr) Start ¶
func (mgr *OvsRouteMgr) Start()
func (*OvsRouteMgr) UpdateRoute ¶
func (mgr *OvsRouteMgr) UpdateRoute(cfg *config.RouteConfig, op string)