More Cisco stuff
FossilOrigin-Name: f5d524e032376c67bfe637ce08b701e55e4be62ac7ee960b0daacda910cf1d2f
This commit is contained in:
@ -1,28 +1,154 @@
|
||||
cisco/ssl-certfile:Str:"../../ssl/certs/wtpc.crt"
|
||||
cisco/ssl-keyfile:Str:"../../ssl/certs/wtpc.key"
|
||||
cisco/ssl-cipher:Str:ALL
|
||||
|
||||
|
||||
|
||||
discovery-type :Byte: 0
|
||||
|
||||
ac-descriptor/dtls-policy :Byte: 0
|
||||
ac-descriptor/hardware/vendor :Dword: 4232704
|
||||
ac-descriptor/hardware/version :Bstr16: .x01000001
|
||||
ac-descriptor/max-wtps :Word: 200
|
||||
ac-descriptor/r-mac-field :Byte: 1
|
||||
ac-descriptor/reserved1 :Byte: 0
|
||||
ac-descriptor/security :Byte: 2
|
||||
ac-descriptor/software/vendor :Dword: 4232704
|
||||
ac-descriptor/software/version :Bstr16: .x07036500
|
||||
ac-descriptor/station-limit :Word: 1000
|
||||
ac-descriptor/stations :Word: 0
|
||||
ac-name :Bstr16: CiscoAC73
|
||||
ac-name-with-priority/TubesAC :Byte: 3
|
||||
ac-name-with-priority/ac2 :Byte: 5
|
||||
capwap-control-ip-address/address.0 :IPAddress: 192.168.0.173
|
||||
capwap-control-ip-address/address.1 :IPAddress: d96c:4c0a:da6c:4c0a:db6c:4c0a:dc6c:4c0a
|
||||
capwap-control-ip-address/address.2 :IPAddress: 192.168.0.173
|
||||
capwap-control-ip-address/wtps.0 :Word: 0
|
||||
capwap-control-ip-address/wtps.1 :Word: 10
|
||||
capwap-control-ip-address/wtps.2 :Word: 1
|
||||
capwap-local-ip-address :IPAddress: 192.168.0.14
|
||||
capwap-timers/echo-interval :Byte: 30
|
||||
capwap-timers/max-discovery-interval :Byte: 10
|
||||
capwap-timers/min-discovery-interval :Byte: 0
|
||||
cisco/ac-ip-addr-with-index.0 :IPAddress: 0.0.0.0
|
||||
cisco/ac-ip-addr-with-index.1 :IPAddress: 9.9.9.9
|
||||
cisco/ac-ip-addr-with-index.2 :IPAddress: 8.8.8.8
|
||||
cisco/ac-name-with-index.0 :Bstr16: CiscoAC73
|
||||
cisco/ac-name-with-index.1 :Bstr16: nudelnudel
|
||||
cisco/ac-name-with-index.2 :Bstr16: nadelnalde
|
||||
cisco/ap-failover-priority :Byte: 4
|
||||
cisco/ap-group-name :Bstr16: default-group
|
||||
cisco/ap-led-state-config/led-state :Byte: 1
|
||||
cisco/ap-led-state-config/save-flag :Byte: 1
|
||||
cisco/ap-log-facility :Byte: 0
|
||||
cisco/ap-regulatory-domain.0/code0 :Byte: 0
|
||||
cisco/ap-regulatory-domain.0/code1 :Byte: 1
|
||||
cisco/ap-regulatory-domain.0/set :Bool: true
|
||||
cisco/ap-regulatory-domain.0/slot :Byte: 0
|
||||
cisco/ap-regulatory-domain.1/code0 :Byte: 0
|
||||
cisco/ap-regulatory-domain.1/code1 :Byte: 1
|
||||
cisco/ap-regulatory-domain.1/set :Bool: true
|
||||
cisco/ap-regulatory-domain.1/slot :Byte: 1
|
||||
cisco/ap-telnet-ssh/ssh :Bool: false
|
||||
cisco/ap-telnet-ssh/telnet :Bool: false
|
||||
cisco/ap-timesync/timestamp :Dword: 1524133283
|
||||
cisco/ap-timesync/type :Byte: 0
|
||||
cisco/board-data-options :Dword: 16777217
|
||||
cisco/lw_path_mtu/len :Word: 1095
|
||||
cisco/lw_path_mtu/max :Word: 1485
|
||||
cisco/mwar-addr/address :IPAddress: 192.168.0.180
|
||||
cisco/mwar-addr/mwar-type :Byte: 1
|
||||
cisco/mwar-addr/unknown :Word: 0
|
||||
|
||||
location-data :Bstr16: default location
|
||||
maximum-message-length :Word: 14000
|
||||
cisco/mwar-hash-value :Bstr16: 25f312452fcb0a908007304aa201d175d0516d7a
|
||||
cisco/mwar-type :Byte: 0
|
||||
cisco/ssl-certfile :Str: ../../ssl/certs/wtpc.crt
|
||||
cisco/ssl-cipher :Str: ALL
|
||||
cisco/ssl-keyfile :Str: ../../ssl/certs/wtpc.key
|
||||
discovery-type :Byte: 0
|
||||
idle-timeout :Dword: 300
|
||||
location-data :Bstr16: "superposition\"tobias"
|
||||
maximum-message-length :Word: 4096
|
||||
radio.0/admin-state :Byte: 1
|
||||
radio.0/cisco-multi-domain-capability/first-channel :Word: 1
|
||||
radio.0/cisco-multi-domain-capability/max-tx-power-level :Word: 65535
|
||||
radio.0/cisco-multi-domain-capability/number-of-channels :Word: 13
|
||||
radio.0/cisco-multi-domain-capability/reserved :Byte: 1
|
||||
radio.0/cisco/air-space-capability :Byte: 0
|
||||
radio.0/cisco/mac-operation/fragmentation-threshold :Word: 2346
|
||||
radio.0/cisco/mac-operation/long-retry :Byte: 4
|
||||
radio.0/cisco/mac-operation/reserved :Byte: 1
|
||||
radio.0/cisco/mac-operation/rts-threshold :Word: 2347
|
||||
radio.0/cisco/mac-operation/rx-msdu-lifetime :Dword: 512
|
||||
radio.0/cisco/mac-operation/short-retry :Byte: 7
|
||||
radio.0/cisco/mac-operation/tx-msdu-lifetime :Dword: 512
|
||||
radio.0/cisco/multi-domain-capability/first-channel :Word: 1
|
||||
radio.0/cisco/multi-domain-capability/max-tx-power-level :Word: 20
|
||||
radio.0/cisco/multi-domain-capability/number-of-channels :Word: 13
|
||||
radio.0/cisco/multi-domain-capability/reserved :Byte: 1
|
||||
radio.0/cisco/tx-power/current-tx-power :Word: 0
|
||||
radio.0/cisco/tx-power/reserved :Byte: 1
|
||||
radio.0/cisco/wtp-radio-config/beacon-period :Word: 100
|
||||
radio.0/cisco/wtp-radio-config/bss-id :Bstr16: .x04fe7f499b90
|
||||
radio.0/cisco/wtp-radio-config/cfg-period :Byte: 4
|
||||
radio.0/cisco/wtp-radio-config/cfg-type :Byte: 1
|
||||
radio.0/cisco/wtp-radio-config/cfp-maximum-duration :Word: 60
|
||||
radio.0/cisco/wtp-radio-config/country-str1 :Bstr16: .x444500
|
||||
radio.0/cisco/wtp-radio-config/country-str2 :Bstr16: DE
|
||||
radio.0/cisco/wtp-radio-config/gpr-period :Byte: 10
|
||||
radio.0/cisco/wtp-radio-config/max-stations :Byte: 200
|
||||
radio.0/cisco/wtp-radio-config/occupancy-limit :Word: 100
|
||||
radio.0/cisco/wtp-radio-config/reg :Dword: 65536
|
||||
radio.0/decryption-error-report-period :Word: 120
|
||||
radio.0/operational-state/cause :Byte: 0
|
||||
radio.0/operational-state/state :Byte: 2
|
||||
radio.0/rate_set :Bstr16: .x82848b960c1218243048606c
|
||||
radio.0/wtp-radio-information :Dword: 1
|
||||
radio.1/admin-state :Byte: 1
|
||||
radio.1/cisco-multi-domain-capability/first-channel :Word: 36
|
||||
radio.1/cisco-multi-domain-capability/max-tx-power-level :Word: 65535
|
||||
radio.1/cisco-multi-domain-capability/number-of-channels :Word: 16
|
||||
radio.1/cisco-multi-domain-capability/reserved :Byte: 1
|
||||
radio.1/cisco/air-space-capability :Byte: 0
|
||||
radio.1/cisco/mac-operation/fragmentation-threshold :Word: 2346
|
||||
radio.1/cisco/mac-operation/long-retry :Byte: 4
|
||||
radio.1/cisco/mac-operation/reserved :Byte: 1
|
||||
radio.1/cisco/mac-operation/rts-threshold :Word: 2347
|
||||
radio.1/cisco/mac-operation/rx-msdu-lifetime :Dword: 512
|
||||
radio.1/cisco/mac-operation/short-retry :Byte: 7
|
||||
radio.1/cisco/mac-operation/tx-msdu-lifetime :Dword: 512
|
||||
radio.1/cisco/multi-domain-capability/first-channel :Word: 36
|
||||
radio.1/cisco/multi-domain-capability/max-tx-power-level :Word: 20
|
||||
radio.1/cisco/multi-domain-capability/number-of-channels :Word: 4
|
||||
radio.1/cisco/multi-domain-capability/reserved :Byte: 1
|
||||
radio.1/cisco/tx-power/current-tx-power :Word: 0
|
||||
radio.1/cisco/tx-power/reserved :Byte: 1
|
||||
radio.1/cisco/wtp-radio-config/beacon-period :Word: 100
|
||||
radio.1/cisco/wtp-radio-config/bss-id :Bstr16: .x04fe7f499b90
|
||||
radio.1/cisco/wtp-radio-config/cfg-period :Byte: 4
|
||||
radio.1/cisco/wtp-radio-config/cfg-type :Byte: 1
|
||||
radio.1/cisco/wtp-radio-config/cfp-maximum-duration :Word: 60
|
||||
radio.1/cisco/wtp-radio-config/country-str1 :Bstr16: .x444500
|
||||
radio.1/cisco/wtp-radio-config/country-str2 :Bstr16: DE
|
||||
radio.1/cisco/wtp-radio-config/gpr-period :Byte: 10
|
||||
radio.1/cisco/wtp-radio-config/max-stations :Byte: 200
|
||||
radio.1/cisco/wtp-radio-config/occupancy-limit :Word: 100
|
||||
radio.1/cisco/wtp-radio-config/reg :Dword: 65536
|
||||
radio.1/decryption-error-report-period :Word: 120
|
||||
radio.1/operational-state/cause :Byte: 0
|
||||
radio.1/operational-state/state :Byte: 2
|
||||
radio.1/rate_set :Bstr16: .x8c129824b048606c
|
||||
radio.1/wtp-radio-information :Dword: 2
|
||||
radio.255/admin-state :Byte: 1
|
||||
radio.255/operational-state/cause :Byte: 0
|
||||
radio.255/operational-state/state :Byte: 2
|
||||
radio/0/cisco/regulatory-domain/code0 :Byte: 0
|
||||
radio/0/cisco/regulatory-domain/code1 :Byte: 1
|
||||
radio/0/cisco/regulatory-domain/set :Bool: true
|
||||
radio/0/cisco/regulatory-domain/slot :Byte: 0
|
||||
radio/0/wtp-radio-information :Dword: 1
|
||||
radio/1/wtp-radio-information :Dword: 2
|
||||
result-code :Dword: 0
|
||||
session-id :Bstr16: .x00006215
|
||||
statistics-timer :Word: 180
|
||||
tube.0/main :Byte: 12
|
||||
tube.0/zumsel :Byte: 12
|
||||
tube.1/main :Byte: 12
|
||||
tube.1/zumsel :Byte: 12
|
||||
wtp-board-data/board-id :Bstr16: .x0000
|
||||
wtp-board-data/mac-address :Bstr16: .x902b34de9ef1
|
||||
wtp-board-data/model-no :Bstr16: AIR-LAP1142N-E-K9
|
||||
wtp-board-data/model-no :Bstr16: AIR-LAP1142N-E-K9
|
||||
wtp-board-data/serial-no :Bstr16: FCZ1406W232
|
||||
wtp-board-data/vendor :Dword: 4232704
|
||||
wtp-descriptor/bootloader/vendor :Dword: 4232704
|
||||
@ -33,17 +159,10 @@ wtp-descriptor/max-radios :Byte: 2
|
||||
wtp-descriptor/radios-in-use :Byte: 2
|
||||
wtp-descriptor/software/vendor :Dword: 4232704
|
||||
wtp-descriptor/software/version :Bstr16: .x06036500
|
||||
wtp-fallback :Byte: 1
|
||||
wtp-frame-tunnel-mode :Byte: 4
|
||||
wtp-mac-type :Byte: 1
|
||||
wtp-name :Bstr16: WFAT-01
|
||||
|
||||
|
||||
capwap-timers/max-discovery-interval:Byte:0
|
||||
capwap-timers/min-discovery-interval:Byte:0
|
||||
capwap-timers/echo-interval:Byte:3
|
||||
|
||||
ac-name-with-priority/TubesAC:Byte:3
|
||||
|
||||
wtp-name :Bstr16: Banane
|
||||
wtp-reboot-statistics/ac-initiated-count :Word: 2
|
||||
wtp-reboot-statistics/hw-failure-count :Word: 0
|
||||
wtp-reboot-statistics/last-failure-type :Byte: 0
|
||||
@ -52,64 +171,3 @@ wtp-reboot-statistics/other-failure-count :Word: 13
|
||||
wtp-reboot-statistics/reboot-count :Word: 0
|
||||
wtp-reboot-statistics/sw-failure-count :Word: 0
|
||||
wtp-reboot-statistics/unknown-failure-count :Word: 0
|
||||
|
||||
|
||||
|
||||
radio/0/cisco/regulatory-domain/code0 :Byte: 0
|
||||
radio/0/cisco/regulatory-domain/code1 :Byte: 1
|
||||
radio/0/cisco/regulatory-domain/set :Bool: true
|
||||
radio/0/cisco/regulatory-domain/slot :Byte: 0
|
||||
|
||||
|
||||
cisco/ap-regulatory-domain.0/code0 :Byte: 0
|
||||
cisco/ap-regulatory-domain.0/code1 :Byte: 1
|
||||
cisco/ap-regulatory-domain.0/set :Bool: true
|
||||
cisco/ap-regulatory-domain.0/slot :Byte: 0
|
||||
cisco/ap-regulatory-domain.1/code0 :Byte: 0
|
||||
cisco/ap-regulatory-domain.1/code1 :Byte: 1
|
||||
cisco/ap-regulatory-domain.1/set :Bool: true
|
||||
cisco/ap-regulatory-domain.1/slot :Byte: 1
|
||||
|
||||
|
||||
tube.0/main : Byte : 12
|
||||
tube.0/zumsel : Byte : 12
|
||||
tube.1/main : Byte : 12
|
||||
tube.1/zumsel : Byte : 12
|
||||
|
||||
|
||||
ac-name-with-priority/TubesAC:Byte:3
|
||||
ac-name-with-priority/"ac2":Byte:05
|
||||
|
||||
radio.0/cisco-multi-domain-capability/first-channel :Word: 1
|
||||
radio.0/cisco-multi-domain-capability/max-tx-power-level :Word: 65535
|
||||
radio.0/cisco-multi-domain-capability/number-of-channels :Word: 13
|
||||
radio.0/cisco-multi-domain-capability/reserved :Byte: 1
|
||||
radio.0/cisco/wtp-radio-config/beacon-period :Word: 0
|
||||
radio.0/cisco/wtp-radio-config/bss-id :Bstr16: .x04fe7f499b90
|
||||
radio.0/cisco/wtp-radio-config/cfg-period :Byte: 0
|
||||
radio.0/cisco/wtp-radio-config/cfg-type :Byte: 1
|
||||
radio.0/cisco/wtp-radio-config/cfp-maximum-duration :Word: 0
|
||||
radio.0/cisco/wtp-radio-config/country-str1 :Bstr16: "DE "
|
||||
radio.0/cisco/wtp-radio-config/country-str2 :Bstr16: "DE "
|
||||
radio.0/cisco/wtp-radio-config/gpr-period :Byte: 0
|
||||
radio.0/cisco/wtp-radio-config/max-stations :Byte: 0
|
||||
radio.0/cisco/wtp-radio-config/occupancy-limit :Word: 0
|
||||
radio.0/cisco/wtp-radio-config/reg :Dword: 65536
|
||||
radio.1/cisco-multi-domain-capability/first-channel :Word: 36
|
||||
radio.1/cisco-multi-domain-capability/max-tx-power-level :Word: 65535
|
||||
radio.1/cisco-multi-domain-capability/number-of-channels :Word: 16
|
||||
radio.1/cisco-multi-domain-capability/reserved :Byte: 1
|
||||
radio.1/cisco/wtp-radio-config/beacon-period :Word: 0
|
||||
radio.1/cisco/wtp-radio-config/bss-id :Bstr16: .x04fe7f499b90
|
||||
radio.1/cisco/wtp-radio-config/cfg-period :Byte: 0
|
||||
radio.1/cisco/wtp-radio-config/cfg-type :Byte: 1
|
||||
radio.1/cisco/wtp-radio-config/cfp-maximum-duration :Word: 0
|
||||
radio.1/cisco/wtp-radio-config/country-str1 :Bstr16: DE
|
||||
radio.1/cisco/wtp-radio-config/country-str2 :Bstr16: DE
|
||||
radio.1/cisco/wtp-radio-config/gpr-period :Byte: 0
|
||||
radio.1/cisco/wtp-radio-config/max-stations :Byte: 0
|
||||
radio.1/cisco/wtp-radio-config/occupancy-limit :Word: 0
|
||||
radio.1/cisco/wtp-radio-config/reg :Dword: 65536
|
||||
|
||||
radio.0/wtp-radio-information :Dword: 1
|
||||
radio.1/wtp-radio-information :Dword: 2
|
||||
|
@ -116,7 +116,23 @@ static void do_update(struct conn * conn)
|
||||
|
||||
}
|
||||
|
||||
void clean_cfg(mavl_t cfg)
|
||||
{
|
||||
char key[CW_KTV_MAX_KEY_LEN];
|
||||
cw_KTV_t search;
|
||||
int i;
|
||||
int max;
|
||||
max = cw_ktv_idx_get(cfg,"radio");
|
||||
for (i=0;i<max+1;i++){
|
||||
sprintf(key,"radio.%d/wtp-radio-information",i);
|
||||
search.key = key;
|
||||
mavl_del(cfg,&search);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
int run(struct conn * conn)
|
||||
@ -147,9 +163,14 @@ int run(struct conn * conn)
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ( !cw_result_is_ok(rc))
|
||||
break;
|
||||
|
||||
clean_cfg(conn->remote_cfg);
|
||||
mavl_merge(conn->local_cfg,conn->remote_cfg);
|
||||
cw_ktv_save(conn->local_cfg,"cisco.ktv");
|
||||
|
||||
|
||||
/*cw_dbg(DBG_X,"We hav a message processed");*/
|
||||
|
||||
|
@ -142,6 +142,10 @@ int main (int argc, char **argv)
|
||||
|
||||
|
||||
cw_dbg_ktv_dump(global_cfg,DBG_CFG_DMP,"----- global cfg start -----","","----- global cfg end -----");
|
||||
|
||||
|
||||
/*clean_cfg(global_cfg);*/
|
||||
|
||||
|
||||
/* create a connection object */
|
||||
conn = conn_create_noq(-1, NULL);
|
||||
@ -216,11 +220,16 @@ exit(0);
|
||||
}
|
||||
}
|
||||
*/
|
||||
mavl_del_all(conn->remote_cfg);
|
||||
join(conn,&dis);
|
||||
clean_cfg(conn->remote_cfg);
|
||||
mavl_merge(conn->local_cfg,conn->remote_cfg);
|
||||
|
||||
|
||||
mavl_del_all(conn->remote_cfg);
|
||||
configure(conn);
|
||||
clean_cfg(conn->remote_cfg);
|
||||
mavl_merge(conn->local_cfg,conn->remote_cfg);
|
||||
|
||||
run(conn);
|
||||
|
||||
cw_discovery_free_results(&dis);
|
||||
|
Reference in New Issue
Block a user