aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-11-20fixing centos container images to point cni-proxy fixHEADmasterKuralamudhan Ramakrishnan2-5/+5
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: Id1a62ace13c363274e4b5950f76fa9d8c5386d5f
2020-11-05adding multus-daemonset json fixesKuralamudhan Ramakrishnan1-1/+1
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: If755ecf753c761db2a98e076529fcef445117648
2020-11-02fixing container images to point cni-proxy fixKuralamudhan Ramakrishnan2-5/+5
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: Iaf73bfe574d0656a5108a29e5acc3d94e759c501
2020-10-06fixing interface names for the cni-proxy related cni pluginsKuralamudhan Ramakrishnan7-1/+4355
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I136c26213840881087ac18bac0778046807632ac
2020-09-23fixing the README.mdKuralamudhan Ramakrishnan2-10/+10
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I3d3499862a472db76d801b9ee9ab520a4b521a15
2020-09-23updating the demo/sfc-setup README.mdKuralamudhan Ramakrishnan1-0/+17
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: Ic0235ddc6686637b0af5582810b426886204a6e6
2020-09-23adding sfc imagesKuralamudhan Ramakrishnan5-0/+0
Change-Id: I78a7a01697c36aafdbd96acc2805f5bb5a66d582 Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
2020-09-23fixing the sfc-setup readme.mdKuralamudhan Ramakrishnan8-7/+9
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: Ib5e9b6f3564e9ab3f71433a98c5438f11e1f9cb0
2020-09-23adding fixes to deploy yamlKuralamudhan Ramakrishnan6-26/+1090
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I37d0c1066f33b0a35bbf47545cc001737ee68b2f
2020-09-22fix the broken links in development.mdKuralamudhan Ramakrishnan1-11/+11
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I6adde4314caa007af32804f1146a777c71a4ca47
2020-09-22adding configuration.mdKuralamudhan Ramakrishnan1-0/+20
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: Ia591e36d5e4e8a030579fea54f686cfacf184585
2020-09-22adding development.mdKuralamudhan Ramakrishnan1-0/+91
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I9d295c7ae9f530c2000ec4404ad417532376efa3
2020-09-21adding documentationsKuralamudhan Ramakrishnan9-199/+546
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I2b4c04275c5acb69a604009ae901d741387c5f93
2020-09-18update the documentationsKuralamudhan Ramakrishnan11-525/+287
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: Iee2ed22a5002bffbd629188acf1ffcc60802c488
2020-09-18adding sfc demo with icn sdewan cnfKuralamudhan Ramakrishnan17-0/+1881
- vagrant is used to create 5 VMs master, minion01, minion02, TM1 and TM2 - node.sh enables nested VTx - README.md documentated all steps to bring up the sfc Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: Id382f734dedb50354e7986fbf954663b374c1ff3
2020-09-18adding the example folderKuralamudhan Ramakrishan6-0/+915
- adding vlan and provider network Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: Ic97c61b38b51a7391a4d4b1c2e918c6373bff3b4
2020-09-17adding centos 8 dockerfile for ovn & ovn4k8s-nfv imagesKuralamudhan Ramakrishnan4-11/+98
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: Ib161ea39fc6da9a7649142271a781b3140068d15
2020-09-17adding gwipaddress features in network annotationKuralamudhan Ramakrishnan6-12/+76
- check defautgateway is true only for one network - first network with defautgateway is only configured, rest is ignored - add node network and ovn4nfv0-* route info for eth0 interface Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I078dee22627b2fa92e34b6cc4fa2ec7c8cd58220
2020-09-17adding the sfc featuresKuralamudhan Ramakrishnan4-11/+164
- including the network/iface.go file - adding the default gw features in pod network namespaces - fixing insync message bug Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I9b595c5cae415cc594f7682f1ffdbdf6291ea909
2020-09-17Route based chainingRitu Sood12-46/+967
1) Adding controller for route based chaining 2) nfn agent code to insert route in container namespace 3) Calculate routes based on the Chaining Routes Based on the Ritu(ovn4nfv-k8s-plugin committer) patches Co-authored-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I6757f269a5df7d98d650f273468c6ccbcc055d3e
2020-09-17Adding node interface, SNAT and OVN Node switch portKuralamudhan Ramakrishnan17-157/+592
- Adding nfn proto for node interface MAC and IP address - Adding node switch ports in NFN Operator - Adding grpc client in nfn agent to get mac and IP address for node interface - Adding feature to create Node interface with OVS internal port - Make sure pod controller requeue the pod request for empty node field in pod spec - Unique node interface name using SHA and maintain 15 charactor for OVS switch port - Adding SNAT for default interface in each node - Adding iptables modules for SNAT rules Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I6cfa36e45007e796eb651345f9f0751329defcf7
2020-09-17Adding cnishim and cniserverKuralamudhan Ramakrishnan15-361/+802
- inspired from ovn-kubernetes and sdn openshift - cniserver & cnishim concepts - removed cni binary to depend on the host ovs binary installation - encapsulated all the binaries within the ovn and ovs containers - ovn4nfv-k8s cni server run along with nfn-agent - cnishim act as the httpclient and cniserver as httpservers - cnishim wrap all the cni commands to cniserver - cniserver do the actual network pumping work and send result back to cnishim - cnishim print the results as per the cni spec requirement - currently supports only debian installation for ovn daemon - support for debian kernel installation - Consolidated all yaml into single ovn4nfv-k8s-plugin Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I1e2b114d90f717baa2ee94ff379c849d73b2754e
2020-09-17Adding the ovn containerizationAuthor Name4-21/+527
Referred multiple works on ovs and ovn ovs: https://github.com/openvswitch/ovs/tree/master/utilities/docker ovn: https://github.com/ovn-org/ovn/tree/master/utilities/docker ovn-kubernetes: https://github.com/ovn-org/ovn-kubernetes/tree/master/dist/images kube-ovn:https://github.com/alauda/kube-ovn/tree/master/dist/images Co-authored-by: Aliasgar Ginwala <aginwala@ebay.com> Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I3aee1a9f4ebce702ca22ec2ecba35463523af892
2020-09-17adding primary network featuresKuralamudhan Ramakrishnan10-405/+740
- adding docker build bugfixes - Removing the dependence on Multus - ovn4nfv-k8s CNI will be default or cluster networking - ovn4nfv-k8s creates ovn overlay mutli-networking using pod annotations itself - remove the outdated unit test Based on the Ritu(ovn4nfv-k8s-plugin committer) patches Change-Id: Ic48bd11d746e6339075fb3ba33f12463bb3f218d Co-authored-by: Ritu Sood <ritu.sood@intel.com> Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I9702bbd2d4aa23157052258ef6b363bc7b472a63
2020-03-26refactoring Dockerfilev0.1.0Kuralamudhan Ramakrishan1-10/+18
- building with latest golang version v1.14 - Removing the dependence of CI golang version Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: Id1ddd154a5e5cf00937ed5adbb7cd8a90d800447
2020-03-26adding direct provider networkKuralamudhan Ramakrishnan11-168/+811
- update nfn.proto - update direct provider network crd and apis - modified nfn-agent to include the direct provider network - modified nfnNotify server to include the direct provider network Change-Id: I9c2d4cc62178088c8908c50c2b734772ed7f99f4 Co-authored-by: Ritu Sood <ritu.sood@intel.com> Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
2020-03-16Merge "Update Readme"Trinath Somanchi1-21/+101
2020-03-16Merge "Update Dockerfile for nfn-agent"Trinath Somanchi2-1/+7
2020-03-16Merge "Set vlan interface up"Trinath Somanchi1-0/+5
2019-12-29Adding generated code for service chainingRitu Sood16-21/+1008
API and generated code for route based chaining CRD Change-Id: I631ec38c08c76059f6e742c5c241763b33597bd4 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-12-26Update Dockerfile for nfn-agentRitu Sood2-1/+7
Change-Id: Id6091d5a439eff3cde1ac0eeb4cb4541206c955e Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-12-26Set vlan interface upRitu Sood1-0/+5
Change-Id: I5b9467755b1a996febfa25dbcac14d9786ab58a8 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-11-20Add Provider Network CRD controllerRitu Sood4-3/+236
CRD controller watches for Provider Network CR's and sends messages to all the nodes that needs to be configured for provider network, if subsribe message was already received from the agent running on the node. Change-Id: Idc3e2703a309113b325a2fb7c8eb244a02babeb3 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-11-20nfn agent for configuring nodesRitu Sood2-1/+217
nfn-agent runs on all nodes in cluster and on starting subscribes for notifications from gRPC server and waits for message to configure provider network by adding vlan interface and ovs-bridge on the node Change-Id: Ibec7d0fda28db7b444900e13c705d15cf012aa48 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-11-20Update OVN utils to add provider network supportRitu Sood4-41/+284
Currently provider networks support only VLAN based networks. Added functions for VLAN and ovs bridge. Change-Id: I63ac7266aac92021ee3a44f49644a8a79ce4fed6 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-11-15Merge "Add a check for network creation"Trinath Somanchi1-3/+2
2019-09-29Adding gRPC proto and serverRitu Sood8-14/+904
gRPC server is required to send updates to nfn-agent running on all the nodes in the cluster, to setup provider networks as defined in the provider network CR. This patch includes proto file and generated code along with gRPC server code Change-Id: I891629d84932ae662ba7545ebfe4d9921448fdc1 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-09-29Add a check for network creationRitu Sood1-3/+2
If network already exists consider that as not an error Change-Id: I279338e6e4d6f6ad0d7417bcabbd3f2027ff808e Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-09-27Add Generated code for CRDRitu Sood27-0/+2017
Adding generated code for Network and Provider Network CRD. Change-Id: Iff21107807ba1b5d5aafc3a756edc38c70003332 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-09-25Update ReadmeRitu Sood1-21/+101
Updating readme to reflect new functionality Change-Id: I54c2a024a74c142b854bde8a4eeb1fb5a1a49a84 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-08-29Add check for annotation presenceRitu Sood2-5/+3
If annotation is found on pod then pod is already processed, stop processing. This is different from "Failed to add ports" error. Change-Id: I101df641c150e007146bc1aeda9c5b372be329ca Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-08-16Add CRD Controller for NetworkRitu Sood8-33/+357
Add CRD controller functionality for Network creation and deletion. Related generated code is uploaded in patch: https://gerrit.opnfv.org/gerrit/#/c/ovn4nfv-k8s-plugin/+/68324/ Change-Id: Ibd3e652edc56aa1084f684438597e1b978977bbf Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-08-16Add types and generated code for CRDsRitu Sood13-5/+1063
Adding Network CRD and Provider Network CRD generated code as per the spec. https://wiki.onap.org/display/DW/K8s+Plugin+Network+Related+CRD%27s+for+R5 Change-Id: If75885205830cf2cef197754ea8f00b61095a4a1 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-08-15Use controller runtime and operator sdkRitu Sood22-1529/+1447
Changing the framework to use controller runtime and operator sdk. This allows to add CRD controllers for Network, Provider Network etc in the same operator. Binary renamed to nfn-operator (Network funtion networking). Change-Id: Ic25a3c3f5f1418fc0614f3aede48b41d9c1156cd Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-07-30Consolidate OVN related code under ovn dirRitu Sood8-446/+353
This patch is a cleanup patch and doesn't introduce any fuctionality changes. Includes removing of unused code and rearranging code. Change-Id: Idf4a36e09a6d5c200cf191c995184076ffa0326d Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-07-11Fix build issue for go 1.12.5Ritu Sood2-1/+3
Build fails on go 1.12.5 Change-Id: I7f66e84ebaa3b105ca500426f2ee3851b56541e7 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-06-07Fix for format issuesRitu Sood5-140/+139
No code change made. Only corrected the formatting of some files. Change-Id: I1ccb4a0fddcc65bd7d3f93312c5417e7830fed5a Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-03-26Add unit test caseRitu Sood1-0/+163
Adding unit test for config package Change-Id: I6897ac91f3ad55d2e48a0ab9255b224782fef5a5 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-03-13Merge "Add Routes to Pod"Trinath Somanchi3-1/+151
2019-03-07Fix unit test failureRitu Sood1-4/+1
Updating unit test for matching the changes in another patches Change-Id: I1a6d7ecf00261a4a7b7514b45456f6ac17993d2e Signed-off-by: Ritu Sood <ritu.sood@intel.com>