Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Christoph_Spatt
Explorer

add vlan interface via set-simple-cluster not working

Hi,

i need to add a vlan interface to a simple cluster (ClusterXL). I am using the REST API Interface of the Management server. The task is created successfully (HTTP 200 with task-id in return). However the task fails with the following message: "line 536:21, no viable alternative at input ':'"

I am using R80.40 (API version 1.6.1). For the API calls I am using ansible or postman.

Any idea how to troubleshoot this?

Here is the json from the api call:

 

{
    "name": "zzz",
    "interfaces": {
        "add": {
            "name": "bond3.3000",
            "comments": "iDMZ-ADC-WEB-Prod",
            "ipv4-address": "zzz",
            "ipv4-mask-length": "24",
            "ipv6-address": "zzz",
            "ipv6-mask-length": "64",
            "interface-type": "cluster",
            "topology": "internal",
            "topology-settings": {
                "interface-leads-to-dmz": "true",
                "ip-address-behind-this-interface": "network defined by the interface ip and net mask"
            },
            "anti-spoofing": "true",
            "security-zone": "true",
            "security-zone-settings": {
                "auto-calculated": "true"
            }
        }
    },
    "members": {
        "update": [
            {
                "name": "zzz",
                "interfaces": {
                    "name": "bond3.3000",
                    "ipv4-address": "zzz",
                    "ipv4-mask-length": "24",
                    "ipv6-address": "zzz",
                    "ipv6-mask-length": "64"
                }
            },
            {
                "name": "zzz",
                "interfaces": {
                    "name": "bond3.3000",
                    "ipv4-address": "zzz",
                    "ipv4-mask-length": "24",
                    "ipv6-address": "zzz",
                    "ipv6-mask-length": "64"
                }
            }
        ]
    }
}

 

 

image.png

image.png

0 Kudos
3 Replies
PhoneBoy
Admin
Admin

Unfortunately, if you're adding an interface to an existing gateway object, you have to (re)add ALL the interfaces, not just the single one.
This was discussed previously in the community, though I can't find the precise thread.

0 Kudos
Christoph_Spatt
Explorer

The API call works on a cluster that just exists in SmartDashboard (no real devices, no SIC, etc).

I checked cpm.elg and found some java stackt races and this message: 

25/11/21 13:25:47,593 ERROR objects.network.GatewayNetworkOverviewFactoryImpl [pool-7-thread-1]: Missing interface for member with uid [bdc0e2cc-739d-4ca8-a4da-2e4662812630] in network [bond3
.3000] of type [CLUSTER].
25/11/21 13:25:47,594 ERROR objects.network.GatewayNetworkOverviewFactoryImpl [pool-7-thread-1]: Missing interface for member with uid [304248d6-6163-4165-894f-f7f60eb98534] in network [bond3
.3000] of type [CLUSTER].

0 Kudos
JuPo
Employee Employee
Employee

cpm.elg contains API failed logs. Try to check there for more details.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events