zebra

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package zebra is a generated protocol buffer package.

It is generated from these files:

zebra.proto

It has these top-level messages:

IPv4
PrefixIPv4
NexthopIPv4
IPv6
PrefixIPv6
NexthopIPv6
RouteIPv4
RouteIPv4Response
RouteIPv6
RouteIPv6Response

Index

Constants

This section is empty.

Variables

View Source
var RouteSubType_name = map[int32]string{
	0:  "RIB_SUB_OSPF_IA",
	1:  "RIB_SUB_OSPF_NSSA_1",
	2:  "RIB_SUB_OSPF_NSSA_2",
	3:  "RIB_SUB_OSPF_EXTERNAL_1",
	4:  "RIB_SUB_OSPF_EXTERNAL_2",
	5:  "RIB_SUB_BGP_IBGP",
	6:  "RIB_SUB_BGP_EBGP",
	7:  "RIB_SUB_BGP_CONFED",
	8:  "RIB_SUB_ISIS_L1",
	9:  "RIB_SUB_ISIS_L2",
	10: "RIB_SUB_ISIS_IA",
}
View Source
var RouteSubType_value = map[string]int32{
	"RIB_SUB_OSPF_IA":         0,
	"RIB_SUB_OSPF_NSSA_1":     1,
	"RIB_SUB_OSPF_NSSA_2":     2,
	"RIB_SUB_OSPF_EXTERNAL_1": 3,
	"RIB_SUB_OSPF_EXTERNAL_2": 4,
	"RIB_SUB_BGP_IBGP":        5,
	"RIB_SUB_BGP_EBGP":        6,
	"RIB_SUB_BGP_CONFED":      7,
	"RIB_SUB_ISIS_L1":         8,
	"RIB_SUB_ISIS_L2":         9,
	"RIB_SUB_ISIS_IA":         10,
}
View Source
var RouteType_name = map[int32]string{
	0: "RIB_UNKNOWN",
	1: "RIB_KERNEL",
	2: "RIB_CONNECTED",
	3: "RIB_STATIC",
	4: "RIB_RIP",
	5: "RIB_RIPNG",
	6: "RIB_OSPF",
	7: "RIB_OSPF6",
	8: "RIB_BGP",
	9: "RIB_ISIS",
}
View Source
var RouteType_value = map[string]int32{
	"RIB_UNKNOWN":   0,
	"RIB_KERNEL":    1,
	"RIB_CONNECTED": 2,
	"RIB_STATIC":    3,
	"RIB_RIP":       4,
	"RIB_RIPNG":     5,
	"RIB_OSPF":      6,
	"RIB_OSPF6":     7,
	"RIB_BGP":       8,
	"RIB_ISIS":      9,
}

Functions

func RegisterZebraApiServer

func RegisterZebraApiServer(s *grpc.Server, srv ZebraApiServer)

Types

type IPv4

type IPv4 struct {
	SAddr uint32 `protobuf:"varint,1,opt,name=s_addr,json=sAddr" json:"s_addr,omitempty"`
}

func (*IPv4) Descriptor

func (*IPv4) Descriptor() ([]byte, []int)

func (*IPv4) GetSAddr

func (m *IPv4) GetSAddr() uint32

func (*IPv4) ProtoMessage

func (*IPv4) ProtoMessage()

func (*IPv4) Reset

func (m *IPv4) Reset()

func (*IPv4) String

func (m *IPv4) String() string

type IPv6

type IPv6 struct {
	S6Addr1 uint32 `protobuf:"varint,1,opt,name=s6_addr1,json=s6Addr1" json:"s6_addr1,omitempty"`
	S6Addr2 uint32 `protobuf:"varint,2,opt,name=s6_addr2,json=s6Addr2" json:"s6_addr2,omitempty"`
	S6Addr3 uint32 `protobuf:"varint,3,opt,name=s6_addr3,json=s6Addr3" json:"s6_addr3,omitempty"`
	S6Addr4 uint32 `protobuf:"varint,4,opt,name=s6_addr4,json=s6Addr4" json:"s6_addr4,omitempty"`
}

func (*IPv6) Descriptor

func (*IPv6) Descriptor() ([]byte, []int)

func (*IPv6) GetS6Addr1

func (m *IPv6) GetS6Addr1() uint32

func (*IPv6) GetS6Addr2

func (m *IPv6) GetS6Addr2() uint32

func (*IPv6) GetS6Addr3

func (m *IPv6) GetS6Addr3() uint32

func (*IPv6) GetS6Addr4

func (m *IPv6) GetS6Addr4() uint32

func (*IPv6) ProtoMessage

func (*IPv6) ProtoMessage()

func (*IPv6) Reset

func (m *IPv6) Reset()

func (*IPv6) String

func (m *IPv6) String() string

type NexthopIPv4

type NexthopIPv4 struct {
	Addr    *IPv4  `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
	Ifindex uint32 `protobuf:"varint,2,opt,name=ifindex" json:"ifindex,omitempty"`
}

func (*NexthopIPv4) Descriptor

func (*NexthopIPv4) Descriptor() ([]byte, []int)

func (*NexthopIPv4) GetAddr

func (m *NexthopIPv4) GetAddr() *IPv4

func (*NexthopIPv4) GetIfindex

func (m *NexthopIPv4) GetIfindex() uint32

func (*NexthopIPv4) ProtoMessage

func (*NexthopIPv4) ProtoMessage()

func (*NexthopIPv4) Reset

func (m *NexthopIPv4) Reset()

func (*NexthopIPv4) String

func (m *NexthopIPv4) String() string

type NexthopIPv6

type NexthopIPv6 struct {
	Addr    *IPv6  `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
	Ifindex uint32 `protobuf:"varint,2,opt,name=ifindex" json:"ifindex,omitempty"`
}

func (*NexthopIPv6) Descriptor

func (*NexthopIPv6) Descriptor() ([]byte, []int)

func (*NexthopIPv6) GetAddr

func (m *NexthopIPv6) GetAddr() *IPv6

func (*NexthopIPv6) GetIfindex

func (m *NexthopIPv6) GetIfindex() uint32

func (*NexthopIPv6) ProtoMessage

func (*NexthopIPv6) ProtoMessage()

func (*NexthopIPv6) Reset

func (m *NexthopIPv6) Reset()

func (*NexthopIPv6) String

func (m *NexthopIPv6) String() string

type PrefixIPv4

type PrefixIPv4 struct {
	Addr   *IPv4  `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
	Length uint32 `protobuf:"varint,2,opt,name=length" json:"length,omitempty"`
}

func (*PrefixIPv4) Descriptor

func (*PrefixIPv4) Descriptor() ([]byte, []int)

func (*PrefixIPv4) GetAddr

func (m *PrefixIPv4) GetAddr() *IPv4

func (*PrefixIPv4) GetLength

func (m *PrefixIPv4) GetLength() uint32

func (*PrefixIPv4) ProtoMessage

func (*PrefixIPv4) ProtoMessage()

func (*PrefixIPv4) Reset

func (m *PrefixIPv4) Reset()

func (*PrefixIPv4) String

func (m *PrefixIPv4) String() string

type PrefixIPv6

type PrefixIPv6 struct {
	Addr   *IPv6  `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
	Length uint32 `protobuf:"varint,2,opt,name=length" json:"length,omitempty"`
}

func (*PrefixIPv6) Descriptor

func (*PrefixIPv6) Descriptor() ([]byte, []int)

func (*PrefixIPv6) GetAddr

func (m *PrefixIPv6) GetAddr() *IPv6

func (*PrefixIPv6) GetLength

func (m *PrefixIPv6) GetLength() uint32

func (*PrefixIPv6) ProtoMessage

func (*PrefixIPv6) ProtoMessage()

func (*PrefixIPv6) Reset

func (m *PrefixIPv6) Reset()

func (*PrefixIPv6) String

func (m *PrefixIPv6) String() string

type RouteIPv4

type RouteIPv4 struct {
	Type     RouteType      `protobuf:"varint,1,opt,name=type,enum=zebra.RouteType" json:"type,omitempty"`
	SubType  RouteSubType   `protobuf:"varint,2,opt,name=sub_type,json=subType,enum=zebra.RouteSubType" json:"sub_type,omitempty"`
	Prefix   *PrefixIPv4    `protobuf:"bytes,3,opt,name=prefix" json:"prefix,omitempty"`
	Distance uint32         `protobuf:"varint,4,opt,name=distance" json:"distance,omitempty"`
	Metric   uint32         `protobuf:"varint,5,opt,name=metric" json:"metric,omitempty"`
	Nexthops []*NexthopIPv4 `protobuf:"bytes,6,rep,name=nexthops" json:"nexthops,omitempty"`
}

func (*RouteIPv4) Descriptor

func (*RouteIPv4) Descriptor() ([]byte, []int)

func (*RouteIPv4) GetDistance

func (m *RouteIPv4) GetDistance() uint32

func (*RouteIPv4) GetMetric

func (m *RouteIPv4) GetMetric() uint32

func (*RouteIPv4) GetNexthops

func (m *RouteIPv4) GetNexthops() []*NexthopIPv4

func (*RouteIPv4) GetPrefix

func (m *RouteIPv4) GetPrefix() *PrefixIPv4

func (*RouteIPv4) GetSubType

func (m *RouteIPv4) GetSubType() RouteSubType

func (*RouteIPv4) GetType

func (m *RouteIPv4) GetType() RouteType

func (*RouteIPv4) ProtoMessage

func (*RouteIPv4) ProtoMessage()

func (*RouteIPv4) Reset

func (m *RouteIPv4) Reset()

func (*RouteIPv4) String

func (m *RouteIPv4) String() string

type RouteIPv4Response

type RouteIPv4Response struct {
}

func (*RouteIPv4Response) Descriptor

func (*RouteIPv4Response) Descriptor() ([]byte, []int)

func (*RouteIPv4Response) ProtoMessage

func (*RouteIPv4Response) ProtoMessage()

func (*RouteIPv4Response) Reset

func (m *RouteIPv4Response) Reset()

func (*RouteIPv4Response) String

func (m *RouteIPv4Response) String() string

type RouteIPv6

type RouteIPv6 struct {
	Type     RouteType      `protobuf:"varint,1,opt,name=type,enum=zebra.RouteType" json:"type,omitempty"`
	SubType  RouteSubType   `protobuf:"varint,2,opt,name=sub_type,json=subType,enum=zebra.RouteSubType" json:"sub_type,omitempty"`
	Prefix   *PrefixIPv6    `protobuf:"bytes,3,opt,name=prefix" json:"prefix,omitempty"`
	Distance uint32         `protobuf:"varint,4,opt,name=distance" json:"distance,omitempty"`
	Metric   uint32         `protobuf:"varint,5,opt,name=metric" json:"metric,omitempty"`
	Nexthops []*NexthopIPv6 `protobuf:"bytes,6,rep,name=nexthops" json:"nexthops,omitempty"`
}

func (*RouteIPv6) Descriptor

func (*RouteIPv6) Descriptor() ([]byte, []int)

func (*RouteIPv6) GetDistance

func (m *RouteIPv6) GetDistance() uint32

func (*RouteIPv6) GetMetric

func (m *RouteIPv6) GetMetric() uint32

func (*RouteIPv6) GetNexthops

func (m *RouteIPv6) GetNexthops() []*NexthopIPv6

func (*RouteIPv6) GetPrefix

func (m *RouteIPv6) GetPrefix() *PrefixIPv6

func (*RouteIPv6) GetSubType

func (m *RouteIPv6) GetSubType() RouteSubType

func (*RouteIPv6) GetType

func (m *RouteIPv6) GetType() RouteType

func (*RouteIPv6) ProtoMessage

func (*RouteIPv6) ProtoMessage()

func (*RouteIPv6) Reset

func (m *RouteIPv6) Reset()

func (*RouteIPv6) String

func (m *RouteIPv6) String() string

type RouteIPv6Response

type RouteIPv6Response struct {
}

func (*RouteIPv6Response) Descriptor

func (*RouteIPv6Response) Descriptor() ([]byte, []int)

func (*RouteIPv6Response) ProtoMessage

func (*RouteIPv6Response) ProtoMessage()

func (*RouteIPv6Response) Reset

func (m *RouteIPv6Response) Reset()

func (*RouteIPv6Response) String

func (m *RouteIPv6Response) String() string

type RouteSubType

type RouteSubType int32
const (
	RouteSubType_RIB_SUB_OSPF_IA         RouteSubType = 0
	RouteSubType_RIB_SUB_OSPF_NSSA_1     RouteSubType = 1
	RouteSubType_RIB_SUB_OSPF_NSSA_2     RouteSubType = 2
	RouteSubType_RIB_SUB_OSPF_EXTERNAL_1 RouteSubType = 3
	RouteSubType_RIB_SUB_OSPF_EXTERNAL_2 RouteSubType = 4
	RouteSubType_RIB_SUB_BGP_IBGP        RouteSubType = 5
	RouteSubType_RIB_SUB_BGP_EBGP        RouteSubType = 6
	RouteSubType_RIB_SUB_BGP_CONFED      RouteSubType = 7
	RouteSubType_RIB_SUB_ISIS_L1         RouteSubType = 8
	RouteSubType_RIB_SUB_ISIS_L2         RouteSubType = 9
	RouteSubType_RIB_SUB_ISIS_IA         RouteSubType = 10
)

func (RouteSubType) EnumDescriptor

func (RouteSubType) EnumDescriptor() ([]byte, []int)

func (RouteSubType) String

func (x RouteSubType) String() string

type RouteType

type RouteType int32
const (
	RouteType_RIB_UNKNOWN   RouteType = 0
	RouteType_RIB_KERNEL    RouteType = 1
	RouteType_RIB_CONNECTED RouteType = 2
	RouteType_RIB_STATIC    RouteType = 3
	RouteType_RIB_RIP       RouteType = 4
	RouteType_RIB_RIPNG     RouteType = 5
	RouteType_RIB_OSPF      RouteType = 6
	RouteType_RIB_OSPF6     RouteType = 7
	RouteType_RIB_BGP       RouteType = 8
	RouteType_RIB_ISIS      RouteType = 9
)

func (RouteType) EnumDescriptor

func (RouteType) EnumDescriptor() ([]byte, []int)

func (RouteType) String

func (x RouteType) String() string

type ZebraApiClient

type ZebraApiClient interface {
	RouteIPv4Add(ctx context.Context, in *RouteIPv4, opts ...grpc.CallOption) (*RouteIPv4Response, error)
	RouteIPv4Delete(ctx context.Context, in *RouteIPv4, opts ...grpc.CallOption) (*RouteIPv4Response, error)
	RouteIPv6Add(ctx context.Context, in *RouteIPv6, opts ...grpc.CallOption) (*RouteIPv6Response, error)
	RouteIPv6Delete(ctx context.Context, in *RouteIPv6, opts ...grpc.CallOption) (*RouteIPv6Response, error)
}

func NewZebraApiClient

func NewZebraApiClient(cc *grpc.ClientConn) ZebraApiClient

type ZebraApiServer

type ZebraApiServer interface {
	RouteIPv4Add(context.Context, *RouteIPv4) (*RouteIPv4Response, error)
	RouteIPv4Delete(context.Context, *RouteIPv4) (*RouteIPv4Response, error)
	RouteIPv6Add(context.Context, *RouteIPv6) (*RouteIPv6Response, error)
	RouteIPv6Delete(context.Context, *RouteIPv6) (*RouteIPv6Response, error)
}

Jump to

Keyboard shortcuts

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