summaryrefslogtreecommitdiffstats
path: root/nat
AgeCommit message (Collapse)AuthorFilesLines
2019-04-08HC2VPP-406: fix build errors after ODL bump to neonMichal Cmarada8-39/+38
This fixes build issues after ODL bump in Honeycomb (HONEYCOMB-443). Change-Id: I3bf203dd60d12057595b15ce1ad59302dc14e2a0 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-04HC2VPP-404: Update package names for JVPPMichal Cmarada43-124/+115
Fix package names for JVPP so it no longer contains vpp since it has been migrated outside of VPP project. Change-Id: I1e7a3fe4713beaaf7a1a0b41e7180d03bb7b74e5 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-28HC2VPP-404: migrate all JVPP APIs from vpp to jvppMichal Cmarada1-2/+2
in order to switch to the new JVPP we need to update all JVPP dependencies to new groupId. Change-Id: Icd8c07f7553a04111cf5a768dfbb26094ff99db8 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-25Bump jvpp version to 19.04-SNAPSHOTMichal Cmarada1-1/+1
Changes - sets version of VPP package dependencies to 19.04. - updates vpp-plugins to vpp-plugin-core dependencies for debian Change-Id: Ida51151910f217248aa761b59f8cfdb3861b3f26 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-24Bump hc2vpp version to 1.19.04-SNAPSHOTMichal Cmarada3-8/+8
Change-Id: I5f2c8635eab44f5d7b74514f3a2f7b4218b3369c Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
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ál33-108/+103
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 Cmarada3-8/+8
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-27HC2VPP-341: remove v1.0/v2.0 postman collectionsMarek Gradzki1-853/+0
Hc2vpp examples are using now v2.1 format. Change-Id: I945c03f8b80a4a74cf7064c566205ae5dc334d89 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 Gradzki3-8/+8
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 Gradzki26-168/+150
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-31nat: postman collection cleanupMarek Gradzki1-13/+13
Change-Id: I25a7742289753bd0bb2ef49d4a1e609cf8570a9d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-05-31Convert NAT postman collection to v2.1.0Marek Gradzki2-807/+2162
Old collection was renamed to nat_postman_collection_v1.0.0.json Change-Id: I34994f4e3bfaa8e6937b318d2a4c059a1523dbfc 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 Gradzki14-84/+87
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-323: update postman collection after NAT model updateMarek Gradzki1-17/+17
Change-Id: I2c767664f0178318a54ab1b4e14a7f7c92bf9c6e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-05-17HC2VPP-321: bump nat model to ietf-nat@2018-02-23.yangMarek Gradzki29-1525/+2838
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-20nat: update pool-id for Nat64 in the postman collectionMarek Gradzki1-2/+2
Removes conflict with Nat44 examples. Change-Id: Ib61518d63e90718233cb72003ae2e5082105e86f Signed-off-by: Marek Gradzki <mgradzki@cisco.com> (cherry picked from commit de4df80104201c88edc089a5e43c41661153b719)
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 Gradzki3-8/+8
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-04-03api: update copyright to match revision informationMarek Gradzki4-4/+4
Change-Id: Ib7825ea727fd8105dd679587059333888caeef5c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-04-03Fix interface-nat@2017-08-16.yang revision informationMarek Gradzki1-1/+1
Change-Id: Ie8d6faf941e5b4a574ad51f653cde71f1f3dacc2 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-04-03Update metadata of hc2vpp YANG modelsMarek Gradzki4-5/+101
Adds organization and contact statements. Includes copyright in the description of modules. Fixes minor formatting issues. Change-Id: I9fa90c24e956d5cb2c3fde8621ed289f383501ac Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-03-22nat: fix issues found by pyangMarek Gradzki4-29/+26
Change-Id: Ic4375e85684a035323499963172e59042b0f3dcf 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 Gradzki3-9/+9
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 Gradzki3-9/+9
Change-Id: Id2b6e7c5259190808b7093dc18538427e4034fc0 Signed-off-by: Marek Gradzki <mgradzki@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-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 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-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 Gradzki44-463/+451
Change-Id: If4c7f2f1fc52f1ee64ed95900a362063207def27 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-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>