Hi all,
I'm not sure where to ask this -- poissibly move it to the correct forum section...
I try to read out the configuration of our Untangle via REST API.
When reading NetworkConfiguration, only the first entry of each List is properly filled, the following are nor really usable:
As you can see the field "conditionType" is left empty. The same in Interfaces, where the type is left empty.Code:NetworkSettings.bypassRules={ "list": [ { "javaClass": "com.untangle.uvm.network.BypassRule", "ruleId": 1, "enabled": false, "bypass": false, "description": "[DONT BYPASS FRANKVPN]", "conditions": { "list": [ { "javaClass": "com.untangle.uvm.network.BypassRuleCondition", "invert": false, "conditionType": "SRC_ADDR", "value": "172.16.137.14" }, { "javaClass": "com.untangle.uvm.network.BypassRuleCondition", "invert": false, "conditionType": "DST_ADDR", "value": "10.10.109.6,10.10.9.9" } ] } }, { "javaClass": "com.untangle.uvm.network.BypassRule", "ruleId": 2, "enabled": false, "bypass": true, "description": "TEST", "conditions": { "list": [ { "javaClass": "com.untangle.uvm.network.BypassRuleCondition", "invert": false, "conditionType": "", "value": "95.90.184.171" }, { "javaClass": "com.untangle.uvm.network.BypassRuleCondition", "invert": false, "conditionType": "", "value": "10.10.109.23" } ] } },
here I would expect "configType" to be ADDRESSED too as in the first interface and v4ConfigType to be also STATIC.Code:NetworkSettings.interfaces={ "list": [ { "interfaceId": 1, "physicalDev": "eth1", "systemDev": "eth1", "symbolicDev": "eth1", "configType": "ADDRESSED", "imqDev": "imq0", "bridgedTo": 0, "isWan": true, "downloadBandwidthKbps": 0, "name": "External", "isVirtualInterface": false, "supportedConfigTypes": "", "isVlanInterface": false, "vlanTag": 0, "vlanParent": 0, "v4ConfigType": "STATIC", "v4StaticAddress": "1.1.3.162", "v4StaticNetmask": "255.255.255.252", "v4StaticPrefix": 30, "v4StaticGateway": "1.1.3.161", "v4StaticDns1": "1.1.9.150", "v4StaticDns2": "1.1.9.151", (...left out for better visibility...) }, { "interfaceId": 2, "physicalDev": "eth2", "systemDev": "eth2", "symbolicDev": "eth2", "configType": "", "imqDev": "", "bridgedTo": 1, "isWan": false, "downloadBandwidthKbps": 0, "name": "Internal", "isVirtualInterface": false, "supportedConfigTypes": "", "isVlanInterface": false, "vlanTag": 0, "vlanParent": 0, "v4ConfigType": "", "v4StaticAddress": "1.1.109.126", "v4StaticNetmask": "255.255.255.128", "v4StaticPrefix": 25, "v4StaticGateway": "1.1.109.126", "v4StaticDns1": "1.1.9.150", "v4StaticDns2": "", "v4Aliases": { "list": [ (...left out for better visibility...) },
(IP addresses anonymised)
Does anybody have a hint what I am doing wrong?
Thanks in advance,
Frank