add tsg_sn_update.py, tsg_monit_device.py

This commit is contained in:
lijia
2019-07-26 21:34:42 +08:00
parent 6d477839ae
commit e2d991a0ab
9 changed files with 462 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{
"tsg_chassis_ip": [{
"type": "mxn",
"name": "mxn",
"id": 0,
"ip": "192.168.100.5"
}, {
"type": "mcn",
"name": "mcn_node1",
"id": 1,
"ip": "192.168.100.1"
}, {
"type": "mcn",
"name": "mcn_node2",
"id": 2,
"ip": "192.168.100.2"
}, {
"type": "mcn",
"name": "mcn_node3",
"id": 3,
"ip": "192.168.100.3"
}, {
"type": "mcn",
"name": "mcn_node4",
"id": 4,
"ip": "192.168.100.4"
}]
}

View File

@@ -0,0 +1,57 @@
{
"tsg_chassis_port": [{
"port_id": 0,
"type": "physical",
"function": "inline",
"description": "to device xxx"
},
{
"port_id": 1,
"type": "physical",
"function": "inline",
"description": "to device xxx"
},
{
"port_id": 2,
"type": "physical",
"function": "inline",
"description": "to device xxx"
},
{
"port_id": 3,
"type": "physical",
"function": "inline",
"description": "to device xxx"
},
{
"port_id": 4,
"type": "physical",
"function": "mirror",
"description": "forward packet to xxx"
},
{
"port_id": 43,
"type": "backplane",
"function": "intercomm",
"description": "to mcn 1"
},
{
"port_id": 41,
"type": "backplane",
"function": "intercomm",
"description": "to mcn 2"
},
{
"port_id": 39,
"type": "backplane",
"function": " intercomm ",
"description": "to mcn 3"
},
{
"port_id": 37,
"type": "backplane",
"function": " intercomm ",
"description": "to mcn 4"
}
]
}

3
deploy_etc/tsg_sn.json Normal file
View File

@@ -0,0 +1,3 @@
{
"sn": "CBT2201925000001"
}

12
deploy_etc/tsg_tags.json Normal file
View File

@@ -0,0 +1,12 @@
{
"tags": [{
"tag": "location",
"value": "beijing/chaoyang"
}, {
"tag ": "isp",
"value ": "dianxin"
}, {
"tag ": "custom_tag1",
"value ": "x/y/z"
}]
}