mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Nat node use port 0
This commit is contained in:
parent
d7c60db2b9
commit
1d70a18b11
@ -42,7 +42,7 @@ class Nat(Cloud):
|
||||
"name": "nat0",
|
||||
"type": "ethernet",
|
||||
"interface": "eth1",
|
||||
"port_number": 1
|
||||
"port_number": 0
|
||||
}
|
||||
]
|
||||
|
||||
|
@ -32,7 +32,7 @@ PORT_OBJECT_SCHEMA = {
|
||||
"port_number": {
|
||||
"description": "Port number",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
"minimum": 0
|
||||
},
|
||||
"type": {
|
||||
"description": "Port type",
|
||||
@ -58,7 +58,7 @@ PORT_OBJECT_SCHEMA = {
|
||||
"port_number": {
|
||||
"description": "Port number",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
"minimum": 0
|
||||
},
|
||||
"type": {
|
||||
"description": "Port type",
|
||||
@ -84,7 +84,7 @@ PORT_OBJECT_SCHEMA = {
|
||||
"port_number": {
|
||||
"description": "Port number",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
"minimum": 0
|
||||
},
|
||||
"type": {
|
||||
"description": "Port type",
|
||||
|
@ -33,7 +33,7 @@ def test_json(on_gns3vm, project):
|
||||
{
|
||||
"interface": "eth1",
|
||||
"name": "nat0",
|
||||
"port_number": 1,
|
||||
"port_number": 0,
|
||||
"type": "ethernet"
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user