summaryrefslogtreecommitdiffstats
path: root/nat/nat2vpp
AgeCommit message (Collapse)AuthorFilesLines
2019-01-14HC2VPP-300: Unify namespaces of V3PO modelsMichal Cmarada6-18/+18
Change-Id: Ibf74c4c1ea159bfcbe1de8bef4dac9bde3cb9ffd Signed-off-by: Tibor Král <tibor.kral@pantheon.tech> Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-14HC2VPP-300: Unify namespaces of VPP-Common modelsTibor Král1-1/+1
Change-Id: If39a2f4d1db07a406c4552cc967f9308a2163d61 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2019-01-14HC2VPP-300: Unify namespaces of NAT modelsTibor Král29-100/+95
Change-Id: If535c40220b61b7ae3c8d4616395b1bad197e266 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2018-11-12Bump jvpp version to 19.01-SNAPSHOTMichal Cmarada1-1/+1
Also sets version of VPP package dependencies to 19.01. - fixes several changes made in VPP API Change-Id: Icca406f414bce30745026573c78a69eea09dc566 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2018-10-22Bump hc2vpp version to 1.19.01-SNAPSHOTMichal Cmarada1-3/+3
Change-Id: Iedb7935735cc9836fb1cb11856d38ec1d090e6ba Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2018-09-28Fix bugs after bumping to Fluorine ODL dependencies (HONEYCOMB-433)Michal Cmarada4-8/+8
Change-Id: I99b630f97144770849679a04efccaf7fc9868cb6 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-08-23HC2VPP-379: move NAT validation code out of customizersMarek Gradzki14-115/+447
Use Validator interface introduced by HONEYCOMB-431: https://gerrit.fd.io/r/#/c/14022/ Change-Id: I9e4c8d59f299ed7da4a93bbdc70c81f2bea93606 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-07-20Bump jvpp version to 18.10-SNAPSHOTMarek Gradzki1-1/+1
Also sets version of VPP package dependencies to 18.07. Change-Id: I4be0a5a9217c3e059125e7eb5a36170d02f12b88 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-07-20Bump hc2vpp version to 1.18.10-SNAPSHOTMarek Gradzki1-3/+3
Change-Id: I6ba9d0017cc42a4cafe3790e563e206d33c211b3 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-07-04HC2VPP-367: update ietf-nat model from 2018-02-23 to 2018-06-28Marek Gradzki25-147/+147
The 2018-06-28 revision: - removes mandatory statement for limit-per-subscriber (previously commented out due to HC2VPP-328), - removes logging-enable leaf that was not supported by hc2vpp Change-Id: I36c2b05029331db03e37c016a31b32d6abf4ac06 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-05-31HC2VPP-325: use ip-prefix instead of ip-address in ietf-nat@2018-02-23.yangMarek Gradzki11-70/+78
Only /32 prefix for IPv4 and /128 for IPv6 are supported. Change-Id: I875b1eb6c2cb43da54de0a731aeeb9757b39c39c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-05-17HC2VPP-320: ensure at most one policy is configured per NAT instanceMarek Gradzki3-2/+152
ReflexiveListReaderCustomizer is not used due to HONEYCOMB-437 Change-Id: I62755aaedd6e179b349ec47e4a304399c4fa18cd Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-05-17HC2VPP-322: ensure at most one nat64-prefix is configured per NAT instanceMarek Gradzki3-2/+84
Change-Id: Ic52b386475836e8f1a749cccaafe3bb4e192d0b7 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-05-17HC2VPP-321: bump nat model to ietf-nat@2018-02-23.yangMarek Gradzki26-442/+439
Uses ietf-nat module as defined in https://tools.ietf.org/html/draft-ietf-opsawg-nat-yang-14 Modifications to original model: - ip-address is used instead of ip-prefix (draft is not clear, see HC2VPP-325). API changes relevant to HC/VPP: - nat-config and nat-state merged into nat container - nat-instances and nat-instace renamed to instances and instance respectively - external-ip-address-pool has new parent - policy list - port-type choice was removed, port is now defined using start-port-number and end-port-number leaves. Missing end is equivalent to single-port-number case from the older version. TODOs: - HC2VPP-322: single nat64Prefix per NAT instance - HC2VPP-323: update postman collection - HC2VPP-324: update CSIT tests. Out of the scope of NAT model update: - HC2VPP-326: support for nat-type handling (vpp-nat model might become obsolete) - HC2VPP-327: support external-realm container (requires adding augmentations that are alredy present in the interface-nat model). Change-Id: Ie229a55b0a3f6ee3f8c97f4fd13c54a797a62438 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-05-11NAT: fix port readMarek Gradzki2-25/+70
Change-Id: I2aceb52f9c3bace7107f203ed717fe7d1c649328 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-04-20Forbid delete of default NAT instanceMarek Gradzki1-0/+7
NAT instances are mapped to VPP's VRFs. Default NAT instance (id=0) is mapped to default VRF, which is allways present in VPP. This patch forbids deleteion of default instance to be consistent with VPP behaviour and NAT instance reader implementation. Change-Id: I71aa6986395e4ba67baaa75d90905b450434aca4 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-04-09Bump jvpp version to 18.07-SNAPSHOTMarek Gradzki1-1/+1
Also sets version of VPP package dependencies to 18.07. Change-Id: I87d5f538891d946b3a803afa987ab39c609f1ae1 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-04-09Bump Hc2vpp version to 1.18.07-SNAPSHOTMarek Gradzki1-3/+3
Change-Id: I111e463207f1984cf27a557c2921df6ef62ea5b8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-04-09HC2VPP-283: cleanup honeycomb dependency versionsMarek Gradzki1-7/+0
Introduces honeycomb.version property in hc2vpp-parent and adds various honeycomb artifacts to impl-parent to reduce work when bumping honeycomb version. Change-Id: I2f31f255aa5234c6890073b93b11f93e5cd444f7 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-03-19HC2VPP-289: fix 802dot1 identifiersMarek Gradzki6-18/+18
Indentity names should not start with number, so prefix them with '_'. Change-Id: Ic941410da4c5401a646be94679c82e7c5c96e646 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-11Bump jvpp version to 18.04-SNAPSHOTMarek Gradzki1-1/+1
Also sets version of vpp package dependencies to 18.04. Change-Id: I0b3faf6418ce9055ad05da41ba4fb022992f3784 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-10Bump hc2vpp version to 1.18.04-SNAPSHOTMarek Gradzki1-4/+4
Change-Id: I785627fbe4a1af69feb1f81aacefb33ba0d852b6 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-30Remove dead stores and unused fieldsMarek Gradzki1-2/+0
Change-Id: I3ad4e1f1aae9ed52911acbed11d931349ad94da9 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-20Refactor IP translators to use IetfInetUtilMarek Gradzki1-1/+1
Use efficient factory methods for ietf-inet-types DTOs where possible. Also cleans up some duplicated and unused code. Change-Id: I58f4163edba0dcd30e5e044cf701788446d86a0f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-04Bump jvpp version to 18.01-SNAPSHOTMarek Gradzki1-1/+1
Also sets version of vpp package dependencies to 18.01 Change-Id: I9d84915e206cc16c87479f94d4b8738899479cea Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-04Bump hc2vpp version to 1.18.01-SNAPSHOTMarek Gradzki1-4/+4
Change-Id: Id2b6e7c5259190808b7093dc18538427e4034fc0 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-28DumpCacheManager: make dumpParams optionalMarek Gradzki5-15/+15
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 Gradzki3-0/+281
Also updates NAT postman collection with nat64 prefix configuration examples Change-Id: I61cb12a2a91be92defccf55b82dc8658d185195f Signed-off-by: Marek Gradzki <mgradzki@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-24HC2VPP-222: adapt hc2vpp to snat->nat plugin rename in vppMarek Gradzki40-429/+417
Change-Id: If4c7f2f1fc52f1ee64ed95900a362063207def27 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-16HC2VPP-105: interface-nat.yang NAT64 supportMarek Gradzki20-60/+60
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>
2017-08-16HONEYCOMB-386 - Hc2vpp Customizers updateJan Srnicek7-58/+4
Utilizes new default update implementation Change-Id: I9bf8473336274ba5fcfc18804f7b414937b3708e Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-08-14HONEYCOMB-381 - Usage of ShutdownHandler for jvpp componentsJan Srnicek1-10/+7
and notification producer Change-Id: I70e749de5b290c84e86a28625d5ec79c98de80f2 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-08-14HC2VPP-105: add support for NAT64 BIB entries configurationMarek Gradzki10-48/+206
No read support due to issues with nat64_bib_dump Change-Id: I851c4fc5084d6e29d622df2855cf8d47ba147015 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-04Adapt hc2vpp to ODL Carbon bump in honeycombMarek Gradzki1-1/+1
Depends on https://gerrit.fd.io/r/#/c/6924/ Change-Id: I80597cb2846d174a548a5abf1e4add0ba0e17186 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-02HC2VPP-197: translation layert for post routing NATMarek Gradzki17-258/+378
Change-Id: Icef6682fbc7a18a1e52953270ad26f6b3b7676eb Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-02HC2VPP-197: update interface-nat model to support post-routing NATMarek Gradzki18-57/+57
Change-Id: I009d790e21ff5019f94145e1aa1e08f87b6729ca Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-07-25HC2VPP-180 - Doc coverage generatorJan Srnicek1-2/+2
TODO - links to specific vpp api section(now points just to section with apis) TODO - links to specific java binding code(now points to class thats doing binding) TODO - operational coverage(ASM does not support lambda processing) TODO - generate coverage adoc links Change-Id: I44c85012da3bd2e7cdd41930753e5aae6955cd7b Signed-off-by: Jan Srnicek <jsrnicek@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-07-07Bump jvpp version to 17.10-SNAPSHOTMarek Gradzki1-1/+1
Also sets version of vpp package dependencies to 17.10 Change-Id: I4e139ff2d485933c0de3339db50714a5c72e0a9e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-07-06Bump hc2vpp version to 1.17.10-SNAPSHOTMarek Gradzki1-4/+4
Change-Id: I744c3bc4962295b307b718764adb14035ee13d1d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-07-06HONEYCOMB-360 - Use binding-init module instead of whole distro coreMarek Gradzki2-2/+8
Change-Id: I86eb100ca96169c7cf8df7ba9f2a1c7e3e75d77f Signed-off-by: Jan Srnicek <jsrnicek@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-07-01Change minimal-distribution to minimal-distribution-coreMarek Gradzki1-1/+1
The minimal-distribution-core was introduced by HONEYCOMB-373. Adoption is needed to remove indirect dependencies on various HC infra yang models to decrease footprint (HONEYCOMB-358 loads yang models based on maven dependencies). Change-Id: Iba639efb893deb8d51de09009750542f78dfdd50 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-06-29HC2VPP-152: nat for sub-interfaces translation layerMarek Gradzki12-14/+569
Change-Id: I7d3a52097975f38c1cd74426d5ec15f80274a56c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-06-09Update module tests after introducing YangDAGMarek Gradzki1-13/+13
Change-Id: I3ce66e2e1fbed7b9a333382c664b5dd8ed501df0 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-05-16HC2VPP-145: fix snat mapping updateMarek Gradzki3-7/+37
Change-Id: I51e8a3e6d62b9c0dacf03d2148b813309fe0dfc4 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> (cherry picked from commit 923dac1cedec9ad7a215d128d54eb77fd85562ae)
2017-04-04Bump hc2vpp version to 1.17.07-SNAPSHOTMarek Gradzki1-5/+5
Also bumps honeycomb and vpp dependencies Change-Id: Ice9863b8afc1895d43b97953ed6d93e739730f5e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>