mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
feat(UME): 完善网元字段注释并补齐IPv6地址字段
为 ume_inventory_ne 的关键字段补充建表注释并在启动时执行 COMMENT ON 同步历史库结构,同时新增 ipv6_address 字段并完成入库映射、接口返回与前端类型定义对齐。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
037873423d
commit
d0994f6e53
6 changed files with 67 additions and 18 deletions
|
|
@ -149,6 +149,7 @@ class UmeSyncServiceTests(unittest.TestCase):
|
|||
"name": "ne1",
|
||||
"user-label": "网元1",
|
||||
"ip-Address": "10.0.0.1",
|
||||
"ipv6-address": "2001:db8::1",
|
||||
"type": "A",
|
||||
"device-level": "Access",
|
||||
"host-name": "host-1",
|
||||
|
|
@ -172,6 +173,7 @@ class UmeSyncServiceTests(unittest.TestCase):
|
|||
self.assertEqual(ne.device_level, "Access")
|
||||
self.assertEqual(ne.host_name, "host-1")
|
||||
self.assertEqual(ne.hardware_version, "V1")
|
||||
self.assertEqual(ne.ipv6_address, "2001:db8::1")
|
||||
|
||||
def test_sync_inventory_marker_pagination(self):
|
||||
class _C:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue