summaryrefslogtreecommitdiffstats
path: root/v3po
AgeCommit message (Collapse)AuthorFilesLines
2016-12-20HONEYCOMB-310: translation layer for acl pluginJan Srnicek1-25/+0
Not covered by this patch (moved to subsequent commits): - postman collection - distinguish ingress/egress ACLs while reading assigned acls - proper support for acl tag - unit tests improvements - read for acls (not necessarily assigned) - initializers Change-Id: I5a198ce1a6e20d0b1d95b4d2d83d0464fb86580c Signed-off-by: Jan Srnicek <jsrnicek@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-20HONEYCOMB-324: fix config reconciliation for classify tablesMarek Gradzki1-2/+2
that were defined outside HC. As a workaround for VPP-208, memory_size leaf was made non-mandatory. Change-Id: I456727d9f80c054694bf4f43db3da0b273a29510 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-20Mark vpp nodes defined outside HC as 'unknown'Marek Gradzki2-6/+16
Change-Id: I3c0c313229e11df9e15d5b95d960d6a165aace2d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-16HONEYCOMB-320: move ace-ip-and-eth case nodes into containerMarek Gradzki6-38/+47
Change-Id: I6193d84363d60123571a72021ed8ad6e1d334a9b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-14HONEYCOMB-317 - L2 entry model updatesv1.17.01-RC0Jan Srnicek4-34/+139
Require either filter to be specified or outgoing-interface reference Change-Id: Iec72348b04520cb3eb6717f970355bd0f52330f7 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-14Update postman collection after HONEYCOMB-314 and HONEYCOMB-177Marek Gradzki1-2/+2
Change-Id: Ic93da59b70c453c3dc4569421d9247dd08ebd815 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-14HONEYCOMB-314: expose tag for tap and vlan interfacesMarek Gradzki7-7/+56
It is possible that interface creation for will succeed in VPP, but Honeycomb crashes or request timeouts. In such situations, interface name stored in Honeycomb's cache will not be updated. After restarting Honeycomb, interface name will be generated. In such cases Honeycomb user can use tag to identify interface. Change-Id: I673c52e49dc788c761af471399d2ac839f62be04 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-14HONEYCOMB-177: expose device instance attributeMarek Gradzki2-6/+24
Change-Id: I7a1a5a2d338c39bb7a5f869660fcce06ef59515d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-14Span model update reflecting api changesJan Srnicek9-138/+432
Allows use of Rx/Tx/Both Span states Allows setting state per src-interface Change-Id: I07346bf3976be34aa85336bdeedff94f83a3173c Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-12-13HONEYCOMB-151: update postman collection with RPC examplesMarek Gradzki1-0/+73
Change-Id: Ieb804d73994daad9708be616507e174db343a230 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-13HONEYCOMB-151: add support for cli_inbandMarek Gradzki5-0/+139
Depends on https://gerrit.fd.io/r/#/c/4256/ Change-Id: I5b7a218751ee680de076e5c4ae0d6cbe31b3ec06 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-13Augment vxlan to support decap-next: YANG modelHongjun Ni5-75/+147
Change-Id: I97571254c7da7d010d542515864d8f39ea1499d1 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-12-09HONEYCOMB-129: add support for setting mtuMarek Gradzki4-37/+204
Also updates postman collection with examples of set mtu request. Setting mtu is not supported for local0 interface: affected requests from the collection were updated. Change-Id: I709192e328abad7786d3c87426b00106dac42b73 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-09HONEYCOMB-127: add routing operational readMarek Gradzki4-10/+222
Change-Id: I52cdeb6a35e04e8626992a027ad230b9b15fce96 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-09Update classify delete table handling after VPP-206Marek Gradzki3-0/+3
In case of low-level classfier model, single table is removed. No change in case of ietf-acl model: whole chain of tables is removed. Change-Id: I94ca5d3ecaf04efc35b67fb5f878cbffc0c100cc Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-07Set hc2vpp version to 17.01 to align with vpp releaseMarek Gradzki3-6/+6
Depends on https://gerrit.fd.io/r/#/c/4137 Change-Id: I11cc690bf5d12db5c7223f46a19c3f555213aead Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-07Enable SubInterface factories in V3poModuleMarek Gradzki5-43/+48
Change-Id: I819f54671139081e5eb600bff3ac98cb7949eaa0 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-07HONEYCOMB-304: provide separate guice module for ietf-acl implementationMarek Gradzki16-106/+331
Current IETF-ACL implementation is using vpp-classfier. In the future, acl implementation based on acl plugin is going to be supported. Current implementation is going to be deprecated, then removed. In order to switch between acl implementations, ietf-acl configuration needs separate guice module. After fixing nested augmentation support (HONEYCOMB-302), current implementation can be moved to separate hc2vpp module (HONEYCOMB-308). Change-Id: I1668c274c03f9a750654cb0f96ec328af09f89f5 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-07Update sw_interface_span_enable_disable translation after vpp api changeMarek Gradzki1-1/+1
Api hcange was introduced by https://gerrit.fd.io/r/#/c/4049/ Change-Id: If1f3a0ce301369f3e6cb5bde8553feb9dd2ed881 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-11-29Rename vpp-acl model to vpp-classfier-aclMarek Gradzki40-126/+126
Current acl implementation uses vpp's classfier. The vpp-acl model will be used to expose new acl api. Change-Id: Ia1e0f7acf00e1284e92a56f6f1c7f43538d394ad Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-11-27Removed references to old v3po pluginJan Srnicek1-1/+1
These(maven part) were causing distribution export old v3po.json file, which would cause runtime error due to non-existing keepalive-delay property Change-Id: Icde6a8187ff7b1424df18521c2de8279fa7ad33b Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-25HONEYCOMB-277 - Keep-alive timeout exportedJan Srnicek5-7/+33
Timeout exported to configurable property Change-Id: Ic095469be4d95f6726fdcabe17a6d2e4e51ba856 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-24HON-3 - Address logic refactoringJan Srnicek3-35/+33
Ipv4/6 address logic refactored to not use InetAddresses.fromLittleEndianArray to prevent unnecessary reverting of address arrays after fix introduced by VPP-132. Removed unused ***reverted variants of conversion logic. Tested with these plugins - Lisp - V3po - Nat Change-Id: I6a0728f8b3dffd04e2edd822ec61542216cca824 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-24HONEYCOMB-289 - Type-aware read customizersJan Srnicek4-71/+75
Refactoring due to https://gerrit.fd.io/r/#/c/3898/ Change-Id: I3ddcc06aca0a730db9fd727a3d2b10cd085f870e Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-24HONEYCOMB-275 - compilation error with HC runner and setUpJan Srnicek30-372/+361
Refactored setUp() method in WriteCustomizerTest to not trigger http://errorprone.info/bugpattern/JUnit4SetUpNotRun while used in combination with @RunWith(HoneycombTestRunner.class) Change-Id: Iba56b39399ddd7678dda97e094e935a3f02dd22c Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-23Update IP4 address read order after VPP change (3816)Marek Gradzki5-34/+20
Change-Id: I2e4a555ca8373b8bed9bf00d4a61fd59b1810bbc Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-11-23Merge "HONEYCOMB-278 Expose basic CRUD for port mirroring"Marek Gradzki6-18/+372
2016-11-23HONEYCOMB-278 Expose basic CRUD for port mirroringMaros Marsalek6-18/+372
Change-Id: I9ed339fd8c7daf1433709dcd862e64b690c5d3da Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-11-21Fix bridge-domain and L2 of (sub-)interface orderingMarek Gradzki1-3/+6
BD creation should go before L2 creation. Change-Id: I155234a6d8babbf419b661db9a2fb948ada113bd Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-11-19Post split cleanupMaros Marsalek174-626/+620
- change groupIds - change packages - update poms Change-Id: I343c5a292a67de1dd50687870ca4ab5b7276e93e Signed-off-by: Maros Marsalek <mmarsale@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-11-08Fix postman collection after vrf-id renameMaros Marsalek1-4/+4
Change-Id: Iaf6c5ce430dd793a9cfff5527b910a79eab9aa2e Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-11-08HONEYCOMB-270 Add isPresent() to Readers/CustomizersMaros Marsalek2-3/+3
So that they can influence whether empty data is to be considered as present + Move registries implementations from util to impl + Introduce DelegatingReader trait + Extend GenericReader where possible to reduce duplication Change-Id: I5a416acd0c4eab1fbc30fcbe585719991dbe9215 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-11-03HONEYCOMB-285 - Cache scope for sub-interface addressesJan Srnicek2-9/+122
Same as for interface addresses, these addresses must have caching scope of their parent sub-interface Change-Id: I31a8d123e02a99e592181c198f69a34b0be910e5 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-03HONEYCOMB-259 - CacheKeyFactoryJan Srnicek3-18/+25
Provides logic for creating scoped keys Change-Id: I126bcb9255b4f8a3f2585f50e6e718948581e7f0 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-03HONEYCOMB-281 Loopback interface managementMaros Marsalek7-4/+306
Change-Id: I7e4d817bb7dfe9ccd779e59347c956233c012e4a Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-11-01HONEYCOMB-272: bump mockito version to 2.2.9Marek Gradzki2-45/+7
ArgumentMatchers.any() does not match null anymore, so some of the tests has been updated. Change-Id: I5de0fdfe87fc8e5c8ce24bfae8daeaba032195ff Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-31Add support for ipv6 vrfMarek Gradzki3-24/+30
Change-Id: I3372d4156a19157ca431cb29c23de33161f6cfc0 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-31HONEYCOMB-70: add control ping to vpp-stateMarek Gradzki4-4/+31
Change-Id: I7f02841d899465fd2156db0bb79fcc490cd4929f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-31Update l2 constaint in v3po.yangMarek Gradzki1-5/+8
Permit BVI interface to have IP address assigned Change-Id: I86f39b1e07fa00f05328e293377e0b84c23ebe1a Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-28HONEYCOMB-274 Fix checkstyle license checksMaros Marsalek9-15/+97
Change-Id: I9a7783bf072b2e2396f0fa1a784bcb57adb689b4 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-10-28Honeycomb-73 Extensible initializers for v3poMaros Marsalek33-888/+501
Change-Id: Ic148b22f9bc48ff29bf67894e2cecafa29772db7 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-10-21Fix ipv4 neighbor initialization (NPE)Maros Marsalek1-18/+17
Change-Id: I657db9617f3477201ccd6f1a8743b1843e99ba16 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-10-21Remove unused builders for union types generated by yangtoolsMarek Gradzki6-149/+0
Generated builders are not used in the runtime. Starting from ODL boron, strings that represent union types, are processed according to YANG RFC, that is in the order they are specified in the "type" statement, unitl a match is found. That makes builders for union types obsolete. Change-Id: If9289a0dde34f345a672103d2461a3acd00e2afd Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-21HONEYCOMB-264: cache classify table deleteMarek Gradzki20-87/+797
Change-Id: I8b43f9a6220b90aaed5d85d60c0d2095518d6226 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-21Fix NPE in VppInitializer occuring when no BDs are configuredMarek Gradzki1-13/+14
Change-Id: Iafebdc5dcc978313daf9818907fc27b2909ecc04 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-20HONEYCOMB-268: Fix order of union types in vpp-indexMarek Gradzki19-86/+81
ODL does not uses builders for unions anymore. Unused builders will be removed in subsequent commit. Change-Id: Ib4e77fed19f591f6f0dc836d66067a2827d2e202 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-19HONEYCOMB-234: L2 egress ACL supportMarek Gradzki31-166/+453
Change-Id: I2912f1265af7487ceed1be01ac489ba765311a97 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-18Make ip-version mandatory for all ACEsMarek Gradzki3-13/+67
- ip-version was mandatory only when mixing l2/l3 rules in one ACE (vpp api limitation). It needs to be provided also in case of ACEs that define l3 only rules (we allow mixing ip4/ip6 ACEs in one list). - updates postman collestion with example of L4 only acl Change-Id: Ifb863208c21a504cd61843f7540341bc35a6174a Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-17HONEYCOMB-218: add support for TCP/UDP port rangesMarek Gradzki18-139/+489
* can be used in combination with any other L2/L3 rule. * assumes no ip options / extension headers * provides naive implementation (vpp classfier api limitation): every (src, dst) is mapped to single classify session. Change-Id: Id6aa249b3e19f0aa47b9e15b5477d56bc70bee0e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-14HONEYCOMB-229 Introduce NAT to HCMaros Marsalek1-0/+6
Reflects SNAT from VPP: - 1:1 Static IPv4 mapping - interface in/out NAT feature management Bonus: - Support presence containers in infra Change-Id: Ieb38526f83edbae5e605d5c7e39bb22bbafc50e5 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>