Documentation ¶
Index ¶
- Constants
- Variables
- func BootstrapNetOpPod() error
- func TcCmdError(tcCmd string, err error, cmdOut string) string
- type NetOps
- func (s *NetOps) UpdateConnectionContext(ctx context.Context, conContext *netops.NetOpConnectionContext) (*netops.Response, error)
- func (s *NetOps) UpdateSliceLifeCycleEvent(ctx context.Context, sliceEvent *netops.SliceLifeCycleEvent) (*netops.Response, error)
- func (s *NetOps) UpdateSliceQosProfile(ctx context.Context, qosProfile *netops.SliceQosProfile) (*netops.Response, error)
- type SliceGwInfo
- type SliceInfo
- type SliceQosProfile
- type TcInfo
Constants ¶
View Source
const ( SLICE_GW_SERVER sliceGwType = "SLICE_GW_SERVER" SLICE_GW_CLIENT sliceGwType = "SLICE_GW_CLIENT" )
sliceGwType - Slice Gateway Host type - client/server
View Source
const MAX_NUM_OF_SLICE uint32 = 100
Variables ¶
View Source
var ( // NetOpHandle is a global handle to store the slice information in a map. NetOpHandle map[string]*SliceInfo )
Functions ¶
func BootstrapNetOpPod ¶
func BootstrapNetOpPod() error
BootstrapNetOpPod handles the bootstrap of the NetOp Pod.
Types ¶
type NetOps ¶
type NetOps struct {
netops.UnimplementedNetOpsServiceServer
}
NetOps represents the GRPC NetOps
func (*NetOps) UpdateConnectionContext ¶
func (s *NetOps) UpdateConnectionContext(ctx context.Context, conContext *netops.NetOpConnectionContext) (*netops.Response, error)
UpdateConnectionContext updates the connection context and adds the route
func (*NetOps) UpdateSliceLifeCycleEvent ¶
func (s *NetOps) UpdateSliceLifeCycleEvent(ctx context.Context, sliceEvent *netops.SliceLifeCycleEvent) (*netops.Response, error)
UpdateSliceLifeCycleEvent handles slice life cycle events
func (*NetOps) UpdateSliceQosProfile ¶
func (s *NetOps) UpdateSliceQosProfile(ctx context.Context, qosProfile *netops.SliceQosProfile) (*netops.Response, error)
UpdateSliceQosProfile implements the QoS Policy for a slice
type SliceGwInfo ¶
type SliceGwInfo struct {
// contains filtered or unexported fields
}
type SliceInfo ¶
type SliceInfo struct {
// contains filtered or unexported fields
}
SliceInfo - the Slice information
type SliceQosProfile ¶
type SliceQosProfile struct {
// contains filtered or unexported fields
}
sliceQosProfile structure to store slice QoS Profile
Click to show internal directories.
Click to hide internal directories.