aboutsummaryrefslogtreecommitdiffstats
path: root/internal/pkg/ovn/ovn.go
AgeCommit message (Collapse)AuthorFilesLines
2020-09-17adding gwipaddress features in network annotationKuralamudhan Ramakrishnan1-7/+13
- 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 node interface, SNAT and OVN Node switch portKuralamudhan Ramakrishnan1-7/+135
- 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 primary network featuresKuralamudhan Ramakrishnan1-74/+72
- 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
2019-11-20Update OVN utils to add provider network supportRitu Sood1-35/+70
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-08-29Add check for annotation presenceRitu Sood1-5/+0
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 Sood1-11/+128
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-15Use controller runtime and operator sdkRitu Sood1-217/+151
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 Sood1-0/+286
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>
2018-11-20Seed code for the PluginRitu Sood1-0/+71
The code includes ovn4nfvk8s Plugin & CNI. It implements multiple OVN interfaces for Pods and assumes Multus (or similar CNI) calls its CNI not as first CNI. Change-Id: I524c1d18752eb6dbc8d34addd3b60d5bbaa06ff4 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Signed-off-by: Victor Morales <victor.morales@intel.com>