1
0
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:
Julien Duponchelle 2016-09-05 11:43:20 +02:00
parent d7c60db2b9
commit 1d70a18b11
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
3 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ class Nat(Cloud):
"name": "nat0", "name": "nat0",
"type": "ethernet", "type": "ethernet",
"interface": "eth1", "interface": "eth1",
"port_number": 1 "port_number": 0
} }
] ]

View File

@ -32,7 +32,7 @@ PORT_OBJECT_SCHEMA = {
"port_number": { "port_number": {
"description": "Port number", "description": "Port number",
"type": "integer", "type": "integer",
"minimum": 1 "minimum": 0
}, },
"type": { "type": {
"description": "Port type", "description": "Port type",
@ -58,7 +58,7 @@ PORT_OBJECT_SCHEMA = {
"port_number": { "port_number": {
"description": "Port number", "description": "Port number",
"type": "integer", "type": "integer",
"minimum": 1 "minimum": 0
}, },
"type": { "type": {
"description": "Port type", "description": "Port type",
@ -84,7 +84,7 @@ PORT_OBJECT_SCHEMA = {
"port_number": { "port_number": {
"description": "Port number", "description": "Port number",
"type": "integer", "type": "integer",
"minimum": 1 "minimum": 0
}, },
"type": { "type": {
"description": "Port type", "description": "Port type",

View File

@ -33,7 +33,7 @@ def test_json(on_gns3vm, project):
{ {
"interface": "eth1", "interface": "eth1",
"name": "nat0", "name": "nat0",
"port_number": 1, "port_number": 0,
"type": "ethernet" "type": "ethernet"
} }
] ]