Skip to content

add a device-config for network interfaces, otherwise especially the wifi adapters go to a down state and the edge GW is not reachable anymore #2

@mhengl

Description

@mhengl

something like:
# Create Gateway Device Type Config GATEWAY_DEVICE_TYPE_CONFIG_RESULT=$( curl --silent --request POST \ "${BASE_URL}/configs" \ --header "Authorization: ${SESSION_API_KEY}" \ --header 'Accept: application/json' \ --data @- <<EOF { "name": "POC $(whoami)'s Raspberry Pi Linux armv7+ Gateway config", "device_type_id":"${GATEWAY_DEVICE_TYPE_ID}", "connections": [ { "type": "ethernet-wan", "name": "wan", "config": { "net_enable": 1, "net_ip_assign": "static", "net_ip": "192.168.2.2", "net_mask": "255.255.255.0", "net_gateway": "192.168.2.1", "net_broadcast": "", "net_nat": 1, "net_mtu": 1500, "net_metric": 10, "net_dns_1": "192.168.2.1", "net_dns_2": "8.8.8.8" } }, { "type": "wifi", "name": "wlan", "config": { "wifi_enable": 1, "wifi_mode": "ap", "wifi_ssid": "EdgeDevice", "wifi_auth": "wpa2psk", "wifi_crypt": "aes", "wifi_psk": "apricotsoup", "wifi_channel": 11 } } } EOF )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions