summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-11-20Use InetAddresses.forString instead of InetAddress.getByNameMarek Gradzki5-51/+17
Unlike InetAddress.getByName(), Guava's InetAddresses.forString() never cause DNS services to be accessed. JDK equivalents whenever you are expecting to handle only IP address string literals, so there is no blocking DNS penalty for a malformed string. See: https://google.github.io/guava/releases/22.0/api/docs/com/google/common/net/InetAddresses.html#forString-java.lang.String- Change-Id: I7972c09f1f0a3a2688021302acbf6df112be7f72 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-20HC2VPP-255: postman collection with MPLS config examplesMarek Gradzki1-0/+246
Examples of requests showing how to enable/disable MPLS on given interface and how to push labels. Change-Id: If6f6f708a9af53131ef57fede07a77fc0943c9ee Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-20HC2VPP-258: add support for MPLS label pushMarek Gradzki4-4/+386
Translates impose-and-forward operation of /hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpl:mpls/ hc2vpp-ietf-mpls-static:static-lsps/static-lsp to ip_add_del_route call. For single outgoing-label, use simple-path out-segment. For multiple outgoing labels, use path-list out-segment with single path (multiple path support is not implemented yet). See postman collection for examples. TODOs: - only IPv4 prefixes and next-hops are supported (HC2VPP-264). Change-Id: I318e722edbc1f7ffd3eff2f308fc73c2062283c0 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-16Update ODL references in BGP documentationMarek Gradzki2-4/+5
Hc2vpp 18.01 is using ODL Nitrogen since https://gerrit.fd.io/r/#/c/9258/ and https://gerrit.fd.io/r/#/c/9259/ Change-Id: I4d7f2b28b0674b7ab7e248caba84e62a21c1c977 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-09HONEYCOMB-385: adapt hc2vpp to Nitrogen bumpMarek Gradzki2-3/+3
Change-Id: I0f1e2085f1687e1c8c0edcc526af048a429788e8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-07Update release script with proper snapshot versionsMarek Gradzki1-7/+19
Includes examples of snapshot versions for honeycomb packages that preserve package ordering. Based on https://gerrit.fd.io/r/#/c/9143/ Change-Id: I117036f89ec92b5c1bc81cce72d9b1383df6543b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-07Fix operational read for interface's MAC addressMarek Gradzki3-4/+14
Hc2vpp supports 48-bit addresses. VPP returns 64-bits, so ignore extended part. This patch updates MAC address handling broken by https://gerrit.fd.io/r/#/c/9090/ Change-Id: I7cc8d75e19f1f56e1f1adc23848a4a9baef87206 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-07HC2VPP-257: MPLS interface managementMarek Gradzki8-0/+422
Translates /hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpls:mpls/interface to sw_interface_set_mpls_enable which is equivalent to: set interface mpls [...] enable MPLS table is created before configuring MPLS using mpls_table_add_del (required since VPP 17.10). Reading MPLS configuration state is not supported (VPP API is missing). Change-Id: I3f1b987c3669b0836a27649a711e75d0dc37a779 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-06HC2VPP-256: MPLS APIMarek Gradzki8-0/+1561
Adds following models: - hc2vpp-ietf-mpls - hc2vpp-ietf-mpls-static - hc2vpp-ietf-routing-types Models were modified due to YANGTOOLS/MDSAL issues and some problems with the models itself. More information can be found in the YANG files. Original YANG files were downloaded from https://github.com/ietf-mpls-yang/te/ Change-Id: I3d04a3bf8be026fbe74a6f5833d38e980490e737 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-06Fix BGP Postman collection URLMarek Gradzki1-1/+1
Change-Id: I7b1c0683cf21a6f5effc1e83eab652ad584a8c7f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-06HONEYCOMB-359 - CollectingWriterBuilder support for wildcarded writersJan Srnicek1-1/+31
requires https://gerrit.fd.io/r/#/c/8434/ Change-Id: I226192776a4285ee498d72fd000051d29ad6a974 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-10-31Adapt to mac address representation change in l2.apiMarek Gradzki7-43/+24
https://gerrit.fd.io/r/#/c/9090/ changes mac representation from u64 to u8[] Change-Id: Ia82d5652926f8bd10c1c8fc3ad0e147b35dbee4c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-31Post 1.17.10 release notes cleanupMarek Gradzki2-12/+3
Change-Id: I4f808d0685dd9096f73f528fe11af87afb6cb1e3 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-30Documentation for jvpp-version fileMarek Gradzki1-0/+6
Change-Id: Iba106fc52a8833b9ff34342b3ed3801ecbd22749 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-30Update BGP guide with MBGP configurationMarek Gradzki1-0/+9
https://gerrit.fd.io/r/#/c/8486/ moved BGP multiprotocol extensions configuration to seprate modules. Change-Id: Ia316d75d4394d0ed6da459e0aa949d3a47a1a1a2 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-30HONEYCOMB-392 - Footprint per dataJan Srnicek1-1/+71
Updates release notes with - minimal params to start hc - minimal params to start hc and be able to write something - how many data samples are possible to be written with params above - how much memory is taken in raw object size - what is total observed footprint Change-Id: Ia42dcc5075ff70a696c973651327bf62ee84bb65 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-10-26Remove unused builders for union types generated by yangtoolsMarek Gradzki11-379/+1
Builders were removed after bumping ODL dependencies to Boron: https://gerrit.fd.io/r/#/c/3508/ Then due various issues, e.g. HC2VPP-62, Boron bump was reverted: https://gerrit.fd.io/r/#/c/5064/ https://gerrit.fd.io/r/#/c/5065/ HC is using Carbon now, so builders can be removed again. Change-Id: I1a04dddc798a19842765263bde48a33447480992 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-18HC2VPP-247 - Mandatory reintroduced for vrf/bd sub-tableJan Srnicek102-551/+556
table-id(VRF) or bd-reference(BD) must be mandatory, because if assignment of vni to vrf/bd does not exist, and local/remote mapping tryins to reference such vni, api call to vpp will fail with invalid value error Change-Id: Iaeaac1fe698ccc783313063906532bcf268a99fb Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-10-16HC2VPP-246: adapt Policer Writer to policer_add_del byte order changesMarek Gradzki1-6/+4
Endianness of policer_add_del parameters was changed to network order: https://gerrit.fd.io/r/#/c/8548 JVPP flips ordering, so there is no need for additional convertion anymore. Change-Id: Ib7c5fafe240e0607819800c4cf4d37f4c4a8e1c6 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-12HC2VPP-245 - Local mapping vs Locator set orderingJan Srnicek1-4/+7
LocalMapping must be writen after/deleted before Locator set, as it has reference to it Change-Id: I8a7299d25e0fb5c2ffb83a34f478d82b2edfa749 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-10-11Reenable nsh moduleMarek Gradzki3-15/+3
Also updates nsh-sfc jar to 18.01-SNAPSHOT Change-Id: I25abe1f226e37f7460fedccaff7e50e2e97e97c1 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-11Temporarily disable nsh_sfcMatej2-2/+8
nsh_sfc is using outdated jvpp-registry dependency which breaks build for hc2vpp, until dependency is updated nsh_sfc is going to be excluded from hc2vpp Change-Id: Ib7ca2fda0c80257c7194336a55b071c70aebfe21 Signed-off-by: Matej <matej.perina@pantheon.tech>
2017-10-11Adapt notification producer to jvpp API changes (VPP-914)Matej Perina2-31/+42
Required by https://gerrit.fd.io/r/#/c/8377/ Change-Id: I91b5adda6ec8d9b011ebc1287fd2ec9811164b04 Signed-off-by: Matej Perina <mperina@cisco.com>
2017-10-10HC2VPP-243 - don't throw on remove of map-request-modeJan Srnicek3-9/+27
Allows removing all lisp-feature-data. Also fixes ordering for itr remote locator set. Change-Id: Ib181c724dfa76f5ac380eec5e50f5d76f6b01389 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-10-04Bump jvpp version to 18.01-SNAPSHOTMarek Gradzki13-21/+27
Also sets version of vpp package dependencies to 18.01 Change-Id: I9d84915e206cc16c87479f94d4b8738899479cea Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-04Update jira project version in hc2vpp 1.18.01 release notesMarek Gradzki2-3/+3
Change-Id: I424ca25cf1d61f0c135e91f16ce85bf8efe6290c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-04Bump hc2vpp version to 1.18.01-SNAPSHOTMarek Gradzki69-155/+155
Change-Id: Id2b6e7c5259190808b7093dc18538427e4034fc0 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-09-28HC2VPP-232 - Secondary table lookup supportJan Srnicek50-376/+699
Ietf models now contains case table-lookup to be able to define lookup to secondary table. It must be separated to dedicated case as combining secondary-vrf and other next hop types(simple,multi,special) does not make sense, its either you define lookup to table, or you specify next hop of some kind. This patch works properly only for write, as read is affected by VPP-994/VPP-995. Read at this state can detect that route is using table lookup, but can't detect table that is used for that lookup. Also, HC2VPP-237 must be done in future Change-Id: Ia6976b35c6c1712d8add60beea7b0edbc4536974 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-09-27HC2VPP-236 - interface-nat model file name fixJan Srnicek1-0/+0
Change-Id: Iaa8d8ccb6ade28f9b62c398610638f5ba465fffd Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-09-18HC2VPP-229 - Combined honeycomb and vpp restart handlingJan Srnicek2-19/+63
Prevents honeycomb from attempting disconnection on different instance of vpp that it was connected to Change-Id: I8dedcaebb08ac75dc0fb9568ab66a011b1b1b676 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-09-11HC2VPP-191 - One transport protocol apiJan Srnicek102-543/+566
Change-Id: I8ecff45d095b3fbffc5ebf4c09cf1496289e5498 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-09-07Ipv4AddressRange: remove unnecessary double->int convertionMarek Gradzki1-6/+2
Should fix https://sonar.fd.io/issues/search#issues=AViCMnel_ATy1iJVe-79 Change-Id: I798930dea057cac93ab95b6c1d6f660a21d84e74 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-09-07Fix error-handling issues found by SonarMarek Gradzki3-4/+4
Change-Id: Ic370f72c16beaf56003021a6a89f751de8b744b8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-09-07Fix multiple checkstyle and Sonar warings in ByteDataTranslatorMarek Gradzki1-36/+18
Change-Id: Ie1503af359430c47ca71f4ed0230e79daf5f04d4 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-09-07Fix Sonar security issues in MacIpAceDataExtractorMarek Gradzki1-9/+11
Change-Id: I799a33f7589216c8a43c5560ed3dc58e1bf1eae1 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-28DumpCacheManager: make dumpParams optionalMarek Gradzki26-82/+46
Requires https://gerrit.fd.io/r/#/c/8185/ Change-Id: Ib2d529366bd3cf6bb292014026ab8053a19c0ed7 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-28HC2VPP-105: nat64 prefix readMarek Gradzki4-0/+323
Also updates NAT postman collection with nat64 prefix configuration examples Change-Id: I61cb12a2a91be92defccf55b82dc8658d185195f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-28Fix Ipv6Translator.arrayToIpv6Prefix to support single address blockMarek Gradzki2-11/+22
Change-Id: I91353a0c780ac2f61d15c677c25f647f826f71c3 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-08-28HC2VPP-105: nat64 prefix configurationMarek Gradzki3-0/+212
Change-Id: I205fb426ab9c0e47ef40b81c2f6dcd397524f1eb Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-08-28Bump nsh-sfc version to 17.10-SNAPSHOTMarek Gradzki1-7/+1
Change-Id: I722e260dca2bae351d4bb1ef4c27ac65bf9b1248 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-24HC2VPP-222: adapt hc2vpp to snat->nat plugin rename in vppMarek Gradzki51-480/+468
Change-Id: If4c7f2f1fc52f1ee64ed95900a362063207def27 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-24NamingContext.getNameIfPresent should not fail if name is missingMarek Gradzki3-7/+54
Also makes InterfaceChangeNotificationProducer notification translation code more defensive. The issue was revealed by HC2VPP-216 and HC2VPP-220. Change-Id: I20792a51743ae621d86c1b9066d680bc2303ed82 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-24Move StaticCacheKeyFactory to honeycomb projectMarek Gradzki4-53/+8
Requires https://gerrit.fd.io/r/#/c/8169/ Change-Id: Ibb1482d350f4739c3ab33bc0ff678f06335af48c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-21HC2VPP-105: include NAT64 examples in postman collectionMarek Gradzki1-242/+448
Also includes some minor refactoring. Change-Id: Ibb186fe3fb0fde0ba0f11f5502d770d74a68063c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-21HC2VPP-105: add support for nat64 configuration on interfaceMarek Gradzki16-109/+248
Change-Id: I071f8981b680845ea031a9e61dfca7e34ea539e5 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-17HC2VPP-105: add support for NAT64 BIB entries readMarek Gradzki7-101/+423
Change-Id: Ic8e61a13cba8ae8e3e69f16985918451df239430 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-17Release notes cleanup after releasing hc2vpp 1.17.07Marek Gradzki9-36/+23
Change-Id: I355e73553345ce12360946d5db2c96253a2d1040 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-16HC2VPP-105: interface-nat.yang NAT64 supportMarek Gradzki21-60/+80
Change-Id: I22b391577e11bc33dbe03f643fe6968262f0712f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-16HC2VPP-105: add support for nat64 pool readMarek Gradzki3-82/+186
Change-Id: If458e0b812435de5ae41af1bdbf53e2ffaf94e35 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-16HC2VPP-105: add support for nat64 pool configurationMarek Gradzki5-26/+105
Change-Id: I5e57b7855e081056ad0d675084209fc9cd4add23 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>