Documentation ¶
Overview ¶
Package grpcadapter implements Domain Specific Language (DSL) for resync and change of VPP configuration using GRPC client.
Index ¶
- type DataChangeDSL
- type DataResyncDSL
- func (dsl *DataResyncDSL) ACL(val *acl.AccessLists_Acl) defaultplugins.DataResyncDSL
- func (dsl *DataResyncDSL) BD(val *l2.BridgeDomains_BridgeDomain) defaultplugins.DataResyncDSL
- func (dsl *DataResyncDSL) BDFIB(val *l2.FibTableEntries_FibTableEntry) defaultplugins.DataResyncDSL
- func (dsl *DataResyncDSL) BfdEchoFunction(val *bfd.SingleHopBFD_EchoFunction) defaultplugins.DataResyncDSL
- func (dsl *DataResyncDSL) BfdKeys(val *bfd.SingleHopBFD_Key) defaultplugins.DataResyncDSL
- func (dsl *DataResyncDSL) BfdSession(val *bfd.SingleHopBFD_Session) defaultplugins.DataResyncDSL
- func (dsl *DataResyncDSL) Interface(val *interfaces.Interfaces_Interface) defaultplugins.DataResyncDSL
- func (dsl *DataResyncDSL) Send() defaultplugins.Reply
- func (dsl *DataResyncDSL) StaticRoute(val *l3.StaticRoutes_Route) defaultplugins.DataResyncDSL
- func (dsl *DataResyncDSL) XConnect(val *l2.XConnectPairs_XConnectPair) defaultplugins.DataResyncDSL
- type DeleteDSL
- func (dsl *DeleteDSL) ACL(aclName string) defaultplugins.DeleteDSL
- func (dsl *DeleteDSL) BD(bdName string) defaultplugins.DeleteDSL
- func (dsl *DeleteDSL) BDFIB(bdName string, mac string) defaultplugins.DeleteDSL
- func (dsl *DeleteDSL) Interface(interfaceName string) defaultplugins.DeleteDSL
- func (dsl *DeleteDSL) Put() defaultplugins.PutDSL
- func (dsl *DeleteDSL) Send() defaultplugins.Reply
- func (dsl *DeleteDSL) StaticRoute(vrf uint32, dstAddrInput *net.IPNet, nextHopAddr net.IP) defaultplugins.DeleteDSL
- func (dsl *DeleteDSL) XConnect(rxIfName string) defaultplugins.DeleteDSL
- type PutDSL
- func (dsl *PutDSL) ACL(val *acl.AccessLists_Acl) defaultplugins.PutDSL
- func (dsl *PutDSL) BD(val *l2.BridgeDomains_BridgeDomain) defaultplugins.PutDSL
- func (dsl *PutDSL) BDFIB(val *l2.FibTableEntries_FibTableEntry) defaultplugins.PutDSL
- func (dsl *PutDSL) BfdAuthKeys(val *bfd.SingleHopBFD_Key) defaultplugins.PutDSL
- func (dsl *PutDSL) BfdEchoFunction(val *bfd.SingleHopBFD_EchoFunction) defaultplugins.PutDSL
- func (dsl *PutDSL) BfdSession(val *bfd.SingleHopBFD_Session) defaultplugins.PutDSL
- func (dsl *PutDSL) Delete() defaultplugins.DeleteDSL
- func (dsl *PutDSL) Interface(val *interfaces.Interfaces_Interface) defaultplugins.PutDSL
- func (dsl *PutDSL) Send() defaultplugins.Reply
- func (dsl *PutDSL) StaticRoute(val *l3.StaticRoutes_Route) defaultplugins.PutDSL
- func (dsl *PutDSL) XConnect(val *l2.XConnectPairs_XConnectPair) defaultplugins.PutDSL
- type Reply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataChangeDSL ¶
type DataChangeDSL struct {
// contains filtered or unexported fields
}
DataChangeDSL is used to conveniently assign all the data that are needed for the DataChange. This is implementation of Domain Specific Language (DSL) for change of the VPP configuration.
func NewDataChangeDSL ¶
func NewDataChangeDSL(client vppsvc.ChangeConfigServiceClient) *DataChangeDSL
NewDataChangeDSL is a constructor
func (*DataChangeDSL) Delete ¶
func (dsl *DataChangeDSL) Delete() defaultplugins.DeleteDSL
Delete gives you the ability to delete Interface/BD...
func (*DataChangeDSL) Put ¶
func (dsl *DataChangeDSL) Put() defaultplugins.PutDSL
Put gives you the ability to create Interface/BD...
func (*DataChangeDSL) Send ¶
func (dsl *DataChangeDSL) Send() defaultplugins.Reply
Send will propagate changes to the channels
type DataResyncDSL ¶
type DataResyncDSL struct {
// contains filtered or unexported fields
}
DataResyncDSL is used to conveniently assign all the data that are needed for the RESYNC This is implementation of Domain Specific Language (DSL) for data RESYNC of the VPP configuration.
func NewDataResyncDSL ¶
func NewDataResyncDSL(client vppsvc.ResyncConfigServiceClient) *DataResyncDSL
NewDataResyncDSL is a constructor
func (*DataResyncDSL) ACL ¶
func (dsl *DataResyncDSL) ACL(val *acl.AccessLists_Acl) defaultplugins.DataResyncDSL
ACL adds Access Control List to the RESYNC request
func (*DataResyncDSL) BD ¶
func (dsl *DataResyncDSL) BD(val *l2.BridgeDomains_BridgeDomain) defaultplugins.DataResyncDSL
BD add Bridge Domain to the RESYNC request
func (*DataResyncDSL) BDFIB ¶
func (dsl *DataResyncDSL) BDFIB(val *l2.FibTableEntries_FibTableEntry) defaultplugins.DataResyncDSL
BDFIB add Bridge Domain to the RESYNC request
func (*DataResyncDSL) BfdEchoFunction ¶
func (dsl *DataResyncDSL) BfdEchoFunction(val *bfd.SingleHopBFD_EchoFunction) defaultplugins.DataResyncDSL
BfdEchoFunction BFD echo function to the RESYNC request
func (*DataResyncDSL) BfdKeys ¶
func (dsl *DataResyncDSL) BfdKeys(val *bfd.SingleHopBFD_Key) defaultplugins.DataResyncDSL
BfdKeys BFD key to the RESYNC request
func (*DataResyncDSL) BfdSession ¶
func (dsl *DataResyncDSL) BfdSession(val *bfd.SingleHopBFD_Session) defaultplugins.DataResyncDSL
BfdSession BFD session to the RESYNC request
func (*DataResyncDSL) Interface ¶
func (dsl *DataResyncDSL) Interface(val *interfaces.Interfaces_Interface) defaultplugins.DataResyncDSL
Interface add Bridge Domain to the RESYNC request
func (*DataResyncDSL) Send ¶
func (dsl *DataResyncDSL) Send() defaultplugins.Reply
Send propagates the request to the plugins. It deletes obsolete keys if listKeys function is not null. The listkeys() function is used to list all current keys.
func (*DataResyncDSL) StaticRoute ¶
func (dsl *DataResyncDSL) StaticRoute(val *l3.StaticRoutes_Route) defaultplugins.DataResyncDSL
StaticRoute adss L3 Static Route to the RESYNC request
func (*DataResyncDSL) XConnect ¶
func (dsl *DataResyncDSL) XConnect(val *l2.XConnectPairs_XConnectPair) defaultplugins.DataResyncDSL
XConnect adds Cross Connect to the RESYNC request
type DeleteDSL ¶
type DeleteDSL struct {
// contains filtered or unexported fields
}
DeleteDSL is here to put here most recent and previous value with revisions
func (*DeleteDSL) ACL ¶
func (dsl *DeleteDSL) ACL(aclName string) defaultplugins.DeleteDSL
ACL delete request for Access Control List
func (*DeleteDSL) BD ¶
func (dsl *DeleteDSL) BD(bdName string) defaultplugins.DeleteDSL
BD create or update the Bridge Domain
func (*DeleteDSL) BDFIB ¶
func (dsl *DeleteDSL) BDFIB(bdName string, mac string) defaultplugins.DeleteDSL
BDFIB delete request for the L2 Forwarding Information Base
func (*DeleteDSL) Interface ¶
func (dsl *DeleteDSL) Interface(interfaceName string) defaultplugins.DeleteDSL
Interface create or update the network interface
func (*DeleteDSL) Put ¶
func (dsl *DeleteDSL) Put() defaultplugins.PutDSL
Put gives you the ability to create Interface/BD...
func (*DeleteDSL) Send ¶
func (dsl *DeleteDSL) Send() defaultplugins.Reply
Send will propagate changes to the channels
func (*DeleteDSL) StaticRoute ¶
func (dsl *DeleteDSL) StaticRoute(vrf uint32, dstAddrInput *net.IPNet, nextHopAddr net.IP) defaultplugins.DeleteDSL
StaticRoute create or update the L3 Static Route
type PutDSL ¶
type PutDSL struct {
// contains filtered or unexported fields
}
PutDSL is here to put here most recent and previous value with revisions
func (*PutDSL) ACL ¶
func (dsl *PutDSL) ACL(val *acl.AccessLists_Acl) defaultplugins.PutDSL
ACL create or update request for the Access Control List
func (*PutDSL) BD ¶
func (dsl *PutDSL) BD(val *l2.BridgeDomains_BridgeDomain) defaultplugins.PutDSL
BD create or update the Bridge Domain
func (*PutDSL) BDFIB ¶
func (dsl *PutDSL) BDFIB(val *l2.FibTableEntries_FibTableEntry) defaultplugins.PutDSL
BDFIB delete request for the L2 Forwarding Information Base
func (*PutDSL) BfdAuthKeys ¶
func (dsl *PutDSL) BfdAuthKeys(val *bfd.SingleHopBFD_Key) defaultplugins.PutDSL
BfdAuthKeys create or update the bidirectional forwarding detection key
func (*PutDSL) BfdEchoFunction ¶
func (dsl *PutDSL) BfdEchoFunction(val *bfd.SingleHopBFD_EchoFunction) defaultplugins.PutDSL
BfdEchoFunction create or update the bidirectional forwarding detection echod function
func (*PutDSL) BfdSession ¶
func (dsl *PutDSL) BfdSession(val *bfd.SingleHopBFD_Session) defaultplugins.PutDSL
BfdSession create or update the bidirectional forwarding detection session
func (*PutDSL) Delete ¶
func (dsl *PutDSL) Delete() defaultplugins.DeleteDSL
Delete gives you the ability to delete Interface/BD...
func (*PutDSL) Interface ¶
func (dsl *PutDSL) Interface(val *interfaces.Interfaces_Interface) defaultplugins.PutDSL
Interface create or update the network interface
func (*PutDSL) Send ¶
func (dsl *PutDSL) Send() defaultplugins.Reply
Send will propagate changes to the channels
func (*PutDSL) StaticRoute ¶
func (dsl *PutDSL) StaticRoute(val *l3.StaticRoutes_Route) defaultplugins.PutDSL
StaticRoute create or update the L3 Static Route
func (*PutDSL) XConnect ¶
func (dsl *PutDSL) XConnect(val *l2.XConnectPairs_XConnectPair) defaultplugins.PutDSL
XConnect create or update the Cross Connect