TeamdctlConfigDump - command teamdctl {team interface} config dump

This module provides processing for the output of the command teamdctl {team interface} config dump.

insights.parsers.teamdctl_config_dump.data

Dictionary of keys with values in dict.

Type

dict

Sample configuration file:

{
    "device": "team0",
    "hwaddr": "DE:5D:21:A8:98:4A",
    "link_watch": [
        {
            "delay_up": 5,
            "name": "ethtool"
        },
        {
            "name": "nsna_ping",
            "target_host ": "target.host"
        }
    ],
    "mcast_rejoin": {
        "count": 1
    },
    "notify_peers": {
        "count": 1
    },
    "runner": {
        "hwaddr_policy": "only_active",
        "name": "activebackup"
    }
}

Examples

>>> str(teamdctl_config_dump.device_name)
'team0'
>>> str(teamdctl_config_dump.runner_name)
'activebackup'
>>> str(teamdctl_config_dump.runner_hwaddr_policy)
'only_active'
class insights.parsers.teamdctl_config_dump.TeamdctlConfigDump(context, extra_bad_lines=None)[source]

Bases: insights.core.CommandParser, insights.core.JSONParser

Class to parse the output of teamdctl {team interface} config dump

property device_name

Return the type of the teaming device name

Type

str

property runner_hwaddr_policy

Return the type of the teaming runner hwaddr policy

Type

str

property runner_name

Return the type of the teaming runner name

Type

str