mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 18:07:52 +00:00
Compare commits
14 Commits
v3.0.2-rc2
...
release/v3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
192261318c | ||
|
|
ffb843b486 | ||
|
|
741f7a299a | ||
|
|
dcff5c6932 | ||
|
|
5c37272cd6 | ||
|
|
4b5eeb48cc | ||
|
|
1ca8f18b9d | ||
|
|
856ac16e86 | ||
|
|
cc3906e550 | ||
|
|
6b3eb3ef99 | ||
|
|
bc6da62f1b | ||
|
|
0eeb14d4d1 | ||
|
|
8a43d39572 | ||
|
|
9a80d8b1de |
@@ -4,10 +4,10 @@ PKG_NAME:=ucentral-client
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL=https://github.com/Telecominfraproject/wlan-ucentral-client.git
|
||||
PKG_MIRROR_HASH:=62db7913d8e8495648ac35c5b0ed5f910c42fc7cdd1f6d70bb08394e8af56053
|
||||
PKG_MIRROR_HASH:=3fa810edd53a8c08ce3d8090a095fbc1697c70c50e00a78931400df59fe66eaf
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_DATE:=2022-06-22
|
||||
PKG_SOURCE_VERSION:=7628b5c7d4d0c5f6276b64abc371deb9c76f0734
|
||||
PKG_SOURCE_VERSION:=f19b1e86b7f36f4adc544e087cadd7907dabb5f0
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
||||
|
||||
@@ -224,6 +224,15 @@ handlers = {
|
||||
ubus.call('network.interface.up_none', 'add_device', msg);
|
||||
ubus.call('dhcprelay', 'check_devices');
|
||||
},
|
||||
|
||||
vlan_remove: function(notify) {
|
||||
if (ratelimit) {
|
||||
let msg = {
|
||||
device: notify.data.ifname,
|
||||
};
|
||||
ubus.call('ratelimit', 'device_delete', msg);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ PKG_NAME:=ucentral-schema
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL=https://github.com/Telecominfraproject/wlan-ucentral-schema.git
|
||||
PKG_MIRROR_HASH:=d081fdd3c4655254b8e4be76f0fa881f53f20a0e8bfcf12f3b547701b6ea126b
|
||||
PKG_MIRROR_HASH:=5afb439480d12d3e8e5158f056850b034096cf36a91574dbeecd4a98a8830e83
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_DATE:=2022-05-29
|
||||
PKG_SOURCE_VERSION:=cb1c18db707dc86c7eeb3e8828c8f37a689fe644
|
||||
PKG_SOURCE_VERSION:=cc0bf95db178248a5e0d3adbc3bcfde1001c4802
|
||||
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
@@ -31,7 +31,8 @@ define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/ucentral-schema/install
|
||||
$(INSTALL_DIR) $(1)/usr/share/ucentral
|
||||
$(INSTALL_DIR) $(1)/usr/share/ucentral $(1)/etc/ucentral/
|
||||
$(CP) $(PKG_BUILD_DIR)/schema.json $(1)/etc/ucentral/
|
||||
$(CP) $(PKG_BUILD_DIR)/schemareader.uc $(1)/usr/share/ucentral
|
||||
$(CP) $(PKG_BUILD_DIR)/renderer/* $(1)/usr/share/ucentral
|
||||
$(CP) $(PKG_BUILD_DIR)/command/*.uc $(1)/usr/share/ucentral
|
||||
|
||||
@@ -129,6 +129,21 @@ function vlan_add(dev, vid, ad)
|
||||
vlans[keystr] = true;
|
||||
}
|
||||
|
||||
function vlan_config_push(vlan_config, dev, vid)
|
||||
{
|
||||
let vlan_found = false;
|
||||
|
||||
for (let v in vlan_config[dev]) {
|
||||
if (v[0] == vid) {
|
||||
vlan_found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!vlan_found)
|
||||
push(vlan_config[dev], [ vid, "rx", "tx"]);
|
||||
}
|
||||
|
||||
function vlan_set_config(config)
|
||||
{
|
||||
vlan_config = config;
|
||||
@@ -221,7 +236,7 @@ function run_service() {
|
||||
return ubus.STATUS_INVALID_ARGUMENT;
|
||||
if (!vlan_config[req.args.device])
|
||||
vlan_config[req.args.device] = [];
|
||||
push(vlan_config[req.args.device], [ req.args.vlan, "rx", "tx"]);
|
||||
vlan_config_push(vlan_config, req.args.device, req.args.vlan);
|
||||
vlan_set_config(vlan_config);
|
||||
return 0;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user