VirtualPort: Convert to new style xml properties

This commit is contained in:
Cole Robinson
2013-07-15 13:08:58 -04:00
parent 98a4d86d7f
commit a75cb4074c
3 changed files with 18 additions and 58 deletions

View File

@@ -433,10 +433,10 @@ class XMLParseTest(unittest.TestCase):
virtualport = dev5.virtualport
check = self._make_checker(virtualport)
check("type", "802.1Qbg")
check("managerid", "12", "11")
check("typeid", "1193046", "1193047")
check("typeidversion", "1", "2")
check("type", "802.1Qbg", "foo", "802.1Qbg")
check("managerid", 12, 11)
check("typeid", 1193046, 1193047)
check("typeidversion", 1, 2)
check("instanceid", "09b11c53-8b5c-4eeb-8f00-d84eaa0aaa3b",
"09b11c53-8b5c-4eeb-8f00-d84eaa0aaa4f")