├── LICENSE ├── README.md ├── adjacency.proto ├── adjacency └── adjacency.pb.go ├── mac_all.proto ├── mac_all └── mac_all.pb.go ├── mdt_dialout.proto ├── microburst.proto ├── microburst └── stats │ └── microburst.pb.go ├── postman_collections ├── README.md └── Telemetry.postman_collection ├── rib └── urib.pb.go ├── telemetry_bis.proto ├── urib.proto └── urib └── urib.pb.go /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # nx-telemetry-proto 2 | NX-OS Telemetry Proto Files 3 | -------------------------------------------------------------------------------- /adjacency.proto: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * adjacency.proto - Adjacency protobuf definitions 3 | * 4 | * September 2018 5 | * 6 | * Copyright (c) 2018-2019 by Cisco Systems, Inc. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | * ---------------------------------------------------------------------------- 20 | */ 21 | 22 | syntax = "proto3"; 23 | 24 | option go_package = "adjacency"; 25 | 26 | option cc_enable_arenas = true; 27 | 28 | /* Adjacency event type 29 | */ 30 | enum AdjacencyEventType { 31 | ADJACENCY_EVENT_TYPE_NO_EVENT = 0; 32 | ADJACENCY_EVENT_TYPE_ADD = 1; 33 | ADJACENCY_EVENT_TYPE_DELETE = 2; 34 | ADJACENCY_EVENT_TYPE_UPDATE = 3; 35 | ADJACENCY_EVENT_TYPE_DOWNLOAD = 4; 36 | ADJACENCY_EVENT_TYPE_DOWNLOAD_DONE = 5; 37 | } 38 | 39 | /* Adjacency address family 40 | */ 41 | enum AdjacencyAddressFamily { 42 | ADJACENCY_AF_IPV4 = 0; 43 | ADJACENCY_AF_IPV6 = 1; 44 | } 45 | 46 | /* Adjacency message 47 | */ 48 | message NxAdjacencyProto { 49 | /* IP address 50 | */ 51 | string ip_address = 1; 52 | 53 | /* MAC address 54 | */ 55 | string mac_address = 2; 56 | 57 | /* Interface name 58 | */ 59 | string interface_name = 3; 60 | 61 | /* Physical interface name 62 | */ 63 | string physical_interface_name = 4; 64 | 65 | /* vrf name 66 | */ 67 | string vrf_name = 5; 68 | 69 | /* Preference 70 | */ 71 | uint32 preference = 6; 72 | 73 | /* source for the adjacency 74 | */ 75 | string source = 7; 76 | 77 | /* Address family for the adjacency 78 | */ 79 | AdjacencyAddressFamily address_family = 8; 80 | 81 | /* Adjacency event type 82 | */ 83 | AdjacencyEventType event_type = 9; 84 | 85 | uint64 timestamp = 10; 86 | 87 | /* Mac associated with multiple ip. */ 88 | repeated string addrlist = 11; 89 | } 90 | -------------------------------------------------------------------------------- /adjacency/adjacency.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: adjacency.proto 3 | 4 | package adjacency 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // Adjacency event type 24 | type AdjacencyEventType int32 25 | 26 | const ( 27 | AdjacencyEventType_ADJACENCY_EVENT_TYPE_NO_EVENT AdjacencyEventType = 0 28 | AdjacencyEventType_ADJACENCY_EVENT_TYPE_ADD AdjacencyEventType = 1 29 | AdjacencyEventType_ADJACENCY_EVENT_TYPE_DELETE AdjacencyEventType = 2 30 | AdjacencyEventType_ADJACENCY_EVENT_TYPE_UPDATE AdjacencyEventType = 3 31 | AdjacencyEventType_ADJACENCY_EVENT_TYPE_DOWNLOAD AdjacencyEventType = 4 32 | AdjacencyEventType_ADJACENCY_EVENT_TYPE_DOWNLOAD_DONE AdjacencyEventType = 5 33 | ) 34 | 35 | var AdjacencyEventType_name = map[int32]string{ 36 | 0: "ADJACENCY_EVENT_TYPE_NO_EVENT", 37 | 1: "ADJACENCY_EVENT_TYPE_ADD", 38 | 2: "ADJACENCY_EVENT_TYPE_DELETE", 39 | 3: "ADJACENCY_EVENT_TYPE_UPDATE", 40 | 4: "ADJACENCY_EVENT_TYPE_DOWNLOAD", 41 | 5: "ADJACENCY_EVENT_TYPE_DOWNLOAD_DONE", 42 | } 43 | 44 | var AdjacencyEventType_value = map[string]int32{ 45 | "ADJACENCY_EVENT_TYPE_NO_EVENT": 0, 46 | "ADJACENCY_EVENT_TYPE_ADD": 1, 47 | "ADJACENCY_EVENT_TYPE_DELETE": 2, 48 | "ADJACENCY_EVENT_TYPE_UPDATE": 3, 49 | "ADJACENCY_EVENT_TYPE_DOWNLOAD": 4, 50 | "ADJACENCY_EVENT_TYPE_DOWNLOAD_DONE": 5, 51 | } 52 | 53 | func (x AdjacencyEventType) String() string { 54 | return proto.EnumName(AdjacencyEventType_name, int32(x)) 55 | } 56 | 57 | func (AdjacencyEventType) EnumDescriptor() ([]byte, []int) { 58 | return fileDescriptor_7b2f009b605f0ca8, []int{0} 59 | } 60 | 61 | // Adjacency address family 62 | type AdjacencyAddressFamily int32 63 | 64 | const ( 65 | AdjacencyAddressFamily_ADJACENCY_AF_IPV4 AdjacencyAddressFamily = 0 66 | AdjacencyAddressFamily_ADJACENCY_AF_IPV6 AdjacencyAddressFamily = 1 67 | ) 68 | 69 | var AdjacencyAddressFamily_name = map[int32]string{ 70 | 0: "ADJACENCY_AF_IPV4", 71 | 1: "ADJACENCY_AF_IPV6", 72 | } 73 | 74 | var AdjacencyAddressFamily_value = map[string]int32{ 75 | "ADJACENCY_AF_IPV4": 0, 76 | "ADJACENCY_AF_IPV6": 1, 77 | } 78 | 79 | func (x AdjacencyAddressFamily) String() string { 80 | return proto.EnumName(AdjacencyAddressFamily_name, int32(x)) 81 | } 82 | 83 | func (AdjacencyAddressFamily) EnumDescriptor() ([]byte, []int) { 84 | return fileDescriptor_7b2f009b605f0ca8, []int{1} 85 | } 86 | 87 | // Adjacency message 88 | type NxAdjacencyProto struct { 89 | // IP address 90 | IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` 91 | // MAC address 92 | MacAddress string `protobuf:"bytes,2,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` 93 | // Interface name 94 | InterfaceName string `protobuf:"bytes,3,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"` 95 | // Physical interface name 96 | PhysicalInterfaceName string `protobuf:"bytes,4,opt,name=physical_interface_name,json=physicalInterfaceName,proto3" json:"physical_interface_name,omitempty"` 97 | // vrf name 98 | VrfName string `protobuf:"bytes,5,opt,name=vrf_name,json=vrfName,proto3" json:"vrf_name,omitempty"` 99 | // Preference 100 | Preference uint32 `protobuf:"varint,6,opt,name=preference,proto3" json:"preference,omitempty"` 101 | // source for the adjacency 102 | Source string `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"` 103 | // Address family for the adjacency 104 | AddressFamily AdjacencyAddressFamily `protobuf:"varint,8,opt,name=address_family,json=addressFamily,proto3,enum=AdjacencyAddressFamily" json:"address_family,omitempty"` 105 | // Adjacency event type 106 | EventType AdjacencyEventType `protobuf:"varint,9,opt,name=event_type,json=eventType,proto3,enum=AdjacencyEventType" json:"event_type,omitempty"` 107 | Timestamp uint64 `protobuf:"varint,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 108 | // Mac associated with multiple ip. 109 | Addrlist []string `protobuf:"bytes,11,rep,name=addrlist,proto3" json:"addrlist,omitempty"` 110 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 111 | XXX_unrecognized []byte `json:"-"` 112 | XXX_sizecache int32 `json:"-"` 113 | } 114 | 115 | func (m *NxAdjacencyProto) Reset() { *m = NxAdjacencyProto{} } 116 | func (m *NxAdjacencyProto) String() string { return proto.CompactTextString(m) } 117 | func (*NxAdjacencyProto) ProtoMessage() {} 118 | func (*NxAdjacencyProto) Descriptor() ([]byte, []int) { 119 | return fileDescriptor_7b2f009b605f0ca8, []int{0} 120 | } 121 | 122 | func (m *NxAdjacencyProto) XXX_Unmarshal(b []byte) error { 123 | return xxx_messageInfo_NxAdjacencyProto.Unmarshal(m, b) 124 | } 125 | func (m *NxAdjacencyProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 126 | return xxx_messageInfo_NxAdjacencyProto.Marshal(b, m, deterministic) 127 | } 128 | func (m *NxAdjacencyProto) XXX_Merge(src proto.Message) { 129 | xxx_messageInfo_NxAdjacencyProto.Merge(m, src) 130 | } 131 | func (m *NxAdjacencyProto) XXX_Size() int { 132 | return xxx_messageInfo_NxAdjacencyProto.Size(m) 133 | } 134 | func (m *NxAdjacencyProto) XXX_DiscardUnknown() { 135 | xxx_messageInfo_NxAdjacencyProto.DiscardUnknown(m) 136 | } 137 | 138 | var xxx_messageInfo_NxAdjacencyProto proto.InternalMessageInfo 139 | 140 | func (m *NxAdjacencyProto) GetIpAddress() string { 141 | if m != nil { 142 | return m.IpAddress 143 | } 144 | return "" 145 | } 146 | 147 | func (m *NxAdjacencyProto) GetMacAddress() string { 148 | if m != nil { 149 | return m.MacAddress 150 | } 151 | return "" 152 | } 153 | 154 | func (m *NxAdjacencyProto) GetInterfaceName() string { 155 | if m != nil { 156 | return m.InterfaceName 157 | } 158 | return "" 159 | } 160 | 161 | func (m *NxAdjacencyProto) GetPhysicalInterfaceName() string { 162 | if m != nil { 163 | return m.PhysicalInterfaceName 164 | } 165 | return "" 166 | } 167 | 168 | func (m *NxAdjacencyProto) GetVrfName() string { 169 | if m != nil { 170 | return m.VrfName 171 | } 172 | return "" 173 | } 174 | 175 | func (m *NxAdjacencyProto) GetPreference() uint32 { 176 | if m != nil { 177 | return m.Preference 178 | } 179 | return 0 180 | } 181 | 182 | func (m *NxAdjacencyProto) GetSource() string { 183 | if m != nil { 184 | return m.Source 185 | } 186 | return "" 187 | } 188 | 189 | func (m *NxAdjacencyProto) GetAddressFamily() AdjacencyAddressFamily { 190 | if m != nil { 191 | return m.AddressFamily 192 | } 193 | return AdjacencyAddressFamily_ADJACENCY_AF_IPV4 194 | } 195 | 196 | func (m *NxAdjacencyProto) GetEventType() AdjacencyEventType { 197 | if m != nil { 198 | return m.EventType 199 | } 200 | return AdjacencyEventType_ADJACENCY_EVENT_TYPE_NO_EVENT 201 | } 202 | 203 | func (m *NxAdjacencyProto) GetTimestamp() uint64 { 204 | if m != nil { 205 | return m.Timestamp 206 | } 207 | return 0 208 | } 209 | 210 | func (m *NxAdjacencyProto) GetAddrlist() []string { 211 | if m != nil { 212 | return m.Addrlist 213 | } 214 | return nil 215 | } 216 | 217 | func init() { 218 | proto.RegisterEnum("AdjacencyEventType", AdjacencyEventType_name, AdjacencyEventType_value) 219 | proto.RegisterEnum("AdjacencyAddressFamily", AdjacencyAddressFamily_name, AdjacencyAddressFamily_value) 220 | proto.RegisterType((*NxAdjacencyProto)(nil), "NxAdjacencyProto") 221 | } 222 | 223 | func init() { proto.RegisterFile("adjacency.proto", fileDescriptor_7b2f009b605f0ca8) } 224 | 225 | var fileDescriptor_7b2f009b605f0ca8 = []byte{ 226 | // 431 bytes of a gzipped FileDescriptorProto 227 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x51, 0x6f, 0xd3, 0x30, 228 | 0x14, 0x85, 0xe7, 0xb5, 0xeb, 0x9a, 0x3b, 0xb5, 0x18, 0xa3, 0x6d, 0x06, 0x36, 0x16, 0x26, 0x81, 229 | 0xa2, 0x3d, 0xec, 0x61, 0xa0, 0x3d, 0x22, 0x85, 0xc5, 0x95, 0x86, 0xa6, 0xb4, 0x8a, 0xc2, 0xd0, 230 | 0x78, 0xb1, 0x4c, 0x7a, 0x23, 0x82, 0x9a, 0x34, 0x72, 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0x7f, 0x13, 0xf2, 0xa5, 0x63, 0x16, 0xff, 253 | 0xcd, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x13, 0xd2, 0xb4, 0xb2, 0x0b, 0x03, 0x00, 0x00, 254 | } 255 | -------------------------------------------------------------------------------- /mac_all.proto: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * mac_all.proto - Mac-all protobuf definitions 3 | * 4 | * August 2019 5 | * 6 | * Copyright (c) 2019 by Cisco Systems, Inc. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | * ---------------------------------------------------------------------------- 20 | */ 21 | 22 | syntax = "proto3"; 23 | 24 | package mac_all; 25 | 26 | option cc_enable_arenas = true; 27 | 28 | /* MAC event types 29 | */ 30 | enum MacAllEventType { 31 | MAC_ALL_EVENT_TYPE_NO_EVENT = 0; 32 | MAC_ALL_EVENT_TYPE_ADD = 1; 33 | MAC_ALL_EVENT_TYPE_DELETE = 2; 34 | MAC_ALL_EVENT_TYPE_UPDATE = 3; 35 | MAC_ALL_EVENT_TYPE_DOWNLOAD = 4; 36 | MAC_ALL_EVENT_TYPE_DOWNLOAD_DONE = 5; 37 | } 38 | 39 | /* MAC address types 40 | */ 41 | enum Type { 42 | MAC_ALL_ADDRESS_TYPE_NO_TYPE = 0; 43 | MAC_ALL_ADDRESS_TYPE_STATIC = 1; 44 | MAC_ALL_ADDRESS_TYPE_DYNAMIC = 2; 45 | } 46 | 47 | enum MacL2Type { 48 | MAC_ALL_MAC_L2_TYPE_UNKNOWN = 0; 49 | MAC_ALL_MAC_L2_TYPE_PRIMARY = 1; 50 | MAC_ALL_MAC_L2_TYPE_GATEWAY = 2; 51 | MAC_ALL_MAC_L2_TYPE_OVERLAY = 4; 52 | MAC_ALL_MAC_L2_TYPE_PRIMARY_VPC_PEER = 5; 53 | MAC_ALL_MAC_L2_TYPE_CONTROL_PLANE = 6; 54 | MAC_ALL_MAC_L2_TYPE_VSAN = 7; 55 | } 56 | 57 | enum MacInfo { 58 | MAC_ALL_INFO_STANDARD = 0; 59 | MAC_ALL_INFO_DROP = 1; 60 | MAC_ALL_INFO_SVI_DOWN_FLOOD = 2; 61 | MAC_ALL_INFO_SUP_INBAND_CFSOE = 3; 62 | MAC_ALL_INFO_VPC_PEER_LINK = 4; 63 | MAC_ALL_INFO_NVE = 5; 64 | MAC_ALL_INFO_SUP_ETH = 6; 65 | } 66 | 67 | /* MAC message 68 | */ 69 | message Mac { 70 | /* Age - seconds since last seen 71 | */ 72 | uint32 age = 1; 73 | 74 | /* Additional Information on the MAC 75 | */ 76 | MacInfo mac_info = 2; 77 | 78 | /* NTFY 79 | */ 80 | bool ntfy = 3; 81 | 82 | /* Port - 83 | Must match first field in the output of show intf brief. 84 | Example: Eth1/1 or Vlan100 85 | */ 86 | string port = 4; 87 | 88 | /* Routed or not 89 | */ 90 | bool routed = 5; 91 | 92 | /* Secure or not 93 | */ 94 | bool secure = 6; 95 | 96 | /* Static or Dynamic 97 | */ 98 | Type mac_type = 7; 99 | 100 | /* MAC L2 Type 101 | */ 102 | MacL2Type l2_type = 8; 103 | 104 | /* MAC address 105 | */ 106 | string mac_address = 9; 107 | 108 | /* VLAN number 109 | */ 110 | uint32 vlan = 10; 111 | 112 | /* Event types 113 | */ 114 | MacAllEventType event_type = 11; 115 | } 116 | 117 | message Macall { 118 | repeated MacallList list = 1; 119 | } 120 | 121 | message MacallList { 122 | uint32 vlan_id = 1; 123 | string mac = 2; 124 | Mac value = 3; 125 | } 126 | 127 | -------------------------------------------------------------------------------- /mac_all/mac_all.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: mac_all.proto 3 | 4 | package mac_all 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // MAC event types 24 | type MacAllEventType int32 25 | 26 | const ( 27 | MacAllEventType_MAC_ALL_EVENT_TYPE_NO_EVENT MacAllEventType = 0 28 | MacAllEventType_MAC_ALL_EVENT_TYPE_ADD MacAllEventType = 1 29 | MacAllEventType_MAC_ALL_EVENT_TYPE_DELETE MacAllEventType = 2 30 | MacAllEventType_MAC_ALL_EVENT_TYPE_UPDATE MacAllEventType = 3 31 | MacAllEventType_MAC_ALL_EVENT_TYPE_DOWNLOAD MacAllEventType = 4 32 | MacAllEventType_MAC_ALL_EVENT_TYPE_DOWNLOAD_DONE MacAllEventType = 5 33 | ) 34 | 35 | var MacAllEventType_name = map[int32]string{ 36 | 0: "MAC_ALL_EVENT_TYPE_NO_EVENT", 37 | 1: "MAC_ALL_EVENT_TYPE_ADD", 38 | 2: "MAC_ALL_EVENT_TYPE_DELETE", 39 | 3: "MAC_ALL_EVENT_TYPE_UPDATE", 40 | 4: "MAC_ALL_EVENT_TYPE_DOWNLOAD", 41 | 5: "MAC_ALL_EVENT_TYPE_DOWNLOAD_DONE", 42 | } 43 | 44 | var MacAllEventType_value = map[string]int32{ 45 | "MAC_ALL_EVENT_TYPE_NO_EVENT": 0, 46 | "MAC_ALL_EVENT_TYPE_ADD": 1, 47 | "MAC_ALL_EVENT_TYPE_DELETE": 2, 48 | "MAC_ALL_EVENT_TYPE_UPDATE": 3, 49 | "MAC_ALL_EVENT_TYPE_DOWNLOAD": 4, 50 | "MAC_ALL_EVENT_TYPE_DOWNLOAD_DONE": 5, 51 | } 52 | 53 | func (x MacAllEventType) String() string { 54 | return proto.EnumName(MacAllEventType_name, int32(x)) 55 | } 56 | 57 | func (MacAllEventType) EnumDescriptor() ([]byte, []int) { 58 | return fileDescriptor_965b3496b765a6cc, []int{0} 59 | } 60 | 61 | // MAC address types 62 | type Type int32 63 | 64 | const ( 65 | Type_MAC_ALL_ADDRESS_TYPE_NO_TYPE Type = 0 66 | Type_MAC_ALL_ADDRESS_TYPE_STATIC Type = 1 67 | Type_MAC_ALL_ADDRESS_TYPE_DYNAMIC Type = 2 68 | ) 69 | 70 | var Type_name = map[int32]string{ 71 | 0: "MAC_ALL_ADDRESS_TYPE_NO_TYPE", 72 | 1: "MAC_ALL_ADDRESS_TYPE_STATIC", 73 | 2: "MAC_ALL_ADDRESS_TYPE_DYNAMIC", 74 | } 75 | 76 | var Type_value = map[string]int32{ 77 | "MAC_ALL_ADDRESS_TYPE_NO_TYPE": 0, 78 | "MAC_ALL_ADDRESS_TYPE_STATIC": 1, 79 | "MAC_ALL_ADDRESS_TYPE_DYNAMIC": 2, 80 | } 81 | 82 | func (x Type) String() string { 83 | return proto.EnumName(Type_name, int32(x)) 84 | } 85 | 86 | func (Type) EnumDescriptor() ([]byte, []int) { 87 | return fileDescriptor_965b3496b765a6cc, []int{1} 88 | } 89 | 90 | type MacL2Type int32 91 | 92 | const ( 93 | MacL2Type_MAC_ALL_MAC_L2_TYPE_UNKNOWN MacL2Type = 0 94 | MacL2Type_MAC_ALL_MAC_L2_TYPE_PRIMARY MacL2Type = 1 95 | MacL2Type_MAC_ALL_MAC_L2_TYPE_GATEWAY MacL2Type = 2 96 | MacL2Type_MAC_ALL_MAC_L2_TYPE_OVERLAY MacL2Type = 4 97 | MacL2Type_MAC_ALL_MAC_L2_TYPE_PRIMARY_VPC_PEER MacL2Type = 5 98 | MacL2Type_MAC_ALL_MAC_L2_TYPE_CONTROL_PLANE MacL2Type = 6 99 | MacL2Type_MAC_ALL_MAC_L2_TYPE_VSAN MacL2Type = 7 100 | ) 101 | 102 | var MacL2Type_name = map[int32]string{ 103 | 0: "MAC_ALL_MAC_L2_TYPE_UNKNOWN", 104 | 1: "MAC_ALL_MAC_L2_TYPE_PRIMARY", 105 | 2: "MAC_ALL_MAC_L2_TYPE_GATEWAY", 106 | 4: "MAC_ALL_MAC_L2_TYPE_OVERLAY", 107 | 5: "MAC_ALL_MAC_L2_TYPE_PRIMARY_VPC_PEER", 108 | 6: "MAC_ALL_MAC_L2_TYPE_CONTROL_PLANE", 109 | 7: "MAC_ALL_MAC_L2_TYPE_VSAN", 110 | } 111 | 112 | var MacL2Type_value = map[string]int32{ 113 | "MAC_ALL_MAC_L2_TYPE_UNKNOWN": 0, 114 | "MAC_ALL_MAC_L2_TYPE_PRIMARY": 1, 115 | "MAC_ALL_MAC_L2_TYPE_GATEWAY": 2, 116 | "MAC_ALL_MAC_L2_TYPE_OVERLAY": 4, 117 | "MAC_ALL_MAC_L2_TYPE_PRIMARY_VPC_PEER": 5, 118 | "MAC_ALL_MAC_L2_TYPE_CONTROL_PLANE": 6, 119 | "MAC_ALL_MAC_L2_TYPE_VSAN": 7, 120 | } 121 | 122 | func (x MacL2Type) String() string { 123 | return proto.EnumName(MacL2Type_name, int32(x)) 124 | } 125 | 126 | func (MacL2Type) EnumDescriptor() ([]byte, []int) { 127 | return fileDescriptor_965b3496b765a6cc, []int{2} 128 | } 129 | 130 | type MacInfo int32 131 | 132 | const ( 133 | MacInfo_MAC_ALL_INFO_STANDARD MacInfo = 0 134 | MacInfo_MAC_ALL_INFO_DROP MacInfo = 1 135 | MacInfo_MAC_ALL_INFO_SVI_DOWN_FLOOD MacInfo = 2 136 | MacInfo_MAC_ALL_INFO_SUP_INBAND_CFSOE MacInfo = 3 137 | MacInfo_MAC_ALL_INFO_VPC_PEER_LINK MacInfo = 4 138 | MacInfo_MAC_ALL_INFO_NVE MacInfo = 5 139 | MacInfo_MAC_ALL_INFO_SUP_ETH MacInfo = 6 140 | ) 141 | 142 | var MacInfo_name = map[int32]string{ 143 | 0: "MAC_ALL_INFO_STANDARD", 144 | 1: "MAC_ALL_INFO_DROP", 145 | 2: "MAC_ALL_INFO_SVI_DOWN_FLOOD", 146 | 3: "MAC_ALL_INFO_SUP_INBAND_CFSOE", 147 | 4: "MAC_ALL_INFO_VPC_PEER_LINK", 148 | 5: "MAC_ALL_INFO_NVE", 149 | 6: "MAC_ALL_INFO_SUP_ETH", 150 | } 151 | 152 | var MacInfo_value = map[string]int32{ 153 | "MAC_ALL_INFO_STANDARD": 0, 154 | "MAC_ALL_INFO_DROP": 1, 155 | "MAC_ALL_INFO_SVI_DOWN_FLOOD": 2, 156 | "MAC_ALL_INFO_SUP_INBAND_CFSOE": 3, 157 | "MAC_ALL_INFO_VPC_PEER_LINK": 4, 158 | "MAC_ALL_INFO_NVE": 5, 159 | "MAC_ALL_INFO_SUP_ETH": 6, 160 | } 161 | 162 | func (x MacInfo) String() string { 163 | return proto.EnumName(MacInfo_name, int32(x)) 164 | } 165 | 166 | func (MacInfo) EnumDescriptor() ([]byte, []int) { 167 | return fileDescriptor_965b3496b765a6cc, []int{3} 168 | } 169 | 170 | // MAC message 171 | type Mac struct { 172 | // Age - seconds since last seen 173 | Age uint32 `protobuf:"varint,1,opt,name=age,proto3" json:"age,omitempty"` 174 | // Additional Information on the MAC 175 | MacInfo MacInfo `protobuf:"varint,2,opt,name=mac_info,json=macInfo,proto3,enum=mac_all.MacInfo" json:"mac_info,omitempty"` 176 | // NTFY 177 | Ntfy bool `protobuf:"varint,3,opt,name=ntfy,proto3" json:"ntfy,omitempty"` 178 | // Port - 179 | //Must match first field in the output of show intf brief. 180 | //Example: Eth1/1 or Vlan100 181 | Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` 182 | // Routed or not 183 | Routed bool `protobuf:"varint,5,opt,name=routed,proto3" json:"routed,omitempty"` 184 | // Secure or not 185 | Secure bool `protobuf:"varint,6,opt,name=secure,proto3" json:"secure,omitempty"` 186 | // Static or Dynamic 187 | MacType Type `protobuf:"varint,7,opt,name=mac_type,json=macType,proto3,enum=mac_all.Type" json:"mac_type,omitempty"` 188 | // MAC L2 Type 189 | L2Type MacL2Type `protobuf:"varint,8,opt,name=l2_type,json=l2Type,proto3,enum=mac_all.MacL2Type" json:"l2_type,omitempty"` 190 | // MAC address 191 | MacAddress string `protobuf:"bytes,9,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` 192 | // VLAN number 193 | Vlan uint32 `protobuf:"varint,10,opt,name=vlan,proto3" json:"vlan,omitempty"` 194 | // Event types 195 | EventType MacAllEventType `protobuf:"varint,11,opt,name=event_type,json=eventType,proto3,enum=mac_all.MacAllEventType" json:"event_type,omitempty"` 196 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 197 | XXX_unrecognized []byte `json:"-"` 198 | XXX_sizecache int32 `json:"-"` 199 | } 200 | 201 | func (m *Mac) Reset() { *m = Mac{} } 202 | func (m *Mac) String() string { return proto.CompactTextString(m) } 203 | func (*Mac) ProtoMessage() {} 204 | func (*Mac) Descriptor() ([]byte, []int) { 205 | return fileDescriptor_965b3496b765a6cc, []int{0} 206 | } 207 | 208 | func (m *Mac) XXX_Unmarshal(b []byte) error { 209 | return xxx_messageInfo_Mac.Unmarshal(m, b) 210 | } 211 | func (m *Mac) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 212 | return xxx_messageInfo_Mac.Marshal(b, m, deterministic) 213 | } 214 | func (m *Mac) XXX_Merge(src proto.Message) { 215 | xxx_messageInfo_Mac.Merge(m, src) 216 | } 217 | func (m *Mac) XXX_Size() int { 218 | return xxx_messageInfo_Mac.Size(m) 219 | } 220 | func (m *Mac) XXX_DiscardUnknown() { 221 | xxx_messageInfo_Mac.DiscardUnknown(m) 222 | } 223 | 224 | var xxx_messageInfo_Mac proto.InternalMessageInfo 225 | 226 | func (m *Mac) GetAge() uint32 { 227 | if m != nil { 228 | return m.Age 229 | } 230 | return 0 231 | } 232 | 233 | func (m *Mac) GetMacInfo() MacInfo { 234 | if m != nil { 235 | return m.MacInfo 236 | } 237 | return MacInfo_MAC_ALL_INFO_STANDARD 238 | } 239 | 240 | func (m *Mac) GetNtfy() bool { 241 | if m != nil { 242 | return m.Ntfy 243 | } 244 | return false 245 | } 246 | 247 | func (m *Mac) GetPort() string { 248 | if m != nil { 249 | return m.Port 250 | } 251 | return "" 252 | } 253 | 254 | func (m *Mac) GetRouted() bool { 255 | if m != nil { 256 | return m.Routed 257 | } 258 | return false 259 | } 260 | 261 | func (m *Mac) GetSecure() bool { 262 | if m != nil { 263 | return m.Secure 264 | } 265 | return false 266 | } 267 | 268 | func (m *Mac) GetMacType() Type { 269 | if m != nil { 270 | return m.MacType 271 | } 272 | return Type_MAC_ALL_ADDRESS_TYPE_NO_TYPE 273 | } 274 | 275 | func (m *Mac) GetL2Type() MacL2Type { 276 | if m != nil { 277 | return m.L2Type 278 | } 279 | return MacL2Type_MAC_ALL_MAC_L2_TYPE_UNKNOWN 280 | } 281 | 282 | func (m *Mac) GetMacAddress() string { 283 | if m != nil { 284 | return m.MacAddress 285 | } 286 | return "" 287 | } 288 | 289 | func (m *Mac) GetVlan() uint32 { 290 | if m != nil { 291 | return m.Vlan 292 | } 293 | return 0 294 | } 295 | 296 | func (m *Mac) GetEventType() MacAllEventType { 297 | if m != nil { 298 | return m.EventType 299 | } 300 | return MacAllEventType_MAC_ALL_EVENT_TYPE_NO_EVENT 301 | } 302 | 303 | type Macall struct { 304 | List []*MacallList `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` 305 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 306 | XXX_unrecognized []byte `json:"-"` 307 | XXX_sizecache int32 `json:"-"` 308 | } 309 | 310 | func (m *Macall) Reset() { *m = Macall{} } 311 | func (m *Macall) String() string { return proto.CompactTextString(m) } 312 | func (*Macall) ProtoMessage() {} 313 | func (*Macall) Descriptor() ([]byte, []int) { 314 | return fileDescriptor_965b3496b765a6cc, []int{1} 315 | } 316 | 317 | func (m *Macall) XXX_Unmarshal(b []byte) error { 318 | return xxx_messageInfo_Macall.Unmarshal(m, b) 319 | } 320 | func (m *Macall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 321 | return xxx_messageInfo_Macall.Marshal(b, m, deterministic) 322 | } 323 | func (m *Macall) XXX_Merge(src proto.Message) { 324 | xxx_messageInfo_Macall.Merge(m, src) 325 | } 326 | func (m *Macall) XXX_Size() int { 327 | return xxx_messageInfo_Macall.Size(m) 328 | } 329 | func (m *Macall) XXX_DiscardUnknown() { 330 | xxx_messageInfo_Macall.DiscardUnknown(m) 331 | } 332 | 333 | var xxx_messageInfo_Macall proto.InternalMessageInfo 334 | 335 | func (m *Macall) GetList() []*MacallList { 336 | if m != nil { 337 | return m.List 338 | } 339 | return nil 340 | } 341 | 342 | type MacallList struct { 343 | VlanId uint32 `protobuf:"varint,1,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"` 344 | Mac string `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"` 345 | Value *Mac `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` 346 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 347 | XXX_unrecognized []byte `json:"-"` 348 | XXX_sizecache int32 `json:"-"` 349 | } 350 | 351 | func (m *MacallList) Reset() { *m = MacallList{} } 352 | func (m *MacallList) String() string { return proto.CompactTextString(m) } 353 | func (*MacallList) ProtoMessage() {} 354 | func (*MacallList) Descriptor() ([]byte, []int) { 355 | return fileDescriptor_965b3496b765a6cc, []int{2} 356 | } 357 | 358 | func (m *MacallList) XXX_Unmarshal(b []byte) error { 359 | return xxx_messageInfo_MacallList.Unmarshal(m, b) 360 | } 361 | func (m *MacallList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 362 | return xxx_messageInfo_MacallList.Marshal(b, m, deterministic) 363 | } 364 | func (m *MacallList) XXX_Merge(src proto.Message) { 365 | xxx_messageInfo_MacallList.Merge(m, src) 366 | } 367 | func (m *MacallList) XXX_Size() int { 368 | return xxx_messageInfo_MacallList.Size(m) 369 | } 370 | func (m *MacallList) XXX_DiscardUnknown() { 371 | xxx_messageInfo_MacallList.DiscardUnknown(m) 372 | } 373 | 374 | var xxx_messageInfo_MacallList proto.InternalMessageInfo 375 | 376 | func (m *MacallList) GetVlanId() uint32 { 377 | if m != nil { 378 | return m.VlanId 379 | } 380 | return 0 381 | } 382 | 383 | func (m *MacallList) GetMac() string { 384 | if m != nil { 385 | return m.Mac 386 | } 387 | return "" 388 | } 389 | 390 | func (m *MacallList) GetValue() *Mac { 391 | if m != nil { 392 | return m.Value 393 | } 394 | return nil 395 | } 396 | 397 | func init() { 398 | proto.RegisterEnum("mac_all.MacAllEventType", MacAllEventType_name, MacAllEventType_value) 399 | proto.RegisterEnum("mac_all.Type", Type_name, Type_value) 400 | proto.RegisterEnum("mac_all.MacL2Type", MacL2Type_name, MacL2Type_value) 401 | proto.RegisterEnum("mac_all.MacInfo", MacInfo_name, MacInfo_value) 402 | proto.RegisterType((*Mac)(nil), "mac_all.Mac") 403 | proto.RegisterType((*Macall)(nil), "mac_all.Macall") 404 | proto.RegisterType((*MacallList)(nil), "mac_all.MacallList") 405 | } 406 | 407 | func init() { proto.RegisterFile("mac_all.proto", fileDescriptor_965b3496b765a6cc) } 408 | 409 | var fileDescriptor_965b3496b765a6cc = []byte{ 410 | // 668 bytes of a gzipped FileDescriptorProto 411 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xdf, 0x4e, 0xdb, 0x4a, 412 | 0x10, 0xc6, 0xd9, 0xfc, 0x71, 0xc8, 0xe4, 0x70, 0xce, 0x9e, 0x2d, 0x50, 0x43, 0xa1, 0x84, 0x88, 413 | 0xaa, 0x51, 0x90, 0x90, 0x9a, 0x5e, 0xf4, 0x7a, 0xc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, 0xf7, 0x28, 0x18, 0x95, 0x0c, 0x6f, 447 | 0x90, 0x1d, 0xf8, 0x3f, 0x53, 0x62, 0xd2, 0xf3, 0xb3, 0xe3, 0xa6, 0x4f, 0x74, 0x1d, 0xb3, 0x4f, 448 | 0x75, 0xe1, 0x7a, 0x1e, 0xc3, 0x39, 0x72, 0x0c, 0x87, 0x59, 0xe0, 0xca, 0x57, 0x8e, 0x38, 0xa7, 449 | 0x82, 0xa9, 0xd6, 0x45, 0xc7, 0xd3, 0x9f, 0xcd, 0x4b, 0xd8, 0xcf, 0x20, 0x8b, 0x09, 0x95, 0xeb, 450 | 0x88, 0x4b, 0x5c, 0x20, 0xdb, 0x80, 0x33, 0x75, 0xd1, 0xe5, 0xb8, 0x48, 0x6c, 0xd8, 0xfe, 0xab, 451 | 0x31, 0x0f, 0x3e, 0x60, 0xeb, 0x3c, 0xff, 0x03, 0xa1, 0x4f, 0x96, 0xf9, 0x3d, 0xbe, 0xfd, 0x15, 452 | 0x00, 0x00, 0xff, 0xff, 0xff, 0x63, 0x07, 0xab, 0x2f, 0x05, 0x00, 0x00, 453 | } 454 | -------------------------------------------------------------------------------- /mdt_dialout.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package mdt_dialout; 4 | 5 | service gRPCMdtDialout { 6 | rpc MdtDialout(stream MdtDialoutArgs) returns(stream MdtDialoutArgs) {}; 7 | } 8 | 9 | message MdtDialoutArgs { 10 | int64 ReqId = 1; 11 | bytes data = 2; 12 | string errors = 3; 13 | int32 totalSize = 4; // Set for messages that are chunked, it contains the original message size. 14 | } 15 | -------------------------------------------------------------------------------- /microburst.proto: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * microburst.proto - microburst stats protobuf definitions 3 | * 4 | * March 2023 5 | * 6 | * Copyright (c) 2023 by Cisco Systems, Inc. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | * ---------------------------------------------------------------------------- 20 | */ 21 | 22 | syntax = "proto3"; 23 | 24 | option go_package = "microburst/stats"; 25 | 26 | package stats; 27 | 28 | message Microburst { 29 | /* interface name */ 30 | string interfaceName = 1; 31 | 32 | /* interface port queue- */ 33 | string queue = 2; 34 | 35 | /* unicast (or) multicast */ 36 | string queueType = 3; 37 | 38 | /* not used */ 39 | int32 threshold = 4; 40 | 41 | /* set to peak occupancy during burst */ 42 | int32 peak = 5; 43 | 44 | /* not used */ 45 | int32 endDepth = 6; 46 | 47 | /* set to burst duration */ 48 | int64 duration = 7; 49 | 50 | /* set to encoding timestamp */ 51 | string ts = 8; 52 | 53 | /* set to up timestamp */ 54 | string startTs = 9; 55 | 56 | /* set to down timestamp */ 57 | string endTs = 10; 58 | 59 | /* set to burst peak timestamp */ 60 | string peakTs = 11; 61 | 62 | /* set to node-/microburst/interface-/queue-[queue-] */ 63 | string sourceName = 12; 64 | 65 | /* set to class-level */ 66 | string classLevel = 13; 67 | } 68 | 69 | message Counter { 70 | string name = 1; 71 | int64 currentVal = 2; 72 | int64 min = 3; 73 | int64 max = 4; 74 | double avg = 5; 75 | int32 interval = 6; 76 | int64 cumVal = 7; 77 | double currentValDouble = 8; 78 | int64 baseVal = 9; 79 | uint64 currentValU64 = 10; 80 | } 81 | 82 | message Stats { 83 | /* not set */ 84 | string source = 1; 85 | 86 | /* set to microburst 87 | */ 88 | string statName = 2; 89 | 90 | /* not used 91 | */ 92 | repeated Counter counters = 3; 93 | 94 | /* microburst stats 95 | */ 96 | repeated Microburst microburst = 4; 97 | } 98 | 99 | message StatsStream { 100 | /* nodeName from switch telemetry configuration 101 | * # "use-nodeid " 102 | */ 103 | string nodeName = 1; 104 | 105 | /* encode timestamp 106 | */ 107 | string timestamp = 2; 108 | 109 | /* microburst stats */ 110 | repeated Stats statObjects = 3; 111 | 112 | /* fabricName is extracted from switch telemetry configuration 113 | * # "use-nodeid " 114 | */ 115 | string fabricName = 4; 116 | 117 | /* set to CISCO_NX-OS 118 | */ 119 | string vendor = 5; 120 | 121 | /* set to 2 122 | */ 123 | int32 version = 6; 124 | } 125 | -------------------------------------------------------------------------------- /microburst/stats/microburst.pb.go: -------------------------------------------------------------------------------- 1 | // ---------------------------------------------------------------------------- 2 | // microburst.proto - microburst stats protobuf definitions 3 | // 4 | // March 2023 5 | // 6 | // Copyright (c) 2023 by Cisco Systems, Inc. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // ---------------------------------------------------------------------------- 20 | 21 | // Code generated by protoc-gen-go. DO NOT EDIT. 22 | // versions: 23 | // protoc-gen-go v1.31.0 24 | // protoc v3.15.8 25 | // source: microburst.proto 26 | 27 | package stats 28 | 29 | import ( 30 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 31 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" 32 | reflect "reflect" 33 | sync "sync" 34 | ) 35 | 36 | const ( 37 | // Verify that this generated code is sufficiently up-to-date. 38 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 39 | // Verify that runtime/protoimpl is sufficiently up-to-date. 40 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 41 | ) 42 | 43 | type Microburst struct { 44 | state protoimpl.MessageState 45 | sizeCache protoimpl.SizeCache 46 | unknownFields protoimpl.UnknownFields 47 | 48 | // interface name 49 | InterfaceName string `protobuf:"bytes,1,opt,name=interfaceName,proto3" json:"interfaceName,omitempty"` 50 | // interface port queue- 51 | Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` 52 | // unicast (or) multicast 53 | QueueType string `protobuf:"bytes,3,opt,name=queueType,proto3" json:"queueType,omitempty"` 54 | // not used 55 | Threshold int32 `protobuf:"varint,4,opt,name=threshold,proto3" json:"threshold,omitempty"` 56 | // set to peak occupancy during burst 57 | Peak int32 `protobuf:"varint,5,opt,name=peak,proto3" json:"peak,omitempty"` 58 | // not used 59 | EndDepth int32 `protobuf:"varint,6,opt,name=endDepth,proto3" json:"endDepth,omitempty"` 60 | // set to burst duration 61 | Duration int64 `protobuf:"varint,7,opt,name=duration,proto3" json:"duration,omitempty"` 62 | // set to encoding timestamp 63 | Ts string `protobuf:"bytes,8,opt,name=ts,proto3" json:"ts,omitempty"` 64 | // set to up timestamp 65 | StartTs string `protobuf:"bytes,9,opt,name=startTs,proto3" json:"startTs,omitempty"` 66 | // set to down timestamp 67 | EndTs string `protobuf:"bytes,10,opt,name=endTs,proto3" json:"endTs,omitempty"` 68 | // set to burst peak timestamp 69 | PeakTs string `protobuf:"bytes,11,opt,name=peakTs,proto3" json:"peakTs,omitempty"` 70 | // set to node-/microburst/interface-/queue-[queue-] 71 | SourceName string `protobuf:"bytes,12,opt,name=sourceName,proto3" json:"sourceName,omitempty"` 72 | // set to class-level 73 | ClassLevel string `protobuf:"bytes,13,opt,name=classLevel,proto3" json:"classLevel,omitempty"` 74 | } 75 | 76 | func (x *Microburst) Reset() { 77 | *x = Microburst{} 78 | if protoimpl.UnsafeEnabled { 79 | mi := &file_microburst_proto_msgTypes[0] 80 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 81 | ms.StoreMessageInfo(mi) 82 | } 83 | } 84 | 85 | func (x *Microburst) String() string { 86 | return protoimpl.X.MessageStringOf(x) 87 | } 88 | 89 | func (*Microburst) ProtoMessage() {} 90 | 91 | func (x *Microburst) ProtoReflect() protoreflect.Message { 92 | mi := &file_microburst_proto_msgTypes[0] 93 | if protoimpl.UnsafeEnabled && x != nil { 94 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 95 | if ms.LoadMessageInfo() == nil { 96 | ms.StoreMessageInfo(mi) 97 | } 98 | return ms 99 | } 100 | return mi.MessageOf(x) 101 | } 102 | 103 | // Deprecated: Use Microburst.ProtoReflect.Descriptor instead. 104 | func (*Microburst) Descriptor() ([]byte, []int) { 105 | return file_microburst_proto_rawDescGZIP(), []int{0} 106 | } 107 | 108 | func (x *Microburst) GetInterfaceName() string { 109 | if x != nil { 110 | return x.InterfaceName 111 | } 112 | return "" 113 | } 114 | 115 | func (x *Microburst) GetQueue() string { 116 | if x != nil { 117 | return x.Queue 118 | } 119 | return "" 120 | } 121 | 122 | func (x *Microburst) GetQueueType() string { 123 | if x != nil { 124 | return x.QueueType 125 | } 126 | return "" 127 | } 128 | 129 | func (x *Microburst) GetThreshold() int32 { 130 | if x != nil { 131 | return x.Threshold 132 | } 133 | return 0 134 | } 135 | 136 | func (x *Microburst) GetPeak() int32 { 137 | if x != nil { 138 | return x.Peak 139 | } 140 | return 0 141 | } 142 | 143 | func (x *Microburst) GetEndDepth() int32 { 144 | if x != nil { 145 | return x.EndDepth 146 | } 147 | return 0 148 | } 149 | 150 | func (x *Microburst) GetDuration() int64 { 151 | if x != nil { 152 | return x.Duration 153 | } 154 | return 0 155 | } 156 | 157 | func (x *Microburst) GetTs() string { 158 | if x != nil { 159 | return x.Ts 160 | } 161 | return "" 162 | } 163 | 164 | func (x *Microburst) GetStartTs() string { 165 | if x != nil { 166 | return x.StartTs 167 | } 168 | return "" 169 | } 170 | 171 | func (x *Microburst) GetEndTs() string { 172 | if x != nil { 173 | return x.EndTs 174 | } 175 | return "" 176 | } 177 | 178 | func (x *Microburst) GetPeakTs() string { 179 | if x != nil { 180 | return x.PeakTs 181 | } 182 | return "" 183 | } 184 | 185 | func (x *Microburst) GetSourceName() string { 186 | if x != nil { 187 | return x.SourceName 188 | } 189 | return "" 190 | } 191 | 192 | func (x *Microburst) GetClassLevel() string { 193 | if x != nil { 194 | return x.ClassLevel 195 | } 196 | return "" 197 | } 198 | 199 | type Counter struct { 200 | state protoimpl.MessageState 201 | sizeCache protoimpl.SizeCache 202 | unknownFields protoimpl.UnknownFields 203 | 204 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 205 | CurrentVal int64 `protobuf:"varint,2,opt,name=currentVal,proto3" json:"currentVal,omitempty"` 206 | Min int64 `protobuf:"varint,3,opt,name=min,proto3" json:"min,omitempty"` 207 | Max int64 `protobuf:"varint,4,opt,name=max,proto3" json:"max,omitempty"` 208 | Avg float64 `protobuf:"fixed64,5,opt,name=avg,proto3" json:"avg,omitempty"` 209 | Interval int32 `protobuf:"varint,6,opt,name=interval,proto3" json:"interval,omitempty"` 210 | CumVal int64 `protobuf:"varint,7,opt,name=cumVal,proto3" json:"cumVal,omitempty"` 211 | CurrentValDouble float64 `protobuf:"fixed64,8,opt,name=currentValDouble,proto3" json:"currentValDouble,omitempty"` 212 | BaseVal int64 `protobuf:"varint,9,opt,name=baseVal,proto3" json:"baseVal,omitempty"` 213 | CurrentValU64 uint64 `protobuf:"varint,10,opt,name=currentValU64,proto3" json:"currentValU64,omitempty"` 214 | } 215 | 216 | func (x *Counter) Reset() { 217 | *x = Counter{} 218 | if protoimpl.UnsafeEnabled { 219 | mi := &file_microburst_proto_msgTypes[1] 220 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 221 | ms.StoreMessageInfo(mi) 222 | } 223 | } 224 | 225 | func (x *Counter) String() string { 226 | return protoimpl.X.MessageStringOf(x) 227 | } 228 | 229 | func (*Counter) ProtoMessage() {} 230 | 231 | func (x *Counter) ProtoReflect() protoreflect.Message { 232 | mi := &file_microburst_proto_msgTypes[1] 233 | if protoimpl.UnsafeEnabled && x != nil { 234 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 235 | if ms.LoadMessageInfo() == nil { 236 | ms.StoreMessageInfo(mi) 237 | } 238 | return ms 239 | } 240 | return mi.MessageOf(x) 241 | } 242 | 243 | // Deprecated: Use Counter.ProtoReflect.Descriptor instead. 244 | func (*Counter) Descriptor() ([]byte, []int) { 245 | return file_microburst_proto_rawDescGZIP(), []int{1} 246 | } 247 | 248 | func (x *Counter) GetName() string { 249 | if x != nil { 250 | return x.Name 251 | } 252 | return "" 253 | } 254 | 255 | func (x *Counter) GetCurrentVal() int64 { 256 | if x != nil { 257 | return x.CurrentVal 258 | } 259 | return 0 260 | } 261 | 262 | func (x *Counter) GetMin() int64 { 263 | if x != nil { 264 | return x.Min 265 | } 266 | return 0 267 | } 268 | 269 | func (x *Counter) GetMax() int64 { 270 | if x != nil { 271 | return x.Max 272 | } 273 | return 0 274 | } 275 | 276 | func (x *Counter) GetAvg() float64 { 277 | if x != nil { 278 | return x.Avg 279 | } 280 | return 0 281 | } 282 | 283 | func (x *Counter) GetInterval() int32 { 284 | if x != nil { 285 | return x.Interval 286 | } 287 | return 0 288 | } 289 | 290 | func (x *Counter) GetCumVal() int64 { 291 | if x != nil { 292 | return x.CumVal 293 | } 294 | return 0 295 | } 296 | 297 | func (x *Counter) GetCurrentValDouble() float64 { 298 | if x != nil { 299 | return x.CurrentValDouble 300 | } 301 | return 0 302 | } 303 | 304 | func (x *Counter) GetBaseVal() int64 { 305 | if x != nil { 306 | return x.BaseVal 307 | } 308 | return 0 309 | } 310 | 311 | func (x *Counter) GetCurrentValU64() uint64 { 312 | if x != nil { 313 | return x.CurrentValU64 314 | } 315 | return 0 316 | } 317 | 318 | type Stats struct { 319 | state protoimpl.MessageState 320 | sizeCache protoimpl.SizeCache 321 | unknownFields protoimpl.UnknownFields 322 | 323 | // not set 324 | Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` 325 | // set to microburst 326 | StatName string `protobuf:"bytes,2,opt,name=statName,proto3" json:"statName,omitempty"` 327 | // not used 328 | Counters []*Counter `protobuf:"bytes,3,rep,name=counters,proto3" json:"counters,omitempty"` 329 | // microburst stats 330 | Microburst []*Microburst `protobuf:"bytes,4,rep,name=microburst,proto3" json:"microburst,omitempty"` 331 | } 332 | 333 | func (x *Stats) Reset() { 334 | *x = Stats{} 335 | if protoimpl.UnsafeEnabled { 336 | mi := &file_microburst_proto_msgTypes[2] 337 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 338 | ms.StoreMessageInfo(mi) 339 | } 340 | } 341 | 342 | func (x *Stats) String() string { 343 | return protoimpl.X.MessageStringOf(x) 344 | } 345 | 346 | func (*Stats) ProtoMessage() {} 347 | 348 | func (x *Stats) ProtoReflect() protoreflect.Message { 349 | mi := &file_microburst_proto_msgTypes[2] 350 | if protoimpl.UnsafeEnabled && x != nil { 351 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 352 | if ms.LoadMessageInfo() == nil { 353 | ms.StoreMessageInfo(mi) 354 | } 355 | return ms 356 | } 357 | return mi.MessageOf(x) 358 | } 359 | 360 | // Deprecated: Use Stats.ProtoReflect.Descriptor instead. 361 | func (*Stats) Descriptor() ([]byte, []int) { 362 | return file_microburst_proto_rawDescGZIP(), []int{2} 363 | } 364 | 365 | func (x *Stats) GetSource() string { 366 | if x != nil { 367 | return x.Source 368 | } 369 | return "" 370 | } 371 | 372 | func (x *Stats) GetStatName() string { 373 | if x != nil { 374 | return x.StatName 375 | } 376 | return "" 377 | } 378 | 379 | func (x *Stats) GetCounters() []*Counter { 380 | if x != nil { 381 | return x.Counters 382 | } 383 | return nil 384 | } 385 | 386 | func (x *Stats) GetMicroburst() []*Microburst { 387 | if x != nil { 388 | return x.Microburst 389 | } 390 | return nil 391 | } 392 | 393 | type StatsStream struct { 394 | state protoimpl.MessageState 395 | sizeCache protoimpl.SizeCache 396 | unknownFields protoimpl.UnknownFields 397 | 398 | // nodeName from switch telemetry configuration 399 | // # "use-nodeid " 400 | NodeName string `protobuf:"bytes,1,opt,name=nodeName,proto3" json:"nodeName,omitempty"` 401 | // encode timestamp 402 | Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 403 | // microburst stats 404 | StatObjects []*Stats `protobuf:"bytes,3,rep,name=statObjects,proto3" json:"statObjects,omitempty"` 405 | // fabricName is extracted from switch telemetry configuration 406 | // # "use-nodeid " 407 | FabricName string `protobuf:"bytes,4,opt,name=fabricName,proto3" json:"fabricName,omitempty"` 408 | // set to CISCO_NX-OS 409 | Vendor string `protobuf:"bytes,5,opt,name=vendor,proto3" json:"vendor,omitempty"` 410 | // set to 2 411 | Version int32 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` 412 | } 413 | 414 | func (x *StatsStream) Reset() { 415 | *x = StatsStream{} 416 | if protoimpl.UnsafeEnabled { 417 | mi := &file_microburst_proto_msgTypes[3] 418 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 419 | ms.StoreMessageInfo(mi) 420 | } 421 | } 422 | 423 | func (x *StatsStream) String() string { 424 | return protoimpl.X.MessageStringOf(x) 425 | } 426 | 427 | func (*StatsStream) ProtoMessage() {} 428 | 429 | func (x *StatsStream) ProtoReflect() protoreflect.Message { 430 | mi := &file_microburst_proto_msgTypes[3] 431 | if protoimpl.UnsafeEnabled && x != nil { 432 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 433 | if ms.LoadMessageInfo() == nil { 434 | ms.StoreMessageInfo(mi) 435 | } 436 | return ms 437 | } 438 | return mi.MessageOf(x) 439 | } 440 | 441 | // Deprecated: Use StatsStream.ProtoReflect.Descriptor instead. 442 | func (*StatsStream) Descriptor() ([]byte, []int) { 443 | return file_microburst_proto_rawDescGZIP(), []int{3} 444 | } 445 | 446 | func (x *StatsStream) GetNodeName() string { 447 | if x != nil { 448 | return x.NodeName 449 | } 450 | return "" 451 | } 452 | 453 | func (x *StatsStream) GetTimestamp() string { 454 | if x != nil { 455 | return x.Timestamp 456 | } 457 | return "" 458 | } 459 | 460 | func (x *StatsStream) GetStatObjects() []*Stats { 461 | if x != nil { 462 | return x.StatObjects 463 | } 464 | return nil 465 | } 466 | 467 | func (x *StatsStream) GetFabricName() string { 468 | if x != nil { 469 | return x.FabricName 470 | } 471 | return "" 472 | } 473 | 474 | func (x *StatsStream) GetVendor() string { 475 | if x != nil { 476 | return x.Vendor 477 | } 478 | return "" 479 | } 480 | 481 | func (x *StatsStream) GetVersion() int32 { 482 | if x != nil { 483 | return x.Version 484 | } 485 | return 0 486 | } 487 | 488 | var File_microburst_proto protoreflect.FileDescriptor 489 | 490 | var file_microburst_proto_rawDesc = []byte{ 491 | 0x0a, 0x10, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x62, 0x75, 0x72, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 492 | 0x74, 0x6f, 0x12, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0xe8, 0x02, 0x0a, 0x0a, 0x4d, 0x69, 493 | 0x63, 0x72, 0x6f, 0x62, 0x75, 0x72, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 494 | 0x72, 0x66, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 495 | 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 496 | 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 497 | 0x75, 0x65, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x71, 0x75, 0x65, 0x75, 0x65, 0x54, 0x79, 0x70, 498 | 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x71, 0x75, 0x65, 0x75, 0x65, 0x54, 0x79, 499 | 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 500 | 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 501 | 0x12, 0x12, 0x0a, 0x04, 0x70, 0x65, 0x61, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 502 | 0x70, 0x65, 0x61, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x44, 0x65, 0x70, 0x74, 0x68, 503 | 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x44, 0x65, 0x70, 0x74, 0x68, 504 | 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 505 | 0x28, 0x03, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 506 | 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 507 | 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 508 | 0x74, 0x61, 0x72, 0x74, 0x54, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x64, 0x54, 0x73, 0x18, 509 | 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6e, 0x64, 0x54, 0x73, 0x12, 0x16, 0x0a, 0x06, 510 | 0x70, 0x65, 0x61, 0x6b, 0x54, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 511 | 0x61, 0x6b, 0x54, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 512 | 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 513 | 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x65, 0x76, 514 | 0x65, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4c, 515 | 0x65, 0x76, 0x65, 0x6c, 0x22, 0x93, 0x02, 0x0a, 0x07, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 516 | 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 517 | 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, 518 | 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 519 | 0x74, 0x56, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 520 | 0x03, 0x52, 0x03, 0x6d, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x78, 0x18, 0x04, 0x20, 521 | 0x01, 0x28, 0x03, 0x52, 0x03, 0x6d, 0x61, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x76, 0x67, 0x18, 522 | 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03, 0x61, 0x76, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 523 | 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 524 | 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x6d, 0x56, 0x61, 0x6c, 525 | 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x12, 0x2a, 526 | 0x0a, 0x10, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x44, 0x6f, 0x75, 0x62, 527 | 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x01, 0x52, 0x10, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 528 | 0x74, 0x56, 0x61, 0x6c, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 529 | 0x73, 0x65, 0x56, 0x61, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x62, 0x61, 0x73, 530 | 0x65, 0x56, 0x61, 0x6c, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, 531 | 0x61, 0x6c, 0x55, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x63, 0x75, 0x72, 532 | 0x72, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x55, 0x36, 0x34, 0x22, 0x9a, 0x01, 0x0a, 0x05, 0x53, 533 | 0x74, 0x61, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 534 | 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 535 | 0x73, 0x74, 0x61, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 536 | 0x73, 0x74, 0x61, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x75, 0x6e, 537 | 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x73, 0x74, 0x61, 538 | 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x08, 0x63, 0x6f, 0x75, 0x6e, 539 | 0x74, 0x65, 0x72, 0x73, 0x12, 0x31, 0x0a, 0x0a, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x62, 0x75, 0x72, 540 | 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 541 | 0x2e, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x62, 0x75, 0x72, 0x73, 0x74, 0x52, 0x0a, 0x6d, 0x69, 0x63, 542 | 0x72, 0x6f, 0x62, 0x75, 0x72, 0x73, 0x74, 0x22, 0xc9, 0x01, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 543 | 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 544 | 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 545 | 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 546 | 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 547 | 0x70, 0x12, 0x2e, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 548 | 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x53, 549 | 0x74, 0x61, 0x74, 0x73, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 550 | 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x61, 0x62, 0x72, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18, 551 | 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x61, 0x62, 0x72, 0x69, 0x63, 0x4e, 0x61, 0x6d, 552 | 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 553 | 0x09, 0x52, 0x06, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 554 | 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 555 | 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x5a, 0x10, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x62, 0x75, 0x72, 0x73, 556 | 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 557 | } 558 | 559 | var ( 560 | file_microburst_proto_rawDescOnce sync.Once 561 | file_microburst_proto_rawDescData = file_microburst_proto_rawDesc 562 | ) 563 | 564 | func file_microburst_proto_rawDescGZIP() []byte { 565 | file_microburst_proto_rawDescOnce.Do(func() { 566 | file_microburst_proto_rawDescData = protoimpl.X.CompressGZIP(file_microburst_proto_rawDescData) 567 | }) 568 | return file_microburst_proto_rawDescData 569 | } 570 | 571 | var file_microburst_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 572 | var file_microburst_proto_goTypes = []interface{}{ 573 | (*Microburst)(nil), // 0: stats.Microburst 574 | (*Counter)(nil), // 1: stats.Counter 575 | (*Stats)(nil), // 2: stats.Stats 576 | (*StatsStream)(nil), // 3: stats.StatsStream 577 | } 578 | var file_microburst_proto_depIdxs = []int32{ 579 | 1, // 0: stats.Stats.counters:type_name -> stats.Counter 580 | 0, // 1: stats.Stats.microburst:type_name -> stats.Microburst 581 | 2, // 2: stats.StatsStream.statObjects:type_name -> stats.Stats 582 | 3, // [3:3] is the sub-list for method output_type 583 | 3, // [3:3] is the sub-list for method input_type 584 | 3, // [3:3] is the sub-list for extension type_name 585 | 3, // [3:3] is the sub-list for extension extendee 586 | 0, // [0:3] is the sub-list for field type_name 587 | } 588 | 589 | func init() { file_microburst_proto_init() } 590 | func file_microburst_proto_init() { 591 | if File_microburst_proto != nil { 592 | return 593 | } 594 | if !protoimpl.UnsafeEnabled { 595 | file_microburst_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 596 | switch v := v.(*Microburst); i { 597 | case 0: 598 | return &v.state 599 | case 1: 600 | return &v.sizeCache 601 | case 2: 602 | return &v.unknownFields 603 | default: 604 | return nil 605 | } 606 | } 607 | file_microburst_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 608 | switch v := v.(*Counter); i { 609 | case 0: 610 | return &v.state 611 | case 1: 612 | return &v.sizeCache 613 | case 2: 614 | return &v.unknownFields 615 | default: 616 | return nil 617 | } 618 | } 619 | file_microburst_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 620 | switch v := v.(*Stats); i { 621 | case 0: 622 | return &v.state 623 | case 1: 624 | return &v.sizeCache 625 | case 2: 626 | return &v.unknownFields 627 | default: 628 | return nil 629 | } 630 | } 631 | file_microburst_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 632 | switch v := v.(*StatsStream); i { 633 | case 0: 634 | return &v.state 635 | case 1: 636 | return &v.sizeCache 637 | case 2: 638 | return &v.unknownFields 639 | default: 640 | return nil 641 | } 642 | } 643 | } 644 | type x struct{} 645 | out := protoimpl.TypeBuilder{ 646 | File: protoimpl.DescBuilder{ 647 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 648 | RawDescriptor: file_microburst_proto_rawDesc, 649 | NumEnums: 0, 650 | NumMessages: 4, 651 | NumExtensions: 0, 652 | NumServices: 0, 653 | }, 654 | GoTypes: file_microburst_proto_goTypes, 655 | DependencyIndexes: file_microburst_proto_depIdxs, 656 | MessageInfos: file_microburst_proto_msgTypes, 657 | }.Build() 658 | File_microburst_proto = out.File 659 | file_microburst_proto_rawDesc = nil 660 | file_microburst_proto_goTypes = nil 661 | file_microburst_proto_depIdxs = nil 662 | } 663 | -------------------------------------------------------------------------------- /postman_collections/README.md: -------------------------------------------------------------------------------- 1 | POSTMAN chrome app reference: 2 | ============================= 3 | - https://www.getpostman.com/docs/introduction 4 | 5 | Telemetry.postman_collection file: 6 | ================================== 7 | - This is a json file for the telemetry feature. 8 | 9 | - It has REST payloads for following. 10 | 11 | : Authentication. 12 | 13 | : Enable/Disable feature telemetry. 14 | 15 | : POST/GET/DELETE for certificate, sensor group, sensor path, destination group, destination profile, subscription. 16 | 17 | Using postman collections: 18 | ========================== 19 | - Its a easyway to execute the REST operations on the management box. 20 | 21 | - User needs to import collection file, setup the global variable {{ip}} to the management ip of the box and start executing operations immediately. 22 | 23 | - Please refer https://github.com/postmanlabs/postman-app-support/wiki/Collections and import the collections. 24 | 25 | - Refer https://www.getpostman.com/docs/environments to see how to set global variable. -------------------------------------------------------------------------------- /postman_collections/Telemetry.postman_collection: -------------------------------------------------------------------------------- 1 | { 2 | "variables": [], 3 | "info": { 4 | "name": "Telemetry copy", 5 | "_postman_id": "1e35540b-d913-5ba0-17b4-80cf3bfaaf23", 6 | "description": "", 7 | "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" 8 | }, 9 | "item": [ 10 | { 11 | "name": "AUTH", 12 | "description": "", 13 | "item": [ 14 | { 15 | "name": "Authentication", 16 | "request": { 17 | "url": "http://{{ip}}/api/aaaLogin.json", 18 | "method": "POST", 19 | "header": [], 20 | "body": { 21 | "mode": "raw", 22 | "raw": "\n{\n \"aaaUser\" : {\n \"attributes\" : {\n \"name\" : \"admin\",\n \"pwd\" : \"cisco\"\n } \n }\n}" 23 | }, 24 | "description": "AAA authentication for the REST calls." 25 | }, 26 | "response": [] 27 | } 28 | ] 29 | }, 30 | { 31 | "name": "DELETE", 32 | "description": "", 33 | "item": [ 34 | { 35 | "name": "Certificate", 36 | "request": { 37 | "url": "http://{{ip}}/api/mo/sys/tm/certificate.json", 38 | "method": "DELETE", 39 | "header": [], 40 | "body": { 41 | "mode": "raw", 42 | "raw": "" 43 | }, 44 | "description": "" 45 | }, 46 | "response": [] 47 | }, 48 | { 49 | "name": "Sensor-Group", 50 | "request": { 51 | "url": "http://{{ip}}/api/mo/sys/tm/sensor-10.json", 52 | "method": "DELETE", 53 | "header": [], 54 | "body": { 55 | "mode": "raw", 56 | "raw": "" 57 | }, 58 | "description": "" 59 | }, 60 | "response": [] 61 | }, 62 | { 63 | "name": "Sensor-Path", 64 | "request": { 65 | "url": "http://{{ip}}/api/mo/sys/tm/sensor-10/path-[sys/fm/bgp].json", 66 | "method": "DELETE", 67 | "header": [], 68 | "body": { 69 | "mode": "raw", 70 | "raw": "" 71 | }, 72 | "description": "" 73 | }, 74 | "response": [] 75 | }, 76 | { 77 | "name": "Destination-Group", 78 | "request": { 79 | "url": "http://{{ip}}/api/mo/sys/tm/dest-20.json", 80 | "method": "DELETE", 81 | "header": [], 82 | "body": { 83 | "mode": "raw", 84 | "raw": "" 85 | }, 86 | "description": "" 87 | }, 88 | "response": [] 89 | }, 90 | { 91 | "name": "Destination-Profile", 92 | "request": { 93 | "url": "http://{{ip}}/api/mo/sys/tm/dest-20/addr-[10.30.217.80]-port-50001.json", 94 | "method": "DELETE", 95 | "header": [], 96 | "body": { 97 | "mode": "raw", 98 | "raw": "" 99 | }, 100 | "description": "" 101 | }, 102 | "response": [] 103 | }, 104 | { 105 | "name": "Subscription", 106 | "request": { 107 | "url": "http://{{ip}}/api/mo/sys/tm/subs-30.json", 108 | "method": "DELETE", 109 | "header": [], 110 | "body": { 111 | "mode": "raw", 112 | "raw": "" 113 | }, 114 | "description": "" 115 | }, 116 | "response": [] 117 | }, 118 | { 119 | "name": "Unsubscribe-Sensor-Group", 120 | "request": { 121 | "url": "http://{{ip}}/api/mo/sys/tm/subs-30/rssensorGroupRel-[sys/tm/sensor-10].json", 122 | "method": "DELETE", 123 | "header": [], 124 | "body": { 125 | "mode": "raw", 126 | "raw": "" 127 | }, 128 | "description": "" 129 | }, 130 | "response": [] 131 | }, 132 | { 133 | "name": "Unsubscribe-Destination-Group", 134 | "request": { 135 | "url": "http://{{ip}}/api/mo/sys/tm/subs-30/rsdestGroupRel-[sys/tm/dest-20].json", 136 | "method": "DELETE", 137 | "header": [], 138 | "body": { 139 | "mode": "raw", 140 | "raw": "" 141 | }, 142 | "description": "" 143 | }, 144 | "response": [] 145 | }, 146 | { 147 | "name": "Telemetry-All-Configs", 148 | "request": { 149 | "url": "http://{{ip}}/api/mo/sys/tm.json", 150 | "method": "DELETE", 151 | "header": [], 152 | "body": { 153 | "mode": "raw", 154 | "raw": "" 155 | }, 156 | "description": "" 157 | }, 158 | "response": [] 159 | } 160 | ] 161 | }, 162 | { 163 | "name": "GET", 164 | "description": "", 165 | "item": [ 166 | { 167 | "name": "Certificate", 168 | "request": { 169 | "url": "http://{{ip}}/api/mo/sys/tm/certificate.json?rsp-subtree=full", 170 | "method": "GET", 171 | "header": [], 172 | "body": { 173 | "mode": "raw", 174 | "raw": "\n{\n \"aaaUser\" : {\n \"attributes\" : {\n \"name\" : \"admin\",\n \"pwd\" : \"cisco\"\n } \n }\n}" 175 | }, 176 | "description": "" 177 | }, 178 | "response": [] 179 | }, 180 | { 181 | "name": "Sensor Group", 182 | "request": { 183 | "url": "http://{{ip}}/api/mo/sys/tm/sensor-10.json?rsp-subtree=full", 184 | "method": "GET", 185 | "header": [], 186 | "body": { 187 | "mode": "raw", 188 | "raw": "\n{\n \"aaaUser\" : {\n \"attributes\" : {\n \"name\" : \"admin\",\n \"pwd\" : \"cisco\"\n } \n }\n}" 189 | }, 190 | "description": "Get sensor group. " 191 | }, 192 | "response": [] 193 | }, 194 | { 195 | "name": "Destination Group", 196 | "request": { 197 | "url": "http://{{ip}}/api/mo/sys/tm/dest-20.json?rsp-subtree=full", 198 | "method": "GET", 199 | "header": [], 200 | "body": { 201 | "mode": "raw", 202 | "raw": "\n{\n \"aaaUser\" : {\n \"attributes\" : {\n \"name\" : \"admin\",\n \"pwd\" : \"cisco\"\n } \n }\n}" 203 | }, 204 | "description": "" 205 | }, 206 | "response": [] 207 | }, 208 | { 209 | "name": "Subscription", 210 | "request": { 211 | "url": "http://{{ip}}/api/mo/sys/tm/subs-30.json?rsp-subtree=full", 212 | "method": "GET", 213 | "header": [], 214 | "body": { 215 | "mode": "raw", 216 | "raw": "\n{\n \"aaaUser\" : {\n \"attributes\" : {\n \"name\" : \"admin\",\n \"pwd\" : \"cisco\"\n } \n }\n}" 217 | }, 218 | "description": "" 219 | }, 220 | "response": [] 221 | }, 222 | { 223 | "name": "Telemetry All Configs", 224 | "request": { 225 | "url": "http://{{ip}}/api/mo/sys/tm.json?rsp-subtree=full", 226 | "method": "GET", 227 | "header": [], 228 | "body": { 229 | "mode": "raw", 230 | "raw": "\n{\n \"aaaUser\" : {\n \"attributes\" : {\n \"name\" : \"admin\",\n \"pwd\" : \"cisco\"\n } \n }\n}" 231 | }, 232 | "description": "" 233 | }, 234 | "response": [] 235 | } 236 | ] 237 | }, 238 | { 239 | "name": "POST-Certificate", 240 | "description": "", 241 | "item": [ 242 | { 243 | "name": "CREATE-Security-Certificate", 244 | "request": { 245 | "url": "http://{{ip}}/api/mo/sys.json", 246 | "method": "POST", 247 | "header": [], 248 | "body": { 249 | "mode": "raw", 250 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetryCertificate\": {\n \"attributes\": {\n \"filename\": \"/bootflash/root.pem\",\n \"hostname\" : \"foo.test.google.fr\"\n }\n }\n }\n ]\n }\n}" 251 | }, 252 | "description": "" 253 | }, 254 | "response": [] 255 | } 256 | ] 257 | }, 258 | { 259 | "name": "POST-Destination-Group", 260 | "description": "", 261 | "item": [ 262 | { 263 | "name": "CREATE-Destination-Group", 264 | "request": { 265 | "url": "http://{{ip}}/api/mo/sys.json", 266 | "method": "POST", 267 | "header": [], 268 | "body": { 269 | "mode": "raw", 270 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetryDestGroup\": {\n \"attributes\": {\n \"id\": \"20\"\n }\n }\n }\n ]\n }\n}" 271 | }, 272 | "description": "" 273 | }, 274 | "response": [] 275 | }, 276 | { 277 | "name": "CREATE-Single-Destination-Profile", 278 | "request": { 279 | "url": "http://{{ip}}/api/mo/sys.json", 280 | "method": "POST", 281 | "header": [], 282 | "body": { 283 | "mode": "raw", 284 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetryDestGroup\": {\n \"attributes\": {\n \"id\": \"20\"\n }\n \"children\": [{\n \"telemetryDest\": {\n \"attributes\": {\n \"addr\": \"1.2.3.4\",\n \"port\": \"50051\",\n \"enc\": \"GPB\",\n \"proto\": \"gRPC\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n}" 285 | }, 286 | "description": "" 287 | }, 288 | "response": [] 289 | }, 290 | { 291 | "name": "CREATE-Multiple-Destination-Profile", 292 | "request": { 293 | "url": "http://{{ip}}/api/mo/sys.json", 294 | "method": "POST", 295 | "header": [], 296 | "body": { 297 | "mode": "raw", 298 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetryDestGroup\": {\n \"attributes\": {\n \"id\": \"20\"\n }\n \"children\": [{\n \"telemetryDest\": {\n \"attributes\": {\n \"addr\": \"1.2.3.4\",\n \"port\": \"50051\",\n \"enc\": \"GPB\",\n \"proto\": \"gRPC\"\n }\n }\n },\n {\n \"telemetryDest\": {\n \"attributes\": {\n \"addr\": \"1.2.3.4\",\n \"port\": \"50052\",\n \"enc\": \"GPB\",\n \"proto\": \"gRPC\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n}" 299 | }, 300 | "description": "" 301 | }, 302 | "response": [] 303 | } 304 | ] 305 | }, 306 | { 307 | "name": "POST-Feature-Telemetry", 308 | "description": "", 309 | "item": [ 310 | { 311 | "name": "Enable Feature Telemetry", 312 | "request": { 313 | "url": "http://{{ip}}/api/mo/sys.json", 314 | "method": "POST", 315 | "header": [], 316 | "body": { 317 | "mode": "raw", 318 | "raw": "{\n \"fmEntity\" : {\n \"children\" : [{ \n \"fmTelemetry\" : {\n \"attributes\" : {\n \"adminSt\" : \"enabled\"\n }\n }\n }\n ]\n }\n}\n" 319 | }, 320 | "description": "" 321 | }, 322 | "response": [] 323 | }, 324 | { 325 | "name": "Disable Feature Telemetry", 326 | "request": { 327 | "url": "http://{{ip}}/api/mo/sys.json", 328 | "method": "POST", 329 | "header": [], 330 | "body": { 331 | "mode": "raw", 332 | "raw": "{\n \"fmEntity\" : {\n \"children\" : [{ \n \"fmTelemetry\" : {\n \"attributes\" : {\n \"adminSt\" : \"disabled\"\n }\n }\n }\n ]\n }\n}\n" 333 | }, 334 | "description": "" 335 | }, 336 | "response": [] 337 | } 338 | ] 339 | }, 340 | { 341 | "name": "POST-Sensor-Group", 342 | "description": "", 343 | "item": [ 344 | { 345 | "name": "CREATE-Sensor-group", 346 | "request": { 347 | "url": "http://{{ip}}/api/mo/sys.json", 348 | "method": "POST", 349 | "header": [], 350 | "body": { 351 | "mode": "raw", 352 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetrySensorGroup\": {\n \"attributes\": {\n \"id\": \"10\",\n \"dataSrc\" : \"DME\"\n }\n }\n }\n ]\n }\n}" 353 | }, 354 | "description": "" 355 | }, 356 | "response": [] 357 | }, 358 | { 359 | "name": "CREATE-Single-Sensor-Path-Without-Filter", 360 | "request": { 361 | "url": "http://{{ip}}/api/mo/sys.json", 362 | "method": "POST", 363 | "header": [], 364 | "body": { 365 | "mode": "raw", 366 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetrySensorGroup\": {\n \"attributes\": {\n \"id\": \"10\"\n }\n \"children\": [{\n \"telemetrySensorPath\": {\n \"attributes\": {\n \"path\": \"sys/fm/bgp\",\n \"depth\": \"0\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n}" 367 | }, 368 | "description": "" 369 | }, 370 | "response": [] 371 | }, 372 | { 373 | "name": "CREATE-Single-Sensor-Path-With-Filter", 374 | "request": { 375 | "url": "http://{{ip}}/api/mo/sys.json", 376 | "method": "POST", 377 | "header": [], 378 | "body": { 379 | "mode": "raw", 380 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetrySensorGroup\": {\n \"attributes\": {\n \"id\": \"10\"\n }\n \"children\": [{\n \"telemetrySensorPath\": {\n \"attributes\": {\n \"filterCondition\": \"eq(fmBgp.operSt,\\\"disabled\\\")\",\n \"path\": \"sys/fm/bgp\",\n \"depth\": \"0\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n}" 381 | }, 382 | "description": "" 383 | }, 384 | "response": [] 385 | }, 386 | { 387 | "name": "CREATE-Multiple-Sensor-Paths", 388 | "request": { 389 | "url": "http://{{ip}}/api/mo/sys/tm.json", 390 | "method": "POST", 391 | "header": [], 392 | "body": { 393 | "mode": "raw", 394 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetrySensorGroup\": {\n \"attributes\": {\n \"id\": \"10\"\n }\n \"children\": [{\n \"telemetrySensorPath\": {\n \"attributes\": {\n \"path\": \"sys/fm/bgp\",\n \"depth\": \"0\"\n }\n }\n },\n {\n \"telemetrySensorPath\": {\n \"attributes\": {\n \"path\": \"sys/fm/dhcp\",\n \"depth\": \"0\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n}" 395 | }, 396 | "description": "" 397 | }, 398 | "response": [] 399 | } 400 | ] 401 | }, 402 | { 403 | "name": "POST-Subscription", 404 | "description": "", 405 | "item": [ 406 | { 407 | "name": "CREATE-Subscription", 408 | "request": { 409 | "url": "http://{{ip}}/api/mo/sys.json", 410 | "method": "POST", 411 | "header": [], 412 | "body": { 413 | "mode": "raw", 414 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetrySubscription\": {\n \"attributes\": {\n \"id\": \"30\"\n }\n }\n }\n ]\n }\n}" 415 | }, 416 | "description": "" 417 | }, 418 | "response": [] 419 | }, 420 | { 421 | "name": "SUBSCRIBE-Sensor-Group-For-Events", 422 | "request": { 423 | "url": "http://{{ip}}/api/mo/sys.json", 424 | "method": "POST", 425 | "header": [], 426 | "body": { 427 | "mode": "raw", 428 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetrySubscription\": {\n \"attributes\": {\n \"id\": \"30\"\n }\n \"children\": [{\n \"telemetryRsSensorGroupRel\": {\n \"attributes\": {\n \"sampleIntvl\": \"0\",\n \"tDn\": \"sys/tm/sensor-10\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n}" 429 | }, 430 | "description": "" 431 | }, 432 | "response": [] 433 | }, 434 | { 435 | "name": "SUBSCRIBE-Sensor-Group-For-Cadence", 436 | "request": { 437 | "url": "http://{{ip}}/api/mo/sys.json", 438 | "method": "POST", 439 | "header": [], 440 | "body": { 441 | "mode": "raw", 442 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetrySubscription\": {\n \"attributes\": {\n \"id\": \"30\"\n }\n \"children\": [{\n \"telemetryRsSensorGroupRel\": {\n \"attributes\": {\n \"sampleIntvl\": \"5000\",\n \"tDn\": \"sys/tm/sensor-10\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n}" 443 | }, 444 | "description": "" 445 | }, 446 | "response": [] 447 | }, 448 | { 449 | "name": "SUBSCRIBE-Destination-Group", 450 | "request": { 451 | "url": "http://{{ip}}/api/mo/sys.json", 452 | "method": "POST", 453 | "header": [], 454 | "body": { 455 | "mode": "raw", 456 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetrySubscription\": {\n \"attributes\": {\n \"id\": \"30\"\n }\n \"children\": [{\n \"telemetryRsDestGroupRel\": {\n \"attributes\": {\n \"tDn\": \"sys/tm/dest-20\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n}" 457 | }, 458 | "description": "" 459 | }, 460 | "response": [] 461 | } 462 | ] 463 | }, 464 | { 465 | "name": "POST-Telemetry-All-Configs", 466 | "description": "", 467 | "item": [ 468 | { 469 | "name": "CREATE-Telemetry-All-Configs", 470 | "request": { 471 | "url": "http://{{ip}}/api/mo/sys.json", 472 | "method": "POST", 473 | "header": [], 474 | "body": { 475 | "mode": "raw", 476 | "raw": "{\n \"telemetryEntity\": {\n \"children\": [{\n \"telemetryCertificate\": {\n \"attributes\": {\n \"filename\": \"/bootflash/root.pem\",\n \"hostname\" : \"foo.test.google.fr\"\n }\n }\n },\n {\n \"telemetrySensorGroup\": {\n \"attributes\": {\n \"id\": \"10\",\n \"dataSrc\" : \"DME\"\n }\n \"children\": [{\n \"telemetrySensorPath\": {\n \"attributes\": {\n \"filterCondition\": \"eq(fmBgp.operSt,\\\"disabled\\\")\",\n \"path\": \"sys/fm/bgp\",\n \"depth\": \"0\"\n }\n }\n }\n ]\n }\n },\n {\n \"telemetryDestGroup\": {\n \"attributes\": {\n \"id\": \"20\"\n }\n \"children\": [{\n \"telemetryDest\": {\n \"attributes\": {\n \"addr\": \"1.2.3.4\",\n \"port\": \"50055\",\n \"enc\": \"GPB\",\n \"proto\": \"gRPC\"\n }\n }\n }\n ]\n }\n },\n {\n \"telemetrySubscription\": {\n \"attributes\": {\n \"id\": \"30\"\n }\n \"children\": [{\n \"telemetryRsSensorGroupRel\": {\n \"attributes\": {\n \"sampleIntvl\": \"0\",\n \"tDn\": \"sys/tm/sensor-10\"\n }\n }\n },\n {\n \"telemetryRsDestGroupRel\": {\n \"attributes\": {\n \"tDn\": \"sys/tm/dest-20\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n}" 477 | }, 478 | "description": "" 479 | }, 480 | "response": [] 481 | } 482 | ] 483 | } 484 | ] 485 | } -------------------------------------------------------------------------------- /rib/urib.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: urib.proto 3 | 4 | package urib 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // URIB event type 24 | type UribEventType int32 25 | 26 | const ( 27 | UribEventType_URIB_EVENT_TYPE_NO_EVENT UribEventType = 0 28 | UribEventType_URIB_EVENT_TYPE_ADD UribEventType = 1 29 | UribEventType_URIB_EVENT_TYPE_DELETE UribEventType = 2 30 | UribEventType_URIB_EVENT_TYPE_UPDATE UribEventType = 3 31 | UribEventType_URIB_EVENT_TYPE_DOWNLOAD UribEventType = 4 32 | UribEventType_URIB_EVENT_TYPE_DOWNLOAD_DONE UribEventType = 5 33 | ) 34 | 35 | var UribEventType_name = map[int32]string{ 36 | 0: "URIB_EVENT_TYPE_NO_EVENT", 37 | 1: "URIB_EVENT_TYPE_ADD", 38 | 2: "URIB_EVENT_TYPE_DELETE", 39 | 3: "URIB_EVENT_TYPE_UPDATE", 40 | 4: "URIB_EVENT_TYPE_DOWNLOAD", 41 | 5: "URIB_EVENT_TYPE_DOWNLOAD_DONE", 42 | } 43 | 44 | var UribEventType_value = map[string]int32{ 45 | "URIB_EVENT_TYPE_NO_EVENT": 0, 46 | "URIB_EVENT_TYPE_ADD": 1, 47 | "URIB_EVENT_TYPE_DELETE": 2, 48 | "URIB_EVENT_TYPE_UPDATE": 3, 49 | "URIB_EVENT_TYPE_DOWNLOAD": 4, 50 | "URIB_EVENT_TYPE_DOWNLOAD_DONE": 5, 51 | } 52 | 53 | func (x UribEventType) String() string { 54 | return proto.EnumName(UribEventType_name, int32(x)) 55 | } 56 | 57 | func (UribEventType) EnumDescriptor() ([]byte, []int) { 58 | return fileDescriptor_e264597aff88d0fb, []int{0} 59 | } 60 | 61 | // URIB encap type 62 | type EncapType int32 63 | 64 | const ( 65 | EncapType_ENCAP_TYPE_NONE EncapType = 0 66 | EncapType_ENCAP_TYPE_VXLAN EncapType = 1 67 | ) 68 | 69 | var EncapType_name = map[int32]string{ 70 | 0: "ENCAP_TYPE_NONE", 71 | 1: "ENCAP_TYPE_VXLAN", 72 | } 73 | 74 | var EncapType_value = map[string]int32{ 75 | "ENCAP_TYPE_NONE": 0, 76 | "ENCAP_TYPE_VXLAN": 1, 77 | } 78 | 79 | func (x EncapType) String() string { 80 | return proto.EnumName(EncapType_name, int32(x)) 81 | } 82 | 83 | func (EncapType) EnumDescriptor() ([]byte, []int) { 84 | return fileDescriptor_e264597aff88d0fb, []int{1} 85 | } 86 | 87 | // URIB next hop type 88 | type NhType int32 89 | 90 | const ( 91 | NhType_NH_TYPE_NONE NhType = 0 92 | NhType_NH_TYPE_ATTACHED NhType = 1 93 | NhType_NH_TYPE_LOCAL NhType = 2 94 | NhType_NH_TYPE_DIRECT NhType = 3 95 | NhType_NH_TYPE_RECURSIVE NhType = 4 96 | NhType_NH_TYPE_BACKUP NhType = 5 97 | NhType_NH_TYPE_DROP NhType = 6 98 | NhType_NH_TYPE_DISCARD NhType = 7 99 | ) 100 | 101 | var NhType_name = map[int32]string{ 102 | 0: "NH_TYPE_NONE", 103 | 1: "NH_TYPE_ATTACHED", 104 | 2: "NH_TYPE_LOCAL", 105 | 3: "NH_TYPE_DIRECT", 106 | 4: "NH_TYPE_RECURSIVE", 107 | 5: "NH_TYPE_BACKUP", 108 | 6: "NH_TYPE_DROP", 109 | 7: "NH_TYPE_DISCARD", 110 | } 111 | 112 | var NhType_value = map[string]int32{ 113 | "NH_TYPE_NONE": 0, 114 | "NH_TYPE_ATTACHED": 1, 115 | "NH_TYPE_LOCAL": 2, 116 | "NH_TYPE_DIRECT": 3, 117 | "NH_TYPE_RECURSIVE": 4, 118 | "NH_TYPE_BACKUP": 5, 119 | "NH_TYPE_DROP": 6, 120 | "NH_TYPE_DISCARD": 7, 121 | } 122 | 123 | func (x NhType) String() string { 124 | return proto.EnumName(NhType_name, int32(x)) 125 | } 126 | 127 | func (NhType) EnumDescriptor() ([]byte, []int) { 128 | return fileDescriptor_e264597aff88d0fb, []int{2} 129 | } 130 | 131 | // Next hop 132 | type NxL3NextHopProto struct { 133 | // Address of Next hop 134 | Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 135 | // Outgoing interface for the next hop 136 | OutInterface string `protobuf:"bytes,2,opt,name=out_interface,json=outInterface,proto3" json:"out_interface,omitempty"` 137 | // Vrf name for the next hop 138 | VrfName string `protobuf:"bytes,3,opt,name=vrf_name,json=vrfName,proto3" json:"vrf_name,omitempty"` 139 | // Owner of the next hop 140 | Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` 141 | // Preference for the next hop 142 | Preference uint32 `protobuf:"varint,5,opt,name=preference,proto3" json:"preference,omitempty"` 143 | // Metric for the next hop 144 | Metric uint32 `protobuf:"varint,6,opt,name=metric,proto3" json:"metric,omitempty"` 145 | // Tag for the next hop 146 | Tag uint32 `protobuf:"varint,7,opt,name=tag,proto3" json:"tag,omitempty"` 147 | // segment id for the next hop 148 | SegmentId uint32 `protobuf:"varint,8,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` 149 | // tunnel id for the next hop 150 | TunnelId uint32 `protobuf:"varint,9,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` 151 | // encap type for the next hop 152 | EncapType EncapType `protobuf:"varint,10,opt,name=encap_type,json=encapType,proto3,enum=EncapType" json:"encap_type,omitempty"` 153 | // Bitwise-OR of Flags for NhType. 154 | NhTypeFlags uint32 `protobuf:"varint,11,opt,name=nh_type_flags,json=nhTypeFlags,proto3" json:"nh_type_flags,omitempty"` 155 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 156 | XXX_unrecognized []byte `json:"-"` 157 | XXX_sizecache int32 `json:"-"` 158 | } 159 | 160 | func (m *NxL3NextHopProto) Reset() { *m = NxL3NextHopProto{} } 161 | func (m *NxL3NextHopProto) String() string { return proto.CompactTextString(m) } 162 | func (*NxL3NextHopProto) ProtoMessage() {} 163 | func (*NxL3NextHopProto) Descriptor() ([]byte, []int) { 164 | return fileDescriptor_e264597aff88d0fb, []int{0} 165 | } 166 | 167 | func (m *NxL3NextHopProto) XXX_Unmarshal(b []byte) error { 168 | return xxx_messageInfo_NxL3NextHopProto.Unmarshal(m, b) 169 | } 170 | func (m *NxL3NextHopProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 171 | return xxx_messageInfo_NxL3NextHopProto.Marshal(b, m, deterministic) 172 | } 173 | func (m *NxL3NextHopProto) XXX_Merge(src proto.Message) { 174 | xxx_messageInfo_NxL3NextHopProto.Merge(m, src) 175 | } 176 | func (m *NxL3NextHopProto) XXX_Size() int { 177 | return xxx_messageInfo_NxL3NextHopProto.Size(m) 178 | } 179 | func (m *NxL3NextHopProto) XXX_DiscardUnknown() { 180 | xxx_messageInfo_NxL3NextHopProto.DiscardUnknown(m) 181 | } 182 | 183 | var xxx_messageInfo_NxL3NextHopProto proto.InternalMessageInfo 184 | 185 | func (m *NxL3NextHopProto) GetAddress() string { 186 | if m != nil { 187 | return m.Address 188 | } 189 | return "" 190 | } 191 | 192 | func (m *NxL3NextHopProto) GetOutInterface() string { 193 | if m != nil { 194 | return m.OutInterface 195 | } 196 | return "" 197 | } 198 | 199 | func (m *NxL3NextHopProto) GetVrfName() string { 200 | if m != nil { 201 | return m.VrfName 202 | } 203 | return "" 204 | } 205 | 206 | func (m *NxL3NextHopProto) GetOwner() string { 207 | if m != nil { 208 | return m.Owner 209 | } 210 | return "" 211 | } 212 | 213 | func (m *NxL3NextHopProto) GetPreference() uint32 { 214 | if m != nil { 215 | return m.Preference 216 | } 217 | return 0 218 | } 219 | 220 | func (m *NxL3NextHopProto) GetMetric() uint32 { 221 | if m != nil { 222 | return m.Metric 223 | } 224 | return 0 225 | } 226 | 227 | func (m *NxL3NextHopProto) GetTag() uint32 { 228 | if m != nil { 229 | return m.Tag 230 | } 231 | return 0 232 | } 233 | 234 | func (m *NxL3NextHopProto) GetSegmentId() uint32 { 235 | if m != nil { 236 | return m.SegmentId 237 | } 238 | return 0 239 | } 240 | 241 | func (m *NxL3NextHopProto) GetTunnelId() uint32 { 242 | if m != nil { 243 | return m.TunnelId 244 | } 245 | return 0 246 | } 247 | 248 | func (m *NxL3NextHopProto) GetEncapType() EncapType { 249 | if m != nil { 250 | return m.EncapType 251 | } 252 | return EncapType_ENCAP_TYPE_NONE 253 | } 254 | 255 | func (m *NxL3NextHopProto) GetNhTypeFlags() uint32 { 256 | if m != nil { 257 | return m.NhTypeFlags 258 | } 259 | return 0 260 | } 261 | 262 | // L3 route 263 | type NxL3RouteProto struct { 264 | // Vrf name of the l3 route 265 | VrfName string `protobuf:"bytes,1,opt,name=vrf_name,json=vrfName,proto3" json:"vrf_name,omitempty"` 266 | // l3 route prefix address 267 | Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` 268 | // Mask length for the l3 route 269 | MaskLen uint32 `protobuf:"varint,3,opt,name=mask_len,json=maskLen,proto3" json:"mask_len,omitempty"` 270 | // Number of next hops for the l3 route 271 | L3NextHopCount uint32 `protobuf:"varint,4,opt,name=l3_next_hop_count,json=l3NextHopCount,proto3" json:"l3_next_hop_count,omitempty"` 272 | // Event type 273 | EventType UribEventType `protobuf:"varint,5,opt,name=event_type,json=eventType,proto3,enum=UribEventType" json:"event_type,omitempty"` 274 | // Next hops 275 | NextHop []*NxL3NextHopProto `protobuf:"bytes,6,rep,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` 276 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 277 | XXX_unrecognized []byte `json:"-"` 278 | XXX_sizecache int32 `json:"-"` 279 | } 280 | 281 | func (m *NxL3RouteProto) Reset() { *m = NxL3RouteProto{} } 282 | func (m *NxL3RouteProto) String() string { return proto.CompactTextString(m) } 283 | func (*NxL3RouteProto) ProtoMessage() {} 284 | func (*NxL3RouteProto) Descriptor() ([]byte, []int) { 285 | return fileDescriptor_e264597aff88d0fb, []int{1} 286 | } 287 | 288 | func (m *NxL3RouteProto) XXX_Unmarshal(b []byte) error { 289 | return xxx_messageInfo_NxL3RouteProto.Unmarshal(m, b) 290 | } 291 | func (m *NxL3RouteProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 292 | return xxx_messageInfo_NxL3RouteProto.Marshal(b, m, deterministic) 293 | } 294 | func (m *NxL3RouteProto) XXX_Merge(src proto.Message) { 295 | xxx_messageInfo_NxL3RouteProto.Merge(m, src) 296 | } 297 | func (m *NxL3RouteProto) XXX_Size() int { 298 | return xxx_messageInfo_NxL3RouteProto.Size(m) 299 | } 300 | func (m *NxL3RouteProto) XXX_DiscardUnknown() { 301 | xxx_messageInfo_NxL3RouteProto.DiscardUnknown(m) 302 | } 303 | 304 | var xxx_messageInfo_NxL3RouteProto proto.InternalMessageInfo 305 | 306 | func (m *NxL3RouteProto) GetVrfName() string { 307 | if m != nil { 308 | return m.VrfName 309 | } 310 | return "" 311 | } 312 | 313 | func (m *NxL3RouteProto) GetAddress() string { 314 | if m != nil { 315 | return m.Address 316 | } 317 | return "" 318 | } 319 | 320 | func (m *NxL3RouteProto) GetMaskLen() uint32 { 321 | if m != nil { 322 | return m.MaskLen 323 | } 324 | return 0 325 | } 326 | 327 | func (m *NxL3RouteProto) GetL3NextHopCount() uint32 { 328 | if m != nil { 329 | return m.L3NextHopCount 330 | } 331 | return 0 332 | } 333 | 334 | func (m *NxL3RouteProto) GetEventType() UribEventType { 335 | if m != nil { 336 | return m.EventType 337 | } 338 | return UribEventType_URIB_EVENT_TYPE_NO_EVENT 339 | } 340 | 341 | func (m *NxL3RouteProto) GetNextHop() []*NxL3NextHopProto { 342 | if m != nil { 343 | return m.NextHop 344 | } 345 | return nil 346 | } 347 | 348 | func init() { 349 | proto.RegisterEnum("UribEventType", UribEventType_name, UribEventType_value) 350 | proto.RegisterEnum("EncapType", EncapType_name, EncapType_value) 351 | proto.RegisterEnum("NhType", NhType_name, NhType_value) 352 | proto.RegisterType((*NxL3NextHopProto)(nil), "NxL3NextHopProto") 353 | proto.RegisterType((*NxL3RouteProto)(nil), "NxL3RouteProto") 354 | } 355 | 356 | func init() { proto.RegisterFile("urib.proto", fileDescriptor_e264597aff88d0fb) } 357 | 358 | var fileDescriptor_e264597aff88d0fb = []byte{ 359 | // 602 bytes of a gzipped FileDescriptorProto 360 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xdd, 0x4e, 0xdb, 0x3e, 361 | 0x18, 0xc6, 0x49, 0xbf, 0xf3, 0x42, 0xfa, 0x77, 0x0d, 0x7f, 0x66, 0xb6, 0x31, 0x75, 0xec, 0xa4, 362 | 0xa0, 0xad, 0x07, 0x20, 0xed, 0x3c, 0x24, 0x9e, 0xa8, 0x16, 0xa5, 0x95, 0x49, 0xd9, 0xc7, 0x89, 363 | 0x15, 0x5a, 0x17, 0xaa, 0xb5, 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0xfe, 0x2f, 0xcb, 0xba, 0xac, 0x99, 0xc7, 0x7f, 0xf2, 0x3b, 0x00, 0x00, 397 | 0xff, 0xff, 0x44, 0x95, 0xf1, 0xa6, 0x0a, 0x04, 0x00, 0x00, 398 | } 399 | -------------------------------------------------------------------------------- /telemetry_bis.proto: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * telemetry_bis.proto - Telemetry protobuf definitions 3 | * 4 | * August 2016 5 | * 6 | * Copyright (c) 2016 by Cisco Systems, Inc. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | * ---------------------------------------------------------------------------- 20 | */ 21 | 22 | syntax = "proto3"; 23 | 24 | option go_package = "telemetry_bis"; 25 | 26 | /* 27 | * Common message used as a header to both compact and self-describing 28 | * telemetry messages. 29 | */ 30 | 31 | message Telemetry { 32 | oneof node_id { 33 | string node_id_str = 1; 34 | // bytes node_id_uuid = 2; // not produced 35 | } 36 | oneof subscription { 37 | string subscription_id_str = 3; 38 | // uint32 subscription_id = 4; // not produced 39 | } 40 | // string sensor_path = 5; // not produced 41 | string encoding_path = 6; 42 | // string model_version = 7; // not produced 43 | uint64 collection_id = 8; 44 | uint64 collection_start_time = 9; 45 | uint64 msg_timestamp = 10; 46 | repeated TelemetryField data_gpbkv = 11; 47 | TelemetryGPBTable data_gpb = 12; 48 | uint64 collection_end_time = 13; 49 | // uint64 heartbeat_sequence_number = 14; // not produced 50 | } 51 | 52 | /* 53 | * Messages used to export content in GPB K/V form. 54 | * 55 | * The set of messages in this .proto are sufficient to decode all 56 | * telemetry messages. 57 | */ 58 | 59 | message TelemetryField { 60 | uint64 timestamp = 1; 61 | string name = 2; 62 | oneof value_by_type { 63 | bytes bytes_value = 4; 64 | string string_value = 5; 65 | bool bool_value = 6; 66 | uint32 uint32_value = 7; 67 | uint64 uint64_value = 8; 68 | sint32 sint32_value = 9; 69 | sint64 sint64_value = 10; 70 | double double_value = 11; 71 | float float_value = 12; 72 | } 73 | repeated TelemetryField fields = 15; 74 | } 75 | 76 | /* 77 | * Messages used to export content in compact GPB form 78 | * 79 | * Per encoding-path .proto files are required to decode keys/content 80 | * pairs below. 81 | */ 82 | 83 | message TelemetryGPBTable { 84 | repeated TelemetryRowGPB row = 1; 85 | } 86 | 87 | message TelemetryRowGPB { 88 | uint64 timestamp = 1; 89 | bytes keys = 10; 90 | bytes content = 11; 91 | } 92 | -------------------------------------------------------------------------------- /urib.proto: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * urib.proto - URIB protobuf definitions 3 | * 4 | * September 2018 5 | * 6 | * Copyright (c) 2018 by Cisco Systems, Inc. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | * ---------------------------------------------------------------------------- 20 | */ 21 | 22 | syntax = "proto3"; 23 | 24 | option go_package = "urib"; 25 | 26 | option cc_enable_arenas = true; 27 | 28 | /* URIB event type 29 | */ 30 | enum UribEventType { 31 | URIB_EVENT_TYPE_NO_EVENT = 0; 32 | URIB_EVENT_TYPE_ADD = 1; 33 | URIB_EVENT_TYPE_DELETE = 2; 34 | URIB_EVENT_TYPE_UPDATE = 3; 35 | URIB_EVENT_TYPE_DOWNLOAD = 4; 36 | URIB_EVENT_TYPE_DOWNLOAD_DONE = 5; 37 | } 38 | 39 | /* URIB encap type 40 | */ 41 | enum EncapType { 42 | ENCAP_TYPE_NONE = 0; 43 | ENCAP_TYPE_VXLAN = 1; 44 | } 45 | 46 | /* URIB next hop type 47 | */ 48 | enum NhType { 49 | NH_TYPE_NONE = 0x0; 50 | NH_TYPE_ATTACHED = 1; 51 | NH_TYPE_LOCAL = 2; 52 | NH_TYPE_DIRECT = 3; 53 | NH_TYPE_RECURSIVE = 4; 54 | NH_TYPE_BACKUP = 5; 55 | NH_TYPE_DROP = 6; 56 | NH_TYPE_DISCARD = 7; 57 | } 58 | 59 | /* Next hop 60 | */ 61 | message NxL3NextHopProto { 62 | /* Address of Next hop 63 | */ 64 | string address = 1; 65 | 66 | /* Outgoing interface for the next hop 67 | */ 68 | string out_interface = 2; 69 | 70 | /* Vrf name for the next hop 71 | */ 72 | string vrf_name = 3; 73 | 74 | /* Owner of the next hop 75 | */ 76 | string owner = 4; 77 | 78 | /* Preference for the next hop 79 | */ 80 | uint32 preference = 5; 81 | 82 | /* Metric for the next hop 83 | */ 84 | uint32 metric = 6; 85 | 86 | /* Tag for the next hop 87 | */ 88 | uint32 tag = 7; 89 | 90 | /* segment id for the next hop 91 | */ 92 | uint32 segment_id = 8; 93 | 94 | /* tunnel id for the next hop 95 | */ 96 | uint32 tunnel_id = 9; 97 | 98 | /* encap type for the next hop 99 | */ 100 | EncapType encap_type = 10; 101 | 102 | /* Bitwise-OR of Flags for NhType. 103 | */ 104 | uint32 nh_type_flags = 11; 105 | } 106 | 107 | /* L3 route 108 | */ 109 | message NxL3RouteProto { 110 | /* Vrf name of the l3 route 111 | */ 112 | string vrf_name = 1; 113 | 114 | /* l3 route prefix address 115 | */ 116 | string address = 2; 117 | 118 | /* Mask length for the l3 route 119 | */ 120 | uint32 mask_len = 3; 121 | 122 | /* Number of next hops for the l3 route 123 | */ 124 | uint32 l3_next_hop_count = 4; 125 | 126 | /* Event type 127 | */ 128 | UribEventType event_type = 5; 129 | 130 | /* Next hops 131 | */ 132 | repeated NxL3NextHopProto next_hop = 6; 133 | } 134 | -------------------------------------------------------------------------------- /urib/urib.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: urib.proto 3 | 4 | package urib 5 | 6 | import ( 7 | proto "github.com/golang/protobuf/proto" 8 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 9 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" 10 | reflect "reflect" 11 | sync "sync" 12 | ) 13 | 14 | const ( 15 | // Verify that this generated code is sufficiently up-to-date. 16 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 17 | // Verify that runtime/protoimpl is sufficiently up-to-date. 18 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 19 | ) 20 | 21 | // This is a compile-time assertion that a sufficiently up-to-date version 22 | // of the legacy proto package is being used. 23 | const _ = proto.ProtoPackageIsVersion4 24 | 25 | // URIB event type 26 | type UribEventType int32 27 | 28 | const ( 29 | UribEventType_URIB_EVENT_TYPE_NO_EVENT UribEventType = 0 30 | UribEventType_URIB_EVENT_TYPE_ADD UribEventType = 1 31 | UribEventType_URIB_EVENT_TYPE_DELETE UribEventType = 2 32 | UribEventType_URIB_EVENT_TYPE_UPDATE UribEventType = 3 33 | UribEventType_URIB_EVENT_TYPE_DOWNLOAD UribEventType = 4 34 | UribEventType_URIB_EVENT_TYPE_DOWNLOAD_DONE UribEventType = 5 35 | ) 36 | 37 | // Enum value maps for UribEventType. 38 | var ( 39 | UribEventType_name = map[int32]string{ 40 | 0: "URIB_EVENT_TYPE_NO_EVENT", 41 | 1: "URIB_EVENT_TYPE_ADD", 42 | 2: "URIB_EVENT_TYPE_DELETE", 43 | 3: "URIB_EVENT_TYPE_UPDATE", 44 | 4: "URIB_EVENT_TYPE_DOWNLOAD", 45 | 5: "URIB_EVENT_TYPE_DOWNLOAD_DONE", 46 | } 47 | UribEventType_value = map[string]int32{ 48 | "URIB_EVENT_TYPE_NO_EVENT": 0, 49 | "URIB_EVENT_TYPE_ADD": 1, 50 | "URIB_EVENT_TYPE_DELETE": 2, 51 | "URIB_EVENT_TYPE_UPDATE": 3, 52 | "URIB_EVENT_TYPE_DOWNLOAD": 4, 53 | "URIB_EVENT_TYPE_DOWNLOAD_DONE": 5, 54 | } 55 | ) 56 | 57 | func (x UribEventType) Enum() *UribEventType { 58 | p := new(UribEventType) 59 | *p = x 60 | return p 61 | } 62 | 63 | func (x UribEventType) String() string { 64 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 65 | } 66 | 67 | func (UribEventType) Descriptor() protoreflect.EnumDescriptor { 68 | return file_urib_proto_enumTypes[0].Descriptor() 69 | } 70 | 71 | func (UribEventType) Type() protoreflect.EnumType { 72 | return &file_urib_proto_enumTypes[0] 73 | } 74 | 75 | func (x UribEventType) Number() protoreflect.EnumNumber { 76 | return protoreflect.EnumNumber(x) 77 | } 78 | 79 | // Deprecated: Use UribEventType.Descriptor instead. 80 | func (UribEventType) EnumDescriptor() ([]byte, []int) { 81 | return file_urib_proto_rawDescGZIP(), []int{0} 82 | } 83 | 84 | // URIB encap type 85 | type EncapType int32 86 | 87 | const ( 88 | EncapType_ENCAP_TYPE_NONE EncapType = 0 89 | EncapType_ENCAP_TYPE_VXLAN EncapType = 1 90 | ) 91 | 92 | // Enum value maps for EncapType. 93 | var ( 94 | EncapType_name = map[int32]string{ 95 | 0: "ENCAP_TYPE_NONE", 96 | 1: "ENCAP_TYPE_VXLAN", 97 | } 98 | EncapType_value = map[string]int32{ 99 | "ENCAP_TYPE_NONE": 0, 100 | "ENCAP_TYPE_VXLAN": 1, 101 | } 102 | ) 103 | 104 | func (x EncapType) Enum() *EncapType { 105 | p := new(EncapType) 106 | *p = x 107 | return p 108 | } 109 | 110 | func (x EncapType) String() string { 111 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 112 | } 113 | 114 | func (EncapType) Descriptor() protoreflect.EnumDescriptor { 115 | return file_urib_proto_enumTypes[1].Descriptor() 116 | } 117 | 118 | func (EncapType) Type() protoreflect.EnumType { 119 | return &file_urib_proto_enumTypes[1] 120 | } 121 | 122 | func (x EncapType) Number() protoreflect.EnumNumber { 123 | return protoreflect.EnumNumber(x) 124 | } 125 | 126 | // Deprecated: Use EncapType.Descriptor instead. 127 | func (EncapType) EnumDescriptor() ([]byte, []int) { 128 | return file_urib_proto_rawDescGZIP(), []int{1} 129 | } 130 | 131 | // URIB next hop type 132 | type NhType int32 133 | 134 | const ( 135 | NhType_NH_TYPE_NONE NhType = 0 136 | NhType_NH_TYPE_ATTACHED NhType = 1 137 | NhType_NH_TYPE_LOCAL NhType = 2 138 | NhType_NH_TYPE_DIRECT NhType = 3 139 | NhType_NH_TYPE_RECURSIVE NhType = 4 140 | NhType_NH_TYPE_BACKUP NhType = 5 141 | NhType_NH_TYPE_DROP NhType = 6 142 | NhType_NH_TYPE_DISCARD NhType = 7 143 | ) 144 | 145 | // Enum value maps for NhType. 146 | var ( 147 | NhType_name = map[int32]string{ 148 | 0: "NH_TYPE_NONE", 149 | 1: "NH_TYPE_ATTACHED", 150 | 2: "NH_TYPE_LOCAL", 151 | 3: "NH_TYPE_DIRECT", 152 | 4: "NH_TYPE_RECURSIVE", 153 | 5: "NH_TYPE_BACKUP", 154 | 6: "NH_TYPE_DROP", 155 | 7: "NH_TYPE_DISCARD", 156 | } 157 | NhType_value = map[string]int32{ 158 | "NH_TYPE_NONE": 0, 159 | "NH_TYPE_ATTACHED": 1, 160 | "NH_TYPE_LOCAL": 2, 161 | "NH_TYPE_DIRECT": 3, 162 | "NH_TYPE_RECURSIVE": 4, 163 | "NH_TYPE_BACKUP": 5, 164 | "NH_TYPE_DROP": 6, 165 | "NH_TYPE_DISCARD": 7, 166 | } 167 | ) 168 | 169 | func (x NhType) Enum() *NhType { 170 | p := new(NhType) 171 | *p = x 172 | return p 173 | } 174 | 175 | func (x NhType) String() string { 176 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 177 | } 178 | 179 | func (NhType) Descriptor() protoreflect.EnumDescriptor { 180 | return file_urib_proto_enumTypes[2].Descriptor() 181 | } 182 | 183 | func (NhType) Type() protoreflect.EnumType { 184 | return &file_urib_proto_enumTypes[2] 185 | } 186 | 187 | func (x NhType) Number() protoreflect.EnumNumber { 188 | return protoreflect.EnumNumber(x) 189 | } 190 | 191 | // Deprecated: Use NhType.Descriptor instead. 192 | func (NhType) EnumDescriptor() ([]byte, []int) { 193 | return file_urib_proto_rawDescGZIP(), []int{2} 194 | } 195 | 196 | // Next hop 197 | type NxL3NextHopProto struct { 198 | state protoimpl.MessageState 199 | sizeCache protoimpl.SizeCache 200 | unknownFields protoimpl.UnknownFields 201 | 202 | // Address of Next hop 203 | Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 204 | // Outgoing interface for the next hop 205 | OutInterface string `protobuf:"bytes,2,opt,name=out_interface,json=outInterface,proto3" json:"out_interface,omitempty"` 206 | // Vrf name for the next hop 207 | VrfName string `protobuf:"bytes,3,opt,name=vrf_name,json=vrfName,proto3" json:"vrf_name,omitempty"` 208 | // Owner of the next hop 209 | Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` 210 | // Preference for the next hop 211 | Preference uint32 `protobuf:"varint,5,opt,name=preference,proto3" json:"preference,omitempty"` 212 | // Metric for the next hop 213 | Metric uint32 `protobuf:"varint,6,opt,name=metric,proto3" json:"metric,omitempty"` 214 | // Tag for the next hop 215 | Tag uint32 `protobuf:"varint,7,opt,name=tag,proto3" json:"tag,omitempty"` 216 | // segment id for the next hop 217 | SegmentId uint32 `protobuf:"varint,8,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` 218 | // tunnel id for the next hop 219 | TunnelId uint32 `protobuf:"varint,9,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` 220 | // encap type for the next hop 221 | EncapType EncapType `protobuf:"varint,10,opt,name=encap_type,json=encapType,proto3,enum=EncapType" json:"encap_type,omitempty"` 222 | // Bitwise-OR of Flags for NhType. 223 | NhTypeFlags uint32 `protobuf:"varint,11,opt,name=nh_type_flags,json=nhTypeFlags,proto3" json:"nh_type_flags,omitempty"` 224 | } 225 | 226 | func (x *NxL3NextHopProto) Reset() { 227 | *x = NxL3NextHopProto{} 228 | if protoimpl.UnsafeEnabled { 229 | mi := &file_urib_proto_msgTypes[0] 230 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 231 | ms.StoreMessageInfo(mi) 232 | } 233 | } 234 | 235 | func (x *NxL3NextHopProto) String() string { 236 | return protoimpl.X.MessageStringOf(x) 237 | } 238 | 239 | func (*NxL3NextHopProto) ProtoMessage() {} 240 | 241 | func (x *NxL3NextHopProto) ProtoReflect() protoreflect.Message { 242 | mi := &file_urib_proto_msgTypes[0] 243 | if protoimpl.UnsafeEnabled && x != nil { 244 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 245 | if ms.LoadMessageInfo() == nil { 246 | ms.StoreMessageInfo(mi) 247 | } 248 | return ms 249 | } 250 | return mi.MessageOf(x) 251 | } 252 | 253 | // Deprecated: Use NxL3NextHopProto.ProtoReflect.Descriptor instead. 254 | func (*NxL3NextHopProto) Descriptor() ([]byte, []int) { 255 | return file_urib_proto_rawDescGZIP(), []int{0} 256 | } 257 | 258 | func (x *NxL3NextHopProto) GetAddress() string { 259 | if x != nil { 260 | return x.Address 261 | } 262 | return "" 263 | } 264 | 265 | func (x *NxL3NextHopProto) GetOutInterface() string { 266 | if x != nil { 267 | return x.OutInterface 268 | } 269 | return "" 270 | } 271 | 272 | func (x *NxL3NextHopProto) GetVrfName() string { 273 | if x != nil { 274 | return x.VrfName 275 | } 276 | return "" 277 | } 278 | 279 | func (x *NxL3NextHopProto) GetOwner() string { 280 | if x != nil { 281 | return x.Owner 282 | } 283 | return "" 284 | } 285 | 286 | func (x *NxL3NextHopProto) GetPreference() uint32 { 287 | if x != nil { 288 | return x.Preference 289 | } 290 | return 0 291 | } 292 | 293 | func (x *NxL3NextHopProto) GetMetric() uint32 { 294 | if x != nil { 295 | return x.Metric 296 | } 297 | return 0 298 | } 299 | 300 | func (x *NxL3NextHopProto) GetTag() uint32 { 301 | if x != nil { 302 | return x.Tag 303 | } 304 | return 0 305 | } 306 | 307 | func (x *NxL3NextHopProto) GetSegmentId() uint32 { 308 | if x != nil { 309 | return x.SegmentId 310 | } 311 | return 0 312 | } 313 | 314 | func (x *NxL3NextHopProto) GetTunnelId() uint32 { 315 | if x != nil { 316 | return x.TunnelId 317 | } 318 | return 0 319 | } 320 | 321 | func (x *NxL3NextHopProto) GetEncapType() EncapType { 322 | if x != nil { 323 | return x.EncapType 324 | } 325 | return EncapType_ENCAP_TYPE_NONE 326 | } 327 | 328 | func (x *NxL3NextHopProto) GetNhTypeFlags() uint32 { 329 | if x != nil { 330 | return x.NhTypeFlags 331 | } 332 | return 0 333 | } 334 | 335 | // L3 route 336 | type NxL3RouteProto struct { 337 | state protoimpl.MessageState 338 | sizeCache protoimpl.SizeCache 339 | unknownFields protoimpl.UnknownFields 340 | 341 | // Vrf name of the l3 route 342 | VrfName string `protobuf:"bytes,1,opt,name=vrf_name,json=vrfName,proto3" json:"vrf_name,omitempty"` 343 | // l3 route prefix address 344 | Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` 345 | // Mask length for the l3 route 346 | MaskLen uint32 `protobuf:"varint,3,opt,name=mask_len,json=maskLen,proto3" json:"mask_len,omitempty"` 347 | // Number of next hops for the l3 route 348 | L3NextHopCount uint32 `protobuf:"varint,4,opt,name=l3_next_hop_count,json=l3NextHopCount,proto3" json:"l3_next_hop_count,omitempty"` 349 | // Event type 350 | EventType UribEventType `protobuf:"varint,5,opt,name=event_type,json=eventType,proto3,enum=UribEventType" json:"event_type,omitempty"` 351 | // Next hops 352 | NextHop []*NxL3NextHopProto `protobuf:"bytes,6,rep,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` 353 | } 354 | 355 | func (x *NxL3RouteProto) Reset() { 356 | *x = NxL3RouteProto{} 357 | if protoimpl.UnsafeEnabled { 358 | mi := &file_urib_proto_msgTypes[1] 359 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 360 | ms.StoreMessageInfo(mi) 361 | } 362 | } 363 | 364 | func (x *NxL3RouteProto) String() string { 365 | return protoimpl.X.MessageStringOf(x) 366 | } 367 | 368 | func (*NxL3RouteProto) ProtoMessage() {} 369 | 370 | func (x *NxL3RouteProto) ProtoReflect() protoreflect.Message { 371 | mi := &file_urib_proto_msgTypes[1] 372 | if protoimpl.UnsafeEnabled && x != nil { 373 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 374 | if ms.LoadMessageInfo() == nil { 375 | ms.StoreMessageInfo(mi) 376 | } 377 | return ms 378 | } 379 | return mi.MessageOf(x) 380 | } 381 | 382 | // Deprecated: Use NxL3RouteProto.ProtoReflect.Descriptor instead. 383 | func (*NxL3RouteProto) Descriptor() ([]byte, []int) { 384 | return file_urib_proto_rawDescGZIP(), []int{1} 385 | } 386 | 387 | func (x *NxL3RouteProto) GetVrfName() string { 388 | if x != nil { 389 | return x.VrfName 390 | } 391 | return "" 392 | } 393 | 394 | func (x *NxL3RouteProto) GetAddress() string { 395 | if x != nil { 396 | return x.Address 397 | } 398 | return "" 399 | } 400 | 401 | func (x *NxL3RouteProto) GetMaskLen() uint32 { 402 | if x != nil { 403 | return x.MaskLen 404 | } 405 | return 0 406 | } 407 | 408 | func (x *NxL3RouteProto) GetL3NextHopCount() uint32 { 409 | if x != nil { 410 | return x.L3NextHopCount 411 | } 412 | return 0 413 | } 414 | 415 | func (x *NxL3RouteProto) GetEventType() UribEventType { 416 | if x != nil { 417 | return x.EventType 418 | } 419 | return UribEventType_URIB_EVENT_TYPE_NO_EVENT 420 | } 421 | 422 | func (x *NxL3RouteProto) GetNextHop() []*NxL3NextHopProto { 423 | if x != nil { 424 | return x.NextHop 425 | } 426 | return nil 427 | } 428 | 429 | var File_urib_proto protoreflect.FileDescriptor 430 | 431 | var file_urib_proto_rawDesc = []byte{ 432 | 0x0a, 0x0a, 0x75, 0x72, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd7, 0x02, 0x0a, 433 | 0x10, 0x4e, 0x78, 0x4c, 0x33, 0x4e, 0x65, 0x78, 0x74, 0x48, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x74, 434 | 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 435 | 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 436 | 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 437 | 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 438 | 0x12, 0x19, 0x0a, 0x08, 0x76, 0x72, 0x66, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 439 | 0x28, 0x09, 0x52, 0x07, 0x76, 0x72, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 440 | 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 441 | 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 442 | 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 443 | 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 444 | 0x0d, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 445 | 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 446 | 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 447 | 0x09, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x75, 448 | 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x74, 449 | 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x61, 0x70, 450 | 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x45, 0x6e, 451 | 0x63, 0x61, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x54, 0x79, 452 | 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x66, 0x6c, 453 | 0x61, 0x67, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6e, 0x68, 0x54, 0x79, 0x70, 454 | 0x65, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x22, 0xe8, 0x01, 0x0a, 0x0e, 0x4e, 0x78, 0x4c, 0x33, 0x52, 455 | 0x6f, 0x75, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x72, 0x66, 456 | 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x72, 0x66, 457 | 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 458 | 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 459 | 0x0a, 0x08, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 460 | 0x52, 0x07, 0x6d, 0x61, 0x73, 0x6b, 0x4c, 0x65, 0x6e, 0x12, 0x29, 0x0a, 0x11, 0x6c, 0x33, 0x5f, 461 | 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 462 | 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6c, 0x33, 0x4e, 0x65, 0x78, 0x74, 0x48, 0x6f, 0x70, 0x43, 463 | 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 464 | 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x55, 0x72, 0x69, 0x62, 0x45, 465 | 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 466 | 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x18, 467 | 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x4e, 0x78, 0x4c, 0x33, 0x4e, 0x65, 0x78, 0x74, 468 | 0x48, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x07, 0x6e, 0x65, 0x78, 0x74, 0x48, 0x6f, 469 | 0x70, 0x2a, 0xbf, 0x01, 0x0a, 0x0d, 0x55, 0x72, 0x69, 0x62, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 470 | 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x55, 0x52, 0x49, 0x42, 0x5f, 0x45, 0x56, 0x45, 0x4e, 471 | 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x10, 472 | 0x00, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x52, 0x49, 0x42, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 473 | 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x44, 0x44, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x52, 474 | 0x49, 0x42, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 475 | 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x52, 0x49, 0x42, 0x5f, 0x45, 476 | 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 477 | 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x55, 0x52, 0x49, 0x42, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 478 | 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x04, 479 | 0x12, 0x21, 0x0a, 0x1d, 0x55, 0x52, 0x49, 0x42, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 480 | 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x44, 0x4f, 0x4e, 481 | 0x45, 0x10, 0x05, 0x2a, 0x36, 0x0a, 0x09, 0x45, 0x6e, 0x63, 0x61, 0x70, 0x54, 0x79, 0x70, 0x65, 482 | 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x4e, 0x43, 0x41, 0x50, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 483 | 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, 0x43, 0x41, 0x50, 0x5f, 0x54, 484 | 0x59, 0x50, 0x45, 0x5f, 0x56, 0x58, 0x4c, 0x41, 0x4e, 0x10, 0x01, 0x2a, 0xa9, 0x01, 0x0a, 0x06, 485 | 0x4e, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x48, 0x5f, 0x54, 0x59, 0x50, 486 | 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4e, 0x48, 0x5f, 0x54, 487 | 0x59, 0x50, 0x45, 0x5f, 0x41, 0x54, 0x54, 0x41, 0x43, 0x48, 0x45, 0x44, 0x10, 0x01, 0x12, 0x11, 488 | 0x0a, 0x0d, 0x4e, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 489 | 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x4e, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49, 0x52, 490 | 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x4e, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 491 | 0x5f, 0x52, 0x45, 0x43, 0x55, 0x52, 0x53, 0x49, 0x56, 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 492 | 0x4e, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x10, 0x05, 493 | 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x52, 0x4f, 0x50, 494 | 0x10, 0x06, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49, 495 | 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x07, 0x42, 0x09, 0x5a, 0x04, 0x75, 0x72, 0x69, 0x62, 0xf8, 496 | 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 497 | } 498 | 499 | var ( 500 | file_urib_proto_rawDescOnce sync.Once 501 | file_urib_proto_rawDescData = file_urib_proto_rawDesc 502 | ) 503 | 504 | func file_urib_proto_rawDescGZIP() []byte { 505 | file_urib_proto_rawDescOnce.Do(func() { 506 | file_urib_proto_rawDescData = protoimpl.X.CompressGZIP(file_urib_proto_rawDescData) 507 | }) 508 | return file_urib_proto_rawDescData 509 | } 510 | 511 | var file_urib_proto_enumTypes = make([]protoimpl.EnumInfo, 3) 512 | var file_urib_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 513 | var file_urib_proto_goTypes = []interface{}{ 514 | (UribEventType)(0), // 0: UribEventType 515 | (EncapType)(0), // 1: EncapType 516 | (NhType)(0), // 2: NhType 517 | (*NxL3NextHopProto)(nil), // 3: NxL3NextHopProto 518 | (*NxL3RouteProto)(nil), // 4: NxL3RouteProto 519 | } 520 | var file_urib_proto_depIdxs = []int32{ 521 | 1, // 0: NxL3NextHopProto.encap_type:type_name -> EncapType 522 | 0, // 1: NxL3RouteProto.event_type:type_name -> UribEventType 523 | 3, // 2: NxL3RouteProto.next_hop:type_name -> NxL3NextHopProto 524 | 3, // [3:3] is the sub-list for method output_type 525 | 3, // [3:3] is the sub-list for method input_type 526 | 3, // [3:3] is the sub-list for extension type_name 527 | 3, // [3:3] is the sub-list for extension extendee 528 | 0, // [0:3] is the sub-list for field type_name 529 | } 530 | 531 | func init() { file_urib_proto_init() } 532 | func file_urib_proto_init() { 533 | if File_urib_proto != nil { 534 | return 535 | } 536 | if !protoimpl.UnsafeEnabled { 537 | file_urib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 538 | switch v := v.(*NxL3NextHopProto); i { 539 | case 0: 540 | return &v.state 541 | case 1: 542 | return &v.sizeCache 543 | case 2: 544 | return &v.unknownFields 545 | default: 546 | return nil 547 | } 548 | } 549 | file_urib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 550 | switch v := v.(*NxL3RouteProto); i { 551 | case 0: 552 | return &v.state 553 | case 1: 554 | return &v.sizeCache 555 | case 2: 556 | return &v.unknownFields 557 | default: 558 | return nil 559 | } 560 | } 561 | } 562 | type x struct{} 563 | out := protoimpl.TypeBuilder{ 564 | File: protoimpl.DescBuilder{ 565 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 566 | RawDescriptor: file_urib_proto_rawDesc, 567 | NumEnums: 3, 568 | NumMessages: 2, 569 | NumExtensions: 0, 570 | NumServices: 0, 571 | }, 572 | GoTypes: file_urib_proto_goTypes, 573 | DependencyIndexes: file_urib_proto_depIdxs, 574 | EnumInfos: file_urib_proto_enumTypes, 575 | MessageInfos: file_urib_proto_msgTypes, 576 | }.Build() 577 | File_urib_proto = out.File 578 | file_urib_proto_rawDesc = nil 579 | file_urib_proto_goTypes = nil 580 | file_urib_proto_depIdxs = nil 581 | } 582 | --------------------------------------------------------------------------------