Andrew Anderson
Andrew Anderson

Reputation: 11

Vyatta Router order not honoring VLAN id's

Ordering a Vyatta router on #SoftLayer #BlueMix and the order JSON is the following

gatewayOrder = {
    'orderContainers': [{
        'quantity': 2,  # high availability is 2 quantity
        'hardware': [
            {
            'hostname': vyatta_fr_hostname,
            'domain': vyatta_domain,
            'networkVlans': [
                {'vlanNumber': vlanPub },
                {'vlanNumber': vlanPriv }
            ]},
            {
                'hostname': vyatta_bu_hostname,
                'domain': vyatta_domain,
                'networkVlans': [
                    {'vlanNumber': vlanPub },
                    {'vlanNumber': vlanPriv }
            ]}
        ],
        'location': locationId,
        'packageId': pkgIdGW,
        'prices': [
            {'id': vyatta_system_dual_intel_2620 },
            {'id': vyatta_os_vyatta_5600 },
            {'id': vyatta_64_gb_ram },
            {'id': vyatta_disk_controller },
            {'id': vyatta_disk_500_gb },
            {'id': vyatta_disk_4_tb },
            {'id': vyatta_net_20000 },
            {'id': vyatta_net_10_gbps },
            {'id': vyatta_kvm_reboot },
            {'id': vyatta_ssl_vpn },
            {'id': vyatta_1_ip },
            {'id': vyatta_redundant_power },
            {'id': vyatta_host_monitoring },
            {'id': vyatta_auto_reboot },
            {'id': vyatta_notification_email },
            {'id': vyatta_nessus },
        ],
    }]
}

Vlans are not being added to the order. Why?

Upvotes: 1

Views: 197

Answers (2)

Chris Gallo
Chris Gallo

Reputation: 191

This did not work. Now the api is complaining that the VLAN is not standard

You specified the VLAN id correctly, but didn't pick a correct VLAN. You can only order Vyattas on Standard vlans, which is to say VLANs that are not already part of a gateway as either a gateway or associated vlans.

The control portal order page should reflect this as well.

Upvotes: 0

Fernando Iquiza
Fernando Iquiza

Reputation: 531

UPDATE

Try the following rest example:

method: POST
https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Order/verifyOrder


JSON body:

{
"parameters": [
   {
    "orderContainers": [
     {
      "hardware": [
        {
          "hostname": "vyattaVlantest",
          "domain": "domain.com",
          "primaryBackendNetworkComponent":{
                "networkVlanId":1111111
                },
          "primaryNetworkComponent":{
                "networkVlanId":2222222
                }
        }
      ],
      "location":"DALLAS13" ,
      "packageId": 236,
      "quantity": 1,
      "prices": [
        {
          "id": 177611
        },
        {
          "id": 17182
        },
        {
          "id": 201189
        },
        {
          "id": 876
        },
        {
          "id": 14031
        },
        {
          "id": 342
        },
        {
          "id": 273
        },
        {
          "id": 792
        },
        {
          "id": 55
        },
        {
          "id": 58
        },
        {
          "id": 420
        },
        {
          "id": 418
        },
        {
          "id": 21
        },
        {
          "id": 57
        },
        {
          "id": 906
        }
      ]
    }
  ]
}
]
}

The returned value in the response should display something like what´s below:

                    "primaryBackendNetworkComponent": {
                        "networkVlanId": 1111111,
                        "networkVlan": {
                            "id": 1111111,
                            "primarySubnetId": 123123123,
                            "vlanNumber": 591
                        }
                    },
                    "primaryNetworkComponent": {
                        "networkVlanId": 2222222,
                        "networkVlan": {
                            "id": 2222222,
                            "primarySubnetId": 789789789,
                            "vlanNumber": 768
                        }
                    }
                }
            ],

Upvotes: 1

Related Questions