업무이야기/패킷전달플랫폼

Gigamon RestAPI를 통한 VxLan Tunnel 생성

쫑콩아빠 2025. 4. 23. 13:35
반응형

Gigamon에서 VxLan Tunnel 생성시 이를 RestAPI로 수행하기 위해서는 2단계를 거쳐야 한다.

1. Vxlan ID 생성

circuitTunnels

  "circuitTunnelVxlanGroups": [
    {
      "clusterId": "10.10.10.124",
      "alias": "vxlan10",
      "boxId": "1",
      "vxlanIds": [
        10
      ]
    },
    {
      "clusterId": "10.10.10.124",
      "alias": "vxlan20",
      "boxId": "1",
      "vxlanIds": [
        20
      ]
    },
    {
      "clusterId": "10.10.10.124",
      "alias": "vxlan30",
      "boxId": "1",
      "vxlanIds": [
        30
      ]
    },
    {
      "clusterId": "10.10.10.124",
      "alias": "vxlan100",
      "boxId": "1",
      "vxlanIds": [
        100
      ]
    }
  ]
}

2. VxLan Tunnel 생성

apps/tunnelApplication

    {
      "alias": "vxlan100",
      "description": "",
      "tunnelType": "EMBEDDED_VXLAN",
      "trafficDir": "ENCAP",
      "clusterId": "10.10.10.124",
      "ipInterfaceOut": "10.0.50.125",
      "encap": {
        "sourcePort": [
          "10.10.10.124:1/3/x1"
        ],
        "sourcePortIdMap": {
          "1/3/x1": 100
        },
        "exportConfigs": [
          {
            "remoteIp": "10.0.50.141",
            "sourceApplicationPort": 100
          }
        ],
        "rules": {
          "passRules": [
            {
              "ruleId": 1,
              "bidi": false,
              "matches": [
                {
                  "type": "vlan",
                  "value": 150
                }
              ]
            },
            {
              "ruleId": 2,
              "bidi": false,
              "matches": [
                {
                  "type": "vlan",
                  "value": 160
                }
              ]
            },
            {
              "ruleId": 3,
              "bidi": false,
              "matches": [
                {
                  "type": "vlan",
                  "value": 170
                }
              ]
            }
          ]
        },
        "additionalgsops": {}
      },
      "configStatus": "SUCCESS"
    }

반응형