{"id":27294470,"url":"https://github.com/nerdalert/gopher-net-ctl","last_synced_at":"2025-04-11T22:53:13.113Z","repository":{"id":26398979,"uuid":"29848698","full_name":"nerdalert/gopher-net-ctl","owner":"nerdalert","description":"CLI for Gopher Net Router","archived":false,"fork":false,"pushed_at":"2015-02-02T10:43:28.000Z","size":272,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T22:53:09.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nerdalert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-26T06:48:01.000Z","updated_at":"2015-02-02T10:43:28.000Z","dependencies_parsed_at":"2022-08-29T03:43:57.183Z","dependency_job_id":null,"html_url":"https://github.com/nerdalert/gopher-net-ctl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdalert%2Fgopher-net-ctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdalert%2Fgopher-net-ctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdalert%2Fgopher-net-ctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdalert%2Fgopher-net-ctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerdalert","download_url":"https://codeload.github.com/nerdalert/gopher-net-ctl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492951,"owners_count":21113162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-11T22:53:12.387Z","updated_at":"2025-04-11T22:53:13.103Z","avatar_url":"https://github.com/nerdalert.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/nerdalert/gopher-net-ctl.svg?branch=master)](https://travis-ci.org/nerdalert/gopher-net-ctl)\n\n\n# gopher-net-cli\nCLI for Gopher Net Router\n\n### Example Advertise a new route\n\n-Example adding a prefix to advertise into the tables (only a couple of fields are plumbed in until it uses the daemon data structures):\n\n\tgopher-net-ctl -d add route --prefix=172.15.14.0/24  --nexthop=172.16.86.1\n\n-Example Output in Quagga\n\n\tub134(config-router)# do sho ip route\n\tCodes: K - kernel route, C - connected, S - static, R - RIP,\n\t       O - OSPF, I - IS-IS, B - BGP, A - Babel,\n\t       \u003e - selected route, * - FIB route\n\n\tK\u003e* 0.0.0.0/0 via 172.16.86.2, eth0\n\tC\u003e* 127.0.0.0/8 is directly connected, lo\n\tB\u003e* 172.15.14.0/24 [200/0] via 172.16.86.1, eth0, 00:00:03\n\tC\u003e* 172.16.86.0/24 is directly connected, eth0\n\n### Example remove the advertised route\n\n-This will stop advertising the requested prefix. There is some cidr from the specified node.from the specified note a new route\n\n\tgopher-net-ctl -d delete route --prefix=172.15.14.0/24\n\nExample Output in Quagga\n\n\tub134(config-router)# do sho ip route\n\tCodes: K - kernel route, C - connected, S - static, R - RIP,\n\t       O - OSPF, I - IS-IS, B - BGP, A - Babel,\n\t       \u003e - selected route, * - FIB route\n\n\tK\u003e* 0.0.0.0/0 via 172.16.86.2, eth0\n\tC\u003e* 127.0.0.0/8 is directly connected, lo\n\tC\u003e* 172.16.86.0/24 is directly connected, eth0\n\n### Host Route Support\n\nThis and the API will also support hostnames that are resolvable by the target node/bgp speaker.\n\n-Add a hosts DNS name (or VIP) to be advertised.\n\n\tgopher-net-ctl -d add route --prefix=google-public-dns-a.google.com  --nexthop=172.16.86.1\n\n-The the resolved address will be advertised into the IGP/EGP as in the Quagga interface output below that is peered to an instance of the gnet daemon.\n\n\tub134(config-router)# do sho ip route\n\tCodes: K - kernel route, C - connected, S - static, R - RIP,\n\t       O - OSPF, I - IS-IS, B - BGP, A - Babel,\n\t       \u003e - selected route, * - FIB route\n\n\tK\u003e* 0.0.0.0/0 via 172.16.86.2, eth0\n\tB\u003e* 8.8.8.8/32 [200/0] via 172.16.86.1, eth0, 00:00:08\n\tC\u003e* 127.0.0.0/8 is directly connected, lo\n\tB\u003e* 172.15.14.0/24 [200/0] via 172.16.86.1, eth0, 00:07:46\n\tC\u003e* 172.16.86.0/24 is directly connected, eth0\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdalert%2Fgopher-net-ctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerdalert%2Fgopher-net-ctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdalert%2Fgopher-net-ctl/lists"}