Commit graph

481 commits

Author SHA1 Message Date
Abhishek Kondur bd878f79c1 merge conflicts resolved 2023-02-07 14:24:39 +04:00
0xdcarns 6a5057f57b removed client mode and references 2023-02-06 12:14:52 -05:00
Abhishek Kondur 7be2771ea8 comments for exported 2023-02-06 20:18:11 +04:00
Abhishek Kondur 3d1e4f6ba9 fix node tests 2023-02-06 20:11:31 +04:00
Abhishek Kondur 66faa18fb9 skip internet gateways 2023-02-06 20:04:47 +04:00
Abhishek Kondur b695f6e288 Merge branch 'develop' of https://github.com/gravitl/netmaker into GRA-1054/egress_route_manager 2023-02-06 20:01:33 +04:00
Abhishek Kondur 6a3fcaf664 add egress gw ranges to common node model 2023-02-04 16:24:46 +04:00
Abhishek Kondur 4deaac5de1 add node network to ext. model 2023-02-04 14:02:33 +04:00
Abhishek Kondur 92922f17bd update network model 2023-02-04 10:13:16 +04:00
Abhishek Kondur 0505629fd1 egress model update,remove interface check 2023-02-04 09:54:56 +04:00
Abhishek Kondur f565d59af3 add egress gw addr to model 2023-02-02 21:33:50 +04:00
Abhishek Kondur b7d3c5b7bd add egress id to model 2023-02-02 21:25:12 +04:00
Matthew R Kasun 77cfae41ff remove postup/down 2023-02-02 11:16:54 -05:00
Abhishek Kondur 04ac036b68 add egress gw info to host update 2023-02-02 10:22:20 +04:00
Abhishek Kondur 3d48d005d6 resolve merge conflicts 2023-02-01 23:19:51 +04:00
0xdcarns f034c74838 fixed default expiration date setting and removed unused func 2023-02-01 11:21:30 -05:00
dcarns b46af8277b
Merge pull request #1986 from gravitl/GRA-892-remove-netmaker-dependency-on-netclient
remove dependencies on netclient
2023-02-01 08:28:39 -05:00
Abhishek Kondur 5d2ff009bf comments 2023-02-01 16:48:41 +04:00
Abhishek Kondur 2ffd3cab72 add ingress GW address to route info 2023-02-01 13:40:15 +04:00
Abhishek Kondur 5e9798bb05 add peer keys 2023-02-01 10:28:11 +04:00
Matthew R Kasun 4e2e66c06f move struct back to netclient 2023-01-31 08:53:37 -05:00
Abhishek Kondur be741c1b44 add json tags 2023-01-31 16:14:00 +04:00
Abhishek Kondur 62e7cc366e update ext client model 2023-01-31 13:33:15 +04:00
Abhishek Kondur 35c8fb3b41 addd server to host update model 2023-01-31 12:48:37 +04:00
Abhishek Kondur 36cf202ad5 extclient info model changes 2023-01-31 12:37:22 +04:00
Abhishek Kondur 841a61a0b2 get consolidated ingress update 2023-01-31 11:10:23 +04:00
Abhishek Kondur 56d26b5ea0 add ingress model to host peer update 2023-01-31 10:21:10 +04:00
Abhishek Kondur f2d8cf4fb6 add ext peers field to host update 2023-01-31 09:27:36 +04:00
Matthew R Kasun 4e3ff513b7 remove point to site from network model 2023-01-30 10:47:40 -05:00
Matthew R Kasun 4d4252d271 leave netclient specific structs in netclient 2023-01-30 10:23:43 -05:00
Matthew R Kasun aad4abc181 remove dependencies on netclient 2023-01-27 14:51:06 -05:00
Anish Mukherjee b926d393be fix node ipv6 address update 2023-01-27 10:01:54 +05:30
dcarns 6e50011ceb
Merge pull request #1978 from gravitl/GRA-1060/bug_proxy_listen_port
Gra 1060/bug public listen port
2023-01-26 18:28:30 -05:00
Aceix bb0956f85f fix(GRA-1062): fix node expdate update 2023-01-26 14:08:02 +00:00
Abhishek Kondur f19b33a84c add public port to api model 2023-01-26 14:01:46 +04:00
Abhishek Kondur 051f60343b reset ingress to older way 2023-01-25 15:35:45 +04:00
Abhishek Kondur 73386e8f2e set node defaults 2023-01-24 12:37:12 +04:00
dcarns eb608dc90b
Merge pull request #1961 from gravitl/gra-967-migrate-function
reworked migrate function
2023-01-23 15:00:21 -05:00
dcarns ff0a770174
Merge pull request #1960 from gravitl/GRA-1019-fix-tests
re-enabled tests
2023-01-23 09:28:07 -05:00
Matthew R Kasun 770c19302e reworked migrate function 2023-01-22 16:31:43 -05:00
0xdcarns f66ba5277e re-enabled tests 2023-01-20 17:38:32 -05:00
Matthew R Kasun 5423a458c3 review comments 2023-01-20 13:29:19 -05:00
Matthew R Kasun e790b87d81 add rebase change 2023-01-20 08:47:41 -05:00
Abhishek Kondur 63f18f539e GRA-985: rm locallistenport, added proxy public listen port field 2023-01-20 06:26:08 -05:00
Matthew R Kasun e77bd39f44 remove localaddress from host 2023-01-20 06:04:50 -05:00
Matthew R Kasun 9edb541388 remove localrange 2023-01-20 05:42:05 -05:00
Abhishek Kondur fffcf6ba5d remove wait.sh,add standard username,password mq auth 2023-01-20 09:49:43 +05:30
dcarns c459594137
Merge pull request #1949 from gravitl/GRA-985/host_listen_port
Gra 985/host listen port
2023-01-18 13:09:42 -05:00
Abhishek Kondur a50242e2f9 pr comment: set public listen port 2023-01-18 21:06:45 +05:30
Abhishek Kondur 6b3a636ca9 change json field for public port 2023-01-18 15:06:37 +05:30
Abhishek Kondur 10f724310c change public listen port field 2023-01-18 12:00:26 +05:30
dcarns 89f8c3a5b8
Merge pull request #1944 from gravitl/story/GRA-995
fix(GRA-995): fix for update node address check
2023-01-17 22:31:53 -05:00
Abhishek Kondur c077e3d1c1 GRA-985: rm locallistenport, added proxy public listen port field 2023-01-18 02:03:19 +05:30
Matthew R Kasun 901fd71c95 add defaultinterface to host/apihost models 2023-01-17 14:23:13 -05:00
Aceix a2ab933f89 fix(GRA-995): fix for update node address check 2023-01-17 10:04:12 +00:00
Abhishek Kondur 5f65f84b79 comments for struct and host update actions 2023-01-17 12:54:05 +05:30
Abhishek Kondur 853ddac457 host update model 2023-01-17 10:27:23 +05:30
Aceix b425501bc7
Merge pull request #1925 from gravitl/story/GRA-899
fix(GRA-899): send UI compatible interface address
2023-01-13 12:29:42 +00:00
Aceix 584d92b1d6 fix(GRA-899): send UI compatible interface address 2023-01-13 09:58:00 +00:00
Abhishek Kondur bf9a93c41b remove IsServer field from metric model 2023-01-12 14:50:04 +05:30
Abhishek Kondur f6741cc7d6 Merge branch 'feature_host_relay' of https://github.com/gravitl/netmaker into feature_host_metrics 2023-01-11 23:10:50 +05:30
Abhishek Kondur 0a5a48f80b add relay field to api to host model conversion 2023-01-11 19:14:25 +05:30
Abhishek Kondur 009845a024 support node level metrics on host 2023-01-11 11:01:22 +05:30
Abhishek Kondur fca20905c1 remove bson tags,go mod update 2023-01-11 07:29:33 +05:30
Abhishek Kondur b52a47d8aa use new node model on mq update node handler 2023-01-10 21:43:22 +05:30
Abhishek Kondur a541fe7948 exported struct comment 2023-01-10 19:57:05 +05:30
Abhishek Kondur 7ba6ce93d9 update proxy status 2023-01-10 19:08:58 +05:30
Abhishek Kondur d373e90597 enable proxy when host is relay and on relayed hosts, add relay related feilds to api host model 2023-01-09 23:03:23 +05:30
Abhishek Kondur 6385527d01 moved relay to host level, peer updates with relay configuration for host 2023-01-09 11:43:40 +05:30
Abhishek Kondur 893f13d8b4 proxy update json marshal fix 2023-01-09 08:12:26 +05:30
Abhishek Kondur 023f29ee71 pr comments 2023-01-06 21:27:40 +05:30
Abhishek Kondur 6bc3417caf comments for exported funcs 2023-01-06 18:18:25 +05:30
Abhishek Kondur ca3d9dc40b fix node update 2023-01-06 16:58:41 +05:30
Abhishek Kondur 9f0ef1628c node update fix, nil pointer errors fix 2023-01-06 00:29:55 +05:30
Abhishek Kondur 950fd3c290 rm peer from host model 2023-01-05 16:17:09 +05:30
Abhishek Kondur bff68bd945 rm peers from node model 2023-01-05 14:56:20 +05:30
Abhishek Kondur 2ff8684fd4 keep node level peers for now 2023-01-05 09:42:41 +05:30
Abhishek Kondur 4c63478888 get node fix 2023-01-05 09:31:31 +05:30
Abhishek Kondur 72e4b914b9 move peers to host level 2023-01-05 09:24:46 +05:30
Abhishek Kondur 88902f7823 fix host peer update model,add server name to peer update topic 2023-01-04 11:03:13 +05:30
Abhishek Kondur de6361e7e5 Merge branch 'netclient_refactor_latest' of https://github.com/gravitl/netmaker into netclient_refactor_peer_updates 2023-01-04 10:29:29 +05:30
Abhishek Kondur d99526fd54 peer update for host 2023-01-04 10:04:17 +05:30
0xdcarns f1f164cf35 fix host ID return for API 2023-01-03 14:17:36 -05:00
Abhishek Kondur 8a9241d5e2 fix keepalive conversion type 2022-12-30 11:43:48 +05:30
Abhishek Kondur f9bfed9773 add local address field to host model 2022-12-28 09:10:44 +05:30
Abhishek Kondur 7cd11e4d86 proxy named pkg reference 2022-12-28 08:03:35 +05:30
Abhishek Kondur 2cb3ee65af change proxy models reference paths 2022-12-27 21:56:55 +05:30
Matthew R Kasun a371b7ae21
Merge branch 'netclient_refactor_latest' into GRA-824-getPeerUpdate 2022-12-23 15:59:55 -05:00
0xdcarns 368d01ff10 removed localaddress 2022-12-23 14:06:39 -05:00
Matthew R. Kasun eae92470c5 refactor of peerUpdate
contains some debugging logging
2022-12-23 13:41:17 -05:00
0xdcarns 6669f38961 add isdefault to models 2022-12-22 13:39:29 -05:00
0xdcarns c257827807 merge conflicts 2022-12-22 09:22:55 -05:00
Matthew R. Kasun bce2f8a45c fix compile errors 2022-12-22 06:42:33 -05:00
0xdcarns e0d3d17921 created conversion functions for hosts 2022-12-21 16:42:24 -05:00
0xdcarns 8f8335aa4f finished model conversion 2022-12-21 14:06:33 -05:00
0xdcarns e92f524fbe finished convert api to nm node 2022-12-21 11:56:29 -05:00
Aceix d1c51aed24 tech(GRA-823): address comments 2022-12-21 10:17:20 -05:00
Aceix dcad50d0ee tech(GRA-823): add node DTO 2022-12-21 10:17:20 -05:00
Matthew R. Kasun 716dc3def5 update validations for boolean attributes 2022-12-21 06:29:05 -05:00
Matthew R. Kasun 0272e88c0f fix panic joining non-dual stack network 2022-12-21 05:58:52 -05:00
Matthew R. Kasun 770a293049 new constant for wireguard interface name 2022-12-21 03:31:37 -05:00
Matthew R. Kasun 38cd4d7700 refactor join
also removes server node
suspect there may be issues with proxy
and UI interactions with nodes
2022-12-20 15:29:09 -05:00
Matthew R. Kasun c086e9499d rebase
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-12-19 15:15:35 -05:00
0xdcarns cc529ab3bd finished initial crud for hosts, fixed stun server close bug 2022-12-19 14:55:24 -05:00
Matthew R. Kasun 4f303dd4c5 add comment for public type 2022-12-19 11:03:14 -05:00
Matthew R. Kasun dd80fd6ab4 new host model 2022-12-19 10:41:55 -05:00
Matthew R Kasun 55f7a0eb02
Merge pull request #1828 from gravitl/story/GRA-752
fix(GRA-752f): add address string to be sent to frontend
2022-12-16 07:42:07 -05:00
Aceix 457060d41a fix(GRA-752f): add address string to be sent to frontend 2022-12-14 11:39:33 +00:00
Abhishek Kondur 759b9bc6cd rm ext cidr 2022-12-13 01:14:28 +05:30
Abhishek Kondur 07dd20734d extclients internal ips 2022-12-12 22:49:35 +05:30
Abhishek Kondur 8fc09fd5cd fix stun port format,use proxy listen port from node model 2022-12-12 10:33:35 +05:30
Abhishek Kondur 0b8257f0d7 fix models change, merge conflicts resolved 2022-12-12 08:50:28 +05:30
Matthew R. Kasun 99cf813753 fix yaml tag for HostID 2022-12-09 13:25:24 -05:00
Abhishek Kondur e00199a650 update proxy pkg path 2022-12-09 00:54:11 +05:30
Abhishek Kondur 1dab5ed004 update proxy pkg path 2022-12-09 00:48:47 +05:30
Abhishek Kondur 449a1e25a8 resolve conflicts 2022-12-09 00:05:07 +05:30
Abhishek Kondur 79aa9893dc change stun port to int type 2022-12-08 21:45:32 +05:30
Abhishek Kondur d8075e69c6 add alias internal ip to ext clients 2022-12-08 19:48:47 +05:30
Abhishek Kondur 7f5e1a141f store proxy metrics in the server 2022-12-08 14:20:50 +05:30
Abhishek Kondur 695e3b1661 merge conflicts resolved 2022-12-08 09:28:41 +05:30
Abhishek Kondur 80c7d46ec6 docker compose update, add stun to caddyfile 2022-12-06 19:27:38 +05:30
Abhishek Kondur 4b1a85a3ee proxy changes 2022-12-02 17:35:41 +05:30
Abhishek Kondur 5b7ead91e6 merge conflicts resolved 2022-12-02 10:08:01 +05:30
Matthew R. Kasun c5919b347c local interfaces 2022-11-28 12:58:24 -05:00
Matthew R. Kasun 5e4e512890 review comments 2022-11-28 12:40:52 -05:00
Matthew R. Kasun 6b18ff57c9 add all local interfaces to node 2022-11-28 11:16:19 -05:00
Abhishek Kondur f95306ddbd make proxy optional 2022-11-20 09:35:29 +05:30
Matthew R. Kasun 4df672de68 refactor node deletion 2022-11-15 09:52:17 -05:00
Abhishek Kondur a7c0abe2fc refactor proxy updates 2022-11-07 01:25:04 +05:30
Abhishek Kondur acae6c3aed added relay functionality to proxy 2022-11-04 01:24:48 +05:30
Matthew R. Kasun b3f90f2929 add hostid and separate server name/broker name 2022-11-02 11:22:40 -04:00
Abhishek Kondur 1b92cb2442 add stun to servercfg 2022-10-26 10:53:57 +05:30
0xdcarns 75fc15ac4c commented out logic 2022-09-28 13:05:41 -04:00
afeiszli 29ce2fa57a refactor failover logic to set per-peer. Uses Ingress Gateway logic instead of Relay logic 2022-09-27 13:59:49 -04:00
afeiszli 6dcd801941 changing default failover value 2022-09-27 10:30:01 -04:00
0xdcarns d565dbeaf8 initial logic for failover 2022-09-27 10:30:01 -04:00
Matthew R. Kasun d54fb0823e ee check 2022-09-22 12:59:59 -04:00
afeiszli 4157ddb73a fix staticcheck 2022-09-19 13:27:30 -04:00
afeiszli 255e400be8 set NetworkUser defaults 2022-09-14 15:08:38 -04:00
afeiszli 96772bb4bd network and ACL initialization 2022-09-13 15:41:23 -04:00
0xdcarns 88cd0a6497 initial commit 2022-09-13 15:25:56 -04:00
Matthew R. Kasun 8eb568e25a remove model validation for node.LocalAddress 2022-09-12 15:38:01 -04:00
Alex Feiszli 5d27db6e22
Merge pull request #1536 from gravitl/feature_v0.15.2_connect_status
send connected status on checkin
2022-09-12 11:51:55 -04:00
Abhishek Kondur 91cc77ee5b added comments 2022-09-12 18:11:21 +05:30
Abhishek Kondur 8cbe796748 add servers to telemetry data 2022-09-12 18:06:17 +05:30
Matthew R. Kasun 84e58d0d5a send connected status on checkin 2022-09-08 06:19:10 -04:00
Alex Feiszli 3ead2b5469
Merge pull request #1509 from gravitl/feature_v0.15.1_ipv6_egress
IPv6 support for gateways
2022-09-06 17:03:26 -04:00
Abhishek Kondur eba6b98e10 add validate tag for ingress and egress 2022-09-06 19:42:08 +05:30
Alex Feiszli a95e0d25c6
Merge pull request #1499 from k4s0/develop
added new controller for creating custom ExtClient
2022-09-02 14:49:58 -04:00
Matthew R. Kasun ecc9ef5aac clean up nft rules 2022-09-02 11:01:19 -04:00