summaryrefslogtreecommitdiffstats
path: root/nat/nat-api/src
AgeCommit message (Collapse)AuthorFilesLines
2018-05-31HC2VPP-325: use ip-prefix instead of ip-address in ietf-nat@2018-02-23.yangMarek Gradzki2-10/+6
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-321: bump nat model to ietf-nat@2018-02-23.yangMarek Gradzki3-1083/+2399
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-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>
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-24HC2VPP-222: adapt hc2vpp to snat->nat plugin rename in vppMarek Gradzki2-5/+5
Change-Id: If4c7f2f1fc52f1ee64ed95900a362063207def27 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-16HC2VPP-105: interface-nat.yang NAT64 supportMarek Gradzki1-0/+20
Change-Id: I22b391577e11bc33dbe03f643fe6968262f0712f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-14HC2VPP-105: update NAT models to support Nat64Marek Gradzki1-0/+47
Nat api in VPP (https://wiki.fd.io/view/VPP/SNAT#API_3) uses different api calls for nat44 and nat64. While ietf-nat model allows to distinguish between static nat44 and nat64 mappings, external-ip-address-pool needs to be augmented with nat pool type. Change-Id: I2ce1fa3a8241c337c617bcbb77ec5eb2a33044e4 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-02HC2VPP-197: update interface-nat model to support post-routing NATMarek Gradzki2-44/+63
Change-Id: I009d790e21ff5019f94145e1aa1e08f87b6729ca Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-06-16Rename yang files to match model revisionMarek Gradzki4-0/+0
Also order of revisions was sorted starting from most current. Change-Id: I21fd35cfdb1cc5601b3fb40c9f3755bd3b995b14 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-06-15Fix typo in interface-nat.yangMarek Gradzki1-1/+1
Change-Id: I2a38b72f43e61f7fc9a11d0e908996d284e96026 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-06-15HC2VPP-152: yang model for subinterfaces NATMarek Gradzki1-0/+36
Change-Id: I249b34a42b7e9c9a38fbef9d268c658943000394 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-14HONEYCOMB-229 Introduce NAT to HCMaros Marsalek3-0/+1182
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>