mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Minor test
This commit is contained in:
parent
0a144f6220
commit
05ddb1c469
3 changed files with 5 additions and 12 deletions
|
|
@ -272,17 +272,6 @@
|
|||
"wps_proc_status": { dvalue: 0, type: Number }
|
||||
}
|
||||
},
|
||||
"network": {
|
||||
"interface": {
|
||||
"is_lan": { dvalue: 1, type: Number },
|
||||
"ifname": { dvalue: "", type: String },
|
||||
"proto": { dvalue: "dhcp", type: String },
|
||||
"ipaddr": { dvalue: "", type: String },
|
||||
"netmask": { dvalue: "", type: String },
|
||||
"peerdns": { dvalue: false, type: String },
|
||||
"dns": { dvalue: [], type: Array }
|
||||
}
|
||||
},
|
||||
//"ddns": {
|
||||
// "interface": { dvalue: "", type: String },
|
||||
// "enabled": { dvalue: 0, type: Number },
|
||||
|
|
|
|||
|
|
@ -21,5 +21,7 @@ UCI.network.$registerSectionType("interface", {
|
|||
"bridge_instance": { dvalue: false, type: Boolean },
|
||||
"vendorid": { dvalue: '', type: String },
|
||||
"hostname": { dvalue: '', type: String },
|
||||
"ipv6": { dvalue: false, type: Boolean }
|
||||
"ipv6": { dvalue: false, type: Boolean },
|
||||
"peerdns": { dvalue: false, type: String },
|
||||
"dns": { dvalue: [], type: Array }
|
||||
});
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ $juci.module("internet")
|
|||
// });
|
||||
|
||||
$scope.$watch("dns.primary", function(value){
|
||||
if(!$uci.network.wan) return;
|
||||
$log.debug("dns primary = " + value);
|
||||
$log.debug("$uci.network.wan.dns.value", $uci.network.wan.dns.value);
|
||||
if ($uci.network.wan.dns.value) {
|
||||
|
|
@ -43,6 +44,7 @@ $juci.module("internet")
|
|||
});
|
||||
|
||||
$scope.$watch("dns.secondary", function(value){
|
||||
if(!$uci.network.wan) return;
|
||||
$log.debug("dns secondary = " + value);
|
||||
$log.debug("$uci.network.wan.dns.value", $uci.network.wan.dns.value);
|
||||
if ($uci.network.wan.dns.value) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue