Documentation ¶
Overview ¶
* Copyright 2019-present Ciena Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2019-present Ciena Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Constants
- func RegisterCompletionCommands(parent *flags.Parser)
- func RegisterConfigCommands(parent *flags.Parser)
- func RegisterLoggingCommands(parent *flags.Parser)
- func RegisterONUCommands(parser *flags.Parser)
- func RegisterOltCommands(parser *flags.Parser)
- type BashOptions
- type CompletionOptions
- type ConfigOptions
- type LoggingOptions
- type ONUDhcpRestart
- type ONUEapolRestart
- type ONUGet
- type ONUList
- type ONUOptions
- type ONUPowerOn
- type ONUShutDown
- type OltGet
- type OltNNIs
- type OltPONs
- type OltPoweron
- type OltReboot
- type OltShutdown
- type OnuSnString
- type RpcEventHandler
- func (h *RpcEventHandler) GetParams(msg proto.Message) error
- func (h *RpcEventHandler) OnReceiveHeaders(metadata.MD)
- func (h *RpcEventHandler) OnReceiveResponse(m proto.Message)
- func (h *RpcEventHandler) OnReceiveTrailers(s *status.Status, m metadata.MD)
- func (h *RpcEventHandler) OnResolveMethod(*desc.MethodDescriptor)
- func (h *RpcEventHandler) OnSendHeaders(metadata.MD)
Constants ¶
const ( DEFAULT_OLT_DEVICE_HEADER_FORMAT = "table{{ .ID }}\t{{ .SerialNumber }}\t{{ .OperState }}\t{{ .InternalState }}" DEFAULT_PORT_HEADER_FORMAT = "table{{ .ID }}\t{{ .OperState }}" )
const (
DEFAULT_ONU_DEVICE_HEADER_FORMAT = "" /* 152-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func RegisterCompletionCommands ¶
func RegisterCompletionCommands(parent *flags.Parser)
func RegisterConfigCommands ¶
func RegisterConfigCommands(parent *flags.Parser)
func RegisterLoggingCommands ¶
func RegisterLoggingCommands(parent *flags.Parser)
func RegisterONUCommands ¶
func RegisterONUCommands(parser *flags.Parser)
func RegisterOltCommands ¶
func RegisterOltCommands(parser *flags.Parser)
Types ¶
type BashOptions ¶
type BashOptions struct{}
func (*BashOptions) Execute ¶
func (options *BashOptions) Execute(args []string) error
type CompletionOptions ¶
type CompletionOptions struct {
BashOptions `command:"bash"`
}
type ConfigOptions ¶
type ConfigOptions struct{}
func (*ConfigOptions) Execute ¶
func (options *ConfigOptions) Execute(args []string) error
type LoggingOptions ¶
type LoggingOptions struct { Args struct { Level string Caller bool } `positional-args:"yes" required:"yes"` }
func (*LoggingOptions) Execute ¶
func (options *LoggingOptions) Execute(args []string) error
type ONUDhcpRestart ¶ added in v0.0.5
type ONUDhcpRestart struct { Args struct { OnuSn OnuSnString } `positional-args:"yes" required:"yes"` }
func (*ONUDhcpRestart) Execute ¶ added in v0.0.5
func (options *ONUDhcpRestart) Execute(args []string) error
type ONUEapolRestart ¶ added in v0.0.5
type ONUEapolRestart struct { Args struct { OnuSn OnuSnString } `positional-args:"yes" required:"yes"` }
func (*ONUEapolRestart) Execute ¶ added in v0.0.5
func (options *ONUEapolRestart) Execute(args []string) error
type ONUGet ¶
type ONUGet struct { Args struct { OnuSn OnuSnString } `positional-args:"yes" required:"yes"` }
type ONUOptions ¶
type ONUOptions struct { List ONUList `command:"list"` Get ONUGet `command:"get"` ShutDown ONUShutDown `command:"shutdown"` PowerOn ONUPowerOn `command:"poweron"` RestartEapol ONUEapolRestart `command:"auth_restart"` RestartDchp ONUDhcpRestart `command:"dhcp_restart"` }
type ONUPowerOn ¶
type ONUPowerOn struct { Args struct { OnuSn OnuSnString } `positional-args:"yes" required:"yes"` }
func (*ONUPowerOn) Execute ¶
func (options *ONUPowerOn) Execute(args []string) error
type ONUShutDown ¶
type ONUShutDown struct { Args struct { OnuSn OnuSnString } `positional-args:"yes" required:"yes"` }
func (*ONUShutDown) Execute ¶
func (options *ONUShutDown) Execute(args []string) error
type OltPoweron ¶ added in v0.0.7
type OltPoweron struct{}
func (*OltPoweron) Execute ¶ added in v0.0.7
func (o *OltPoweron) Execute(args []string) error
type OltShutdown ¶ added in v0.0.7
type OltShutdown struct{}
func (*OltShutdown) Execute ¶ added in v0.0.7
func (o *OltShutdown) Execute(args []string) error
type OnuSnString ¶
type OnuSnString string
func (*OnuSnString) Complete ¶
func (onuSn *OnuSnString) Complete(match string) []flags.Completion
type RpcEventHandler ¶
type RpcEventHandler struct { Response proto.Message Status *status.Status Data []byte Fields map[string]map[string]interface{} }
func (*RpcEventHandler) OnReceiveHeaders ¶
func (h *RpcEventHandler) OnReceiveHeaders(metadata.MD)
func (*RpcEventHandler) OnReceiveResponse ¶
func (h *RpcEventHandler) OnReceiveResponse(m proto.Message)
func (*RpcEventHandler) OnReceiveTrailers ¶
func (h *RpcEventHandler) OnReceiveTrailers(s *status.Status, m metadata.MD)
func (*RpcEventHandler) OnResolveMethod ¶
func (h *RpcEventHandler) OnResolveMethod(*desc.MethodDescriptor)
func (*RpcEventHandler) OnSendHeaders ¶
func (h *RpcEventHandler) OnSendHeaders(metadata.MD)