Dear Community!
I use ubuntu and I want to make discovery function for bond interfaces. For example the returned json object is this:
How can I set different "type of information" for these discovered key-value pairs?
I want that "Link Failure Count" be numeric, others are text.
thanks
I use ubuntu and I want to make discovery function for bond interfaces. For example the returned json object is this:
Code:
{"data":[
{"{#BOND_IF}": "bond1", "{#SLAVE_IF}": "eth0", "{#PARAMETER_IF}": "Speed"},
{"{#BOND_IF}": "bond1", "{#SLAVE_IF}": "eth0", "{#PARAMETER_IF}": "Link Failure Count"},
{"{#BOND_IF}": "bond1", "{#SLAVE_IF}": "eth0", "{#PARAMETER_IF}": "Partner Churn State"},
{"{#BOND_IF}": "bond1", "{#SLAVE_IF}": "eth1", "{#PARAMETER_IF}": "Speed"},
{"{#BOND_IF}": "bond1", "{#SLAVE_IF}": "eth1", "{#PARAMETER_IF}": "Link Failure Count"},
{"{#BOND_IF}": "bond1", "{#SLAVE_IF}": "eth1", "{#PARAMETER_IF}": "Partner Churn State"}
]}
I want that "Link Failure Count" be numeric, others are text.
thanks
Comment