<commit_before>package bigip

import (
	"fmt"
	"github.com/scottdware/go-bigip"
)

func main() {
	// Connect to the BIG-IP system.
	b := bigip.NewSession("ltm.company.com", "admin", "secret")

	// Get a list of all VLAN's, and print their names to the console.
	vlans, err := b.Vlans()
	if err != nil {
		fmt.Println(err)
	}

	for _, vlan := range vlans.Vlans {
		fmt.Println(vlan.Name)
	}

	// Create a VLAN
	b.CreateVlan("vlan1138")

	// Add an untagged interface to a VLAN.
	b.AddInterfaceToVlan("vlan1138", "1.2", false)

	// Delete a VLAN.
	b.DeleteVlan("vlan1138")

	// Create a couple of nodes.
	b.CreateNode("web-server-1", "192.168.1.50")
	b.CreateNode("web-server-2", "192.168.1.51")
	b.CreateNode("ssl-web-server-1", "10.2.2.50")
	b.CreateNode("ssl-web-server-2", "10.2.2.51")

	// Create a pool, and add members to it. When adding a member, you must
	// specify the port in the format of <node name>:<port>.
	b.CreatePool("web_farm_80_pool")
	b.AddPoolMember("web_farm_80_pool", "web-server-1:80")
	b.AddPoolMember("web_farm_80_pool", "web-server-2:80")

	b.CreatePool("ssl_443_pool")
	b.AddPoolMember("ssl_443_pool", "ssl-web-server-1:443")
	b.AddPoolMember("ssl_443_pool", "ssl-web-server-2:443")

	// Create a virtual server, with the above pool. The third field is the subnet
	// mask, and that can either be in CIDR notation or decimal. For any/all destinations
	// and ports, use '0' for the mask and/or port.
	b.CreateVirtualServer("web_farm_VS", "0.0.0.0", "0.0.0.0", "web_farm_80_pool", 80)
	b.CreateVirtualServer("ssl_web_farm_VS", "10.1.1.0", "24", "ssl_443_pool", 443)

	// Remove a pool member.
	b.DeletePoolMember("web_farm_80_pool", "web-server-2:80")
}<commit_msg>Added more examples<commit_after>package bigip

import (
	"fmt"
	"github.com/scottdware/go-bigip"
)

func main() {
	// Connect to the BIG-IP system.
	b := bigip.NewSession("ltm.company.com", "admin", "secret")

	// Get a list of all VLAN's, and print their names to the console.
	vlans, err := b.Vlans()
	if err != nil {
		fmt.Println(err)
	}

	for _, vlan := range vlans.Vlans {
		fmt.Println(vlan.Name)
	}

	// Create a VLAN
	b.CreateVlan("vlan1138")

	// Add an untagged interface to a VLAN.
	b.AddInterfaceToVlan("vlan1138", "1.2", false)

	// Delete a VLAN.
	b.DeleteVlan("vlan1138")

	// Create a couple of nodes.
	b.CreateNode("web-server-1", "192.168.1.50")
	b.CreateNode("web-server-2", "192.168.1.51")
	b.CreateNode("ssl-web-server-1", "10.2.2.50")
	b.CreateNode("ssl-web-server-2", "10.2.2.51")

	// Create a pool, and add members to it. When adding a member, you must
	// specify the port in the format of <node name>:<port>.
	b.CreatePool("web_farm_80_pool")
	b.AddPoolMember("web_farm_80_pool", "web-server-1:80")
	b.AddPoolMember("web_farm_80_pool", "web-server-2:80")

	b.CreatePool("ssl_443_pool")
	b.AddPoolMember("ssl_443_pool", "ssl-web-server-1:443")
	b.AddPoolMember("ssl_443_pool", "ssl-web-server-2:443")

	// Create a virtual server, with the above pool. The third field is the subnet
	// mask, and that can either be in CIDR notation or decimal. For any/all destinations
	// and ports, use '0' for the mask and/or port.
	b.CreateVirtualServer("web_farm_VS", "0.0.0.0", "0.0.0.0", "web_farm_80_pool", 80)
	b.CreateVirtualServer("ssl_web_farm_VS", "10.1.1.0", "24", "ssl_443_pool", 443)

	// Remove a pool member.
	b.DeletePoolMember("web_farm_80_pool", "web-server-2:80")

	// Create a trunk, with LACP enabled.
	interfaces := []string{"1.2", "1.4", "1.6"}
	b.CreateTrunk("Aggregated", interfaces, true)

	// Disable a virtual address.
	b.VirtualAddressStatus("web_farm_VS", "disable")

	// Disable a pool member.
	b.PoolMemberStatus("ssl_443_pool", "ssl-web-server-1:443", "disable")

	// Create a self IP.
	b.CreateSelfIP("vlan1138", "10.10.10.1/24", "vlan1138")
}
{'fraction_non_alphanumeric': 0.17155696537139836, 'fraction_numerical': 0.06502775574940524, 'mean_word_length': 3.9270833333333335, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 15, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '637838', 'n_tokens_mistral': 1670, 'n_tokens_neox': 1527, 'n_words': 351}