Skip to content

Commit fb83dd6

Browse files
committed
[chores] OpenVPN: minor adjustments to the property ordering
(cherry picked from commit 6cc0fa1)
1 parent da53529 commit fb83dd6

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
@@ -125,7 +125,7 @@
125125
"description": "tun (layer3) or tap (layer2)",
126126
"type": "string",
127127
"enum": ["tun", "tap"],
128-
"propertyOrder": 5,
128+
"propertyOrder": 6,
129129
},
130130
"dev": {
131131
"title": "device name",
@@ -134,7 +134,7 @@
134134
"minLength": 2,
135135
"maxLength": 15,
136136
"pattern": "^[^\\s]*$",
137-
"propertyOrder": 6,
137+
"propertyOrder": 5,
138138
},
139139
"local": {
140140
"title": "local",
@@ -584,14 +584,6 @@
584584
"default": "udp",
585585
"options": {"enum_titles": ["UDP", "TCP"]},
586586
},
587-
"nobind": {
588-
"title": "nobind",
589-
"description": "ports are dynamically selected",
590-
"type": "boolean",
591-
"default": True,
592-
"format": "checkbox",
593-
"propertyOrder": 5,
594-
},
595587
"remote": {
596588
"title": "remote",
597589
"type": "array",
@@ -647,9 +639,28 @@
647639
},
648640
},
649641
},
642+
"remote_random": {
643+
"title": "random remote",
644+
"description": "When multiple remote address/ports are specified, or if "
645+
"connection profiles are being used, initially randomize "
646+
"the order of the list as a basic load-balancing measure",
647+
"type": "boolean",
648+
"default": False,
649+
"format": "checkbox",
650+
"propertyOrder": 8.1,
651+
},
650652
"port": {
651653
"description": "Use specific local port, ignored if nobind is enabled",
652654
"type": "integer",
655+
"default": "",
656+
},
657+
"nobind": {
658+
"title": "nobind",
659+
"description": "ports are dynamically selected",
660+
"type": "boolean",
661+
"default": True,
662+
"format": "checkbox",
663+
"propertyOrder": 4.1,
653664
},
654665
"resolv_retry": {
655666
"title": "resolv-retry",
@@ -679,16 +690,6 @@
679690
"format": "checkbox",
680691
"propertyOrder": 11,
681692
},
682-
"remote_random": {
683-
"title": "random remote",
684-
"description": "When multiple remote address/ports are specified, or if "
685-
"connection profiles are being used, initially randomize "
686-
"the order of the list as a basic load-balancing measure",
687-
"type": "boolean",
688-
"default": False,
689-
"format": "checkbox",
690-
"propertyOrder": 12,
691-
},
692693
"ns_cert_type": {
693694
"description": "Require that peer certificate was signed with an explicit "
694695
'nsCertType designation of "server"',

0 commit comments

Comments
 (0)