Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
indent20px

draw.io Diagram
bordertrue
diagramNameNetwork Config Controller
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth1081
revision1

Cluster Network Intents

Networks Intent

...

Code Block
languagebash
titlePOST
linenumberstrue
URL: /v2/projects/{project-name}/composite-apps/{composite-app-name}/{version}/network-controller-intent/{net-control-intent}/network-chains
POST BODY:
{
  "metadata": {
    "name": "<name>",
    "description": "<description>",
    "userData1": "<user data>",
    "userData2": "<user data>"
  },
  "spec": {
    "app-name": "<name>",
    "chainType": "Routing",
    "routingSpec": {
      "namespace": "default",
      "networkChain": "app=slb,dync-net1,app=ngfw,dync-net2,app=sdwan",
      "leftApp": {"app-name": "ms1", "workload": "app=dep1"},
      "rightApp": {"app-name": "ms2", "workload": "app=dep2"},
      "leftNetwork": [
        {
          "leftStaticIp": "172.30.10.3", 
          "networkName": "pnet1",
          "gatewayIp": "172.30.10.2",
          "subnet": "172.30.10.0/24"
        }
      ],
      "rightNetwork": [
        {
          "rightStaticIp": "172.20.10.3",
          "networkName": "pnet2",
          "gatewayIp": "172.30.20.2",
          "subnet": "172.30.20.0/24"
        }
      ]
    }
  }
}

Apply 

Create network control intents for a given composite app/version

Code Block
languagebash
titlePOST
linenumberstrue
URL: /v2/projects/{project-name}/composite-apps/{composite-app-name}/{version}/network-controller-intent/{net-control-intent}/apply
POST BODY:
{
 
}

Terminate

Delete network control intents for a given composite app/version

Code Block
languagebash
titlePOST
linenumberstrue
URL: /v2/projects/{project-name}/composite-apps/{composite-app-name}/{version}/network-controller-intent/{net-control-intent}/terminate
POST BODY:
{
 
}