Giter VIP home page Giter VIP logo

go-tmsh's Introduction

go-tmsh

Build Status license

go-tmsh is a library providing functions to operate the BIG-IP Traffic Management Shell (TMSH) via SSH.

go-tmsh is also a command-line tool that will operate TMSH using these functions.

Tested versions of BIG-IP

Currently the following versions of BIG-IP are tested.

  • v11.5.3
  • v11.2.1

Install

$ go get github.com/yukirii/go-tmsh/...

Usage

Using the go-tmsh library

import "github.com/yukirii/go-tmsh"

Please refer to the examples directory for an example source code.

Using the tmsh command line tool

tmsh is single command-line application. This application then takes subcommands. To check the all available commands,

$ tmsh help

To get help for any specific subcommand, run it with the -h flag,

$ tmsh node -h

Licence

MIT

go-tmsh's People

Contributors

arcticsnowman avatar epy0n0ff avatar yukirii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

go-tmsh's Issues

Pool struct fails to parse on newly created but empty pools

When a pool in BigIP is newly created, the TMSH call to get the pool definition does not return a status.status-reason.

There needs to be the ability to do the equivalent of the JSON 'omitempty' empty

// Pool contains information about each Pool
type Pool struct {
	ActiveMemberCount int          `ltm:"active-member-cnt"`
	Name              string       `ltm:"name"`
	MonitorRule       string       `ltm:"monitor-rule"`
	AvailabilityState string       `ltm:"status.availability-state"`
	EnabledState      string       `ltm:"status.enabled-state"`
	StatusReason      string       `ltm:"status.status-reason"`
	PoolMembers       []PoolMember `ltm:"members"`
}

Support features

  • Node
    • Get Node
    • Create Node
    • Delete Node
    • Enable/Disable Node
  • Pool
    • Get Pool
    • Create Pool
    • Delete Pool
    • Add Monitor to Pool
    • Add Pool Member
    • Delete Pool Member
    • Enable/Disable Pool Member
  • Virtual Server
    • Get Virtual Server
    • Create Virtual Server
    • Delete Virtual Server
    • Apply Policy
  • Firewall
    • Create security firewall policy
  • Route
    • Route-Advertisement
  • other
    • Execute any TMSH command

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.