Adding node interface, SNAT and OVN Node switch port 92/70492/6
authorKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Mon, 6 Jul 2020 23:10:19 +0000 (16:10 -0700)
committerKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Thu, 17 Sep 2020 23:25:10 +0000 (16:25 -0700)
commitce14abc0128d4c55a7805c52ea199e2ce6159428
tree569f74510b497ed44814e931a4667de73d133ab0
parent3de63ee756f9d7c0a4524b40a89e92b918a9249f
Adding node interface, SNAT and OVN Node switch port

    - 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
17 files changed:
build/Dockerfile
build/bin/entrypoint
cmd/nfn-agent/nfn-agent.go
cmd/ovn4nfvk8s-cni/app/helper_linux.go
deploy/ovn4nfv-k8s-plugin.yaml
go.mod
go.sum
internal/pkg/cniserver/cni.go
internal/pkg/cniserver/cniserver.go
internal/pkg/config/config.go
internal/pkg/network/iptables.go [new file with mode: 0644]
internal/pkg/nfnNotify/proto/nfn.pb.go
internal/pkg/nfnNotify/proto/nfn.proto
internal/pkg/nfnNotify/server.go
internal/pkg/node/node.go [new file with mode: 0644]
internal/pkg/ovn/ovn.go
pkg/controller/pod/pod_controller.go