Fixes nxos_vpc_interface (#25907)

* nxos_vpc_interface fix

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* nxos_vpc_interface unit test

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* fix state_present

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* add state_present unit test

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* make ansibot happy

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* teardown get_config

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha
2017-06-24 18:05:07 +05:30
committed by GitHub
parent b82cc8e7cc
commit 3482a6326b
5 changed files with 194 additions and 144 deletions

View File

@@ -0,0 +1,22 @@
{
"TABLE_channel": {
"ROW_channel": [
{
"group": "10",
"port-channel": "port-channel10",
"layer": "R",
"status": "D",
"type": "Eth",
"prtcl": "NONE"
},
{
"group": "20",
"port-channel": "port-channel20",
"layer": "R",
"status": "D",
"type": "Eth",
"prtcl": "NONE"
}
]
}
}

View File

@@ -0,0 +1,14 @@
{
"TABLE_vpc": {
"ROW_vpc": [
{
"vpc-id": 100,
"vpc-ifindex": "Po10",
"vpc-port-state": "Up",
"vpc-thru-peerlink": 19,
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS"
}
]
}
}