Skip to content

Commit 6cc0fa1

Browse files
committed
[chores] OpenVPN: minor adjustments to the property ordering
1 parent 25a8136 commit 6cc0fa1

1 file changed

Lines changed: 21 additions & 20 deletions

File tree

netjsonconfig/backends/openvpn/schema.py

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"description": "tun (layer3) or tap (layer2)",
136136
"type": "string",
137137
"enum": ["tun", "tap"],
138-
"propertyOrder": 5,
138+
"propertyOrder": 6,
139139
},
140140
"dev": {
141141
"title": "device name",
@@ -144,7 +144,7 @@
144144
"minLength": 2,
145145
"maxLength": 15,
146146
"pattern": "^[^\\s]*$",
147-
"propertyOrder": 6,
147+
"propertyOrder": 5,
148148
},
149149
"local": {
150150
"title": "local",
@@ -640,14 +640,6 @@
640640
"default": "udp",
641641
"options": {"enum_titles": ["UDP", "TCP"]},
642642
},
643-
"nobind": {
644-
"title": "nobind",
645-
"description": "ports are dynamically selected",
646-
"type": "boolean",
647-
"default": True,
648-
"format": "checkbox",
649-
"propertyOrder": 5,
650-
},
651643
"remote": {
652644
"title": "remote",
653645
"type": "array",
@@ -703,9 +695,28 @@
703695
},
704696
},
705697
},
698+
"remote_random": {
699+
"title": "random remote",
700+
"description": "When multiple remote address/ports are specified, or if "
701+
"connection profiles are being used, initially randomize "
702+
"the order of the list as a basic load-balancing measure",
703+
"type": "boolean",
704+
"default": False,
705+
"format": "checkbox",
706+
"propertyOrder": 8.1,
707+
},
706708
"port": {
707709
"description": "Use specific local port, ignored if nobind is enabled",
708710
"type": "integer",
711+
"default": "",
712+
},
713+
"nobind": {
714+
"title": "nobind",
715+
"description": "ports are dynamically selected",
716+
"type": "boolean",
717+
"default": True,
718+
"format": "checkbox",
719+
"propertyOrder": 4.1,
709720
},
710721
"resolv_retry": {
711722
"title": "resolv-retry",
@@ -735,16 +746,6 @@
735746
"format": "checkbox",
736747
"propertyOrder": 11,
737748
},
738-
"remote_random": {
739-
"title": "random remote",
740-
"description": "When multiple remote address/ports are specified, or if "
741-
"connection profiles are being used, initially randomize "
742-
"the order of the list as a basic load-balancing measure",
743-
"type": "boolean",
744-
"default": False,
745-
"format": "checkbox",
746-
"propertyOrder": 12,
747-
},
748749
"ns_cert_type": {
749750
"description": "Require that peer certificate was signed with an explicit "
750751
'nsCertType designation of "server"',

0 commit comments

Comments
 (0)