flexswitch

package
v0.0.0-...-a4e6d7a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Copyright [2016] [SnapRoute Inc]

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.

_______ __ __________ ___ _______.____ __ ____ __ .___________. ______ __ __ | ____|| | | ____\ \ / / / |\ \ / \ / / | | | | / || | | | | |__ | | | |__ \ V / | (----` \ \/ \/ / | | `---| |----`| ,----'| |__| | | __| | | | __| > < \ \ \ / | | | | | | | __ | | | | `----.| |____ / . \ .----) | \ /\ / | | | | | `----.| | | | |__| |_______||_______/__/ \__\ |_______/ \__/ \__/ |__| |__| \______||__| |__|

Index

Constants

View Source
const (
	CLIENTS_FILE_NAME = "clients.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AsicPlugin

type AsicPlugin struct {
	// contains filtered or unexported fields
}

func NewAsicPlugin

func NewAsicPlugin(fileName string) (*AsicPlugin, error)

func (*AsicPlugin) GetPortsInfo

func (p *AsicPlugin) GetPortsInfo() []*config.PortInfo

func (*AsicPlugin) Start

func (p *AsicPlugin) Start()

type ClientJson

type ClientJson struct {
	Name string `json:Name`
	Port int    `json:Port`
}

type ConfigHandler

type ConfigHandler struct {
}

func NewConfigHandler

func NewConfigHandler() *ConfigHandler

func (*ConfigHandler) CreateLLDPGlobal

func (h *ConfigHandler) CreateLLDPGlobal(config *lldpd.LLDPGlobal) (r bool, err error)

func (*ConfigHandler) CreateLLDPIntf

func (h *ConfigHandler) CreateLLDPIntf(config *lldpd.LLDPIntf) (r bool, err error)

func (*ConfigHandler) DeleteLLDPGlobal

func (h *ConfigHandler) DeleteLLDPGlobal(config *lldpd.LLDPGlobal) (r bool, err error)

func (*ConfigHandler) DeleteLLDPIntf

func (h *ConfigHandler) DeleteLLDPIntf(config *lldpd.LLDPIntf) (r bool, err error)

func (*ConfigHandler) GetBulkLLDPGlobalState

func (h *ConfigHandler) GetBulkLLDPGlobalState(fromIndex lldpd.Int, count lldpd.Int) (*lldpd.LLDPGlobalStateGetInfo, error)

func (*ConfigHandler) GetBulkLLDPIntf

func (h *ConfigHandler) GetBulkLLDPIntf(fromIndex lldpd.Int, count lldpd.Int) (*lldpd.LLDPIntfGetInfo, error)

func (*ConfigHandler) GetBulkLLDPIntfState

func (h *ConfigHandler) GetBulkLLDPIntfState(fromIndex lldpd.Int, count lldpd.Int) (*lldpd.LLDPIntfStateGetInfo, error)

func (*ConfigHandler) GetLLDPGlobalState

func (h *ConfigHandler) GetLLDPGlobalState(vrf string) (*lldpd.LLDPGlobalState, error)

func (*ConfigHandler) GetLLDPIntf

func (h *ConfigHandler) GetLLDPIntf(intfRef string) (*lldpd.LLDPIntf, error)

func (*ConfigHandler) GetLLDPIntfState

func (h *ConfigHandler) GetLLDPIntfState(intfRef string) (*lldpd.LLDPIntfState, error)

func (*ConfigHandler) UpdateLLDPGlobal

func (h *ConfigHandler) UpdateLLDPGlobal(origconfig *lldpd.LLDPGlobal,
	newconfig *lldpd.LLDPGlobal, attrset []bool, op []*lldpd.PatchOpInfo) (r bool, err error)

func (*ConfigHandler) UpdateLLDPIntf

func (h *ConfigHandler) UpdateLLDPIntf(origconfig *lldpd.LLDPIntf,
	newconfig *lldpd.LLDPIntf, attrset []bool, op []*lldpd.PatchOpInfo) (r bool, err error)

type NBPlugin

type NBPlugin struct {
	// contains filtered or unexported fields
}

func NewNBPlugin

func NewNBPlugin(handler *ConfigHandler, fileName string) *NBPlugin

func (*NBPlugin) Start

func (p *NBPlugin) Start() error

type SystemPlugin

type SystemPlugin struct {
	// contains filtered or unexported fields
}

func NewSystemPlugin

func NewSystemPlugin(fileName string, db *dbutils.DBUtil) (*SystemPlugin, error)

func (*SystemPlugin) GetSystemInfo

func (p *SystemPlugin) GetSystemInfo(dbHdl *dbutils.DBUtil) *config.SystemInfo

func (*SystemPlugin) PublishEvent

func (p *SystemPlugin) PublishEvent(info config.EventInfo)

func (*SystemPlugin) Start

func (p *SystemPlugin) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL