_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c8000
train
// InspectNameserver returns nameserver state as json string
{ "resource": "" }
c8001
train
// Init initializes the consul client
{ "resource": "" }
c8002
train
// GetObj reads the object
{ "resource": "" }
c8003
train
// ListDir returns a list of keys in a directory
{ "resource": "" }
c8004
train
// SetObj writes an object
{ "resource": "" }
c8005
train
// DelObj deletes an object
{ "resource": "" }
c8006
train
// ClearState removes key from etcd.
{ "resource": "" }
c8007
train
// ReadState reads key into a core.State with the unmarshaling function.
{ "resource": "" }
c8008
train
// ReadAllState Reads all the state from baseKey and returns a list of core.State.
{ "resource": "" }
c8009
train
// AddLink adds a one way link to target object
{ "resource": "" }
c8010
train
// AddLinkSet Aadds a link into linkset. initialize the linkset if required
{ "resource": "" }
c8011
train
// RemoveLinkSet removes a link from linkset
{ "resource": "" }
c8012
train
// WriteObj writes the model to DB
{ "resource": "" }
c8013
train
// ReadObj reads an object from DB
{ "resource": "" }
c8014
train
// DeleteObj deletes and object from DB
{ "resource": "" }
c8015
train
// ReadAllObj reads all objects of a type
{ "resource": "" }
c8016
train
// GetEndpointGroupID returns endpoint group Id for a service // It autocreates the endpoint group if it doesnt exist
{ "resource": "" }
c8017
train
// getGwCIDR utility that reads the gw information
{ "resource": "" }
c8018
train
// addPolicyContracts adds contracts defined by attached policy // additionally, it adds contract links from this epg to those contracts
{ "resource": "" }
c8019
train
//CreateAppNw Fill in the Nw spec and launch the nw infra
{ "resource": "" }
c8020
train
//DeleteAppNw deletes the app profile from infra
{ "resource": "" }
c8021
train
// NewLock returns a new lock instance
{ "resource": "" }
c8022
train
// IsReleased Checks if the lock is released
{ "resource": "" }
c8023
train
// createSession creates a consul-session for the lock
{ "resource": "" }
c8024
train
// renewSession keeps the session alive.. If a session expires, it creates new one..
{ "resource": "" }
c8025
train
// GetEndpoint is a utility that reads the EP oper state
{ "resource": "" }
c8026
train
// NewOvsdbDriver creates a new OVSDB driver instance. // Create one ovsdb driver instance per OVS bridge that needs to be managed
{ "resource": "" }
c8027
train
// Update updates the ovsdb with the libovsdb.TableUpdates.
{ "resource": "" }
c8028
train
// Create or delete an OVS bridge instance
{ "resource": "" }
c8029
train
// GetPortOrIntfNameFromID gets interface name from id
{ "resource": "" }
c8030
train
// CreatePort creates an OVS port
{ "resource": "" }
c8031
train
// GetInterfacesInPort gets list of interfaces in a port in sorted order
{ "resource": "" }
c8032
train
// GetIntfInfo gets interface information from "Interface" table
{ "resource": "" }
c8033
train
//CreatePortBond creates port bond in OVS
{ "resource": "" }
c8034
train
// DeletePortBond deletes a port bond from OVS
{ "resource": "" }
c8035
train
//UpdatePolicingRate will update the ingress policing rate in interface table.
{ "resource": "" }
c8036
train
// CreateVtep creates a VTEP port on the OVS
{ "resource": "" }
c8037
train
// GetOfpPortNo returns OFP port number for an interface
{ "resource": "" }
c8038
train
// IsVtepPresent checks if VTEP already exists
{ "resource": "" }
c8039
train
// SetClusterMode sets the cluster mode for the contiv plugin
{ "resource": "" }
c8040
train
// CreateGlobal sets the global state
{ "resource": "" }
c8041
train
// DeleteGlobal delete global state
{ "resource": "" }
c8042
train
// DeleteTenant deletes a tenant from the state store based on its ConfigTenant.
{ "resource": "" }
c8043
train
// IsAciConfigured returns true if aci is configured on netmaster.
{ "resource": "" }
c8044
train
// get current version
{ "resource": "" }
c8045
train
// slaveProxyHandler redirects to current master
{ "resource": "" }
c8046
train
// ReadAll reads all state objects for the endpoints.
{ "resource": "" }
c8047
train
// WatchAll fills a channel on each state event related to endpoints.
{ "resource": "" }
c8048
train
// Init initializes the master daemon
{ "resource": "" }
c8049
train
// Find all netplugin nodes and add them to ofnet master
{ "resource": "" }
c8050
train
// getPluginAddress gets the adrress of the netplugin agent given the host name
{ "resource": "" }
c8051
train
// ClearEndpoints clears all the endpoints
{ "resource": "" }
c8052
train
// runLeader runs leader loop
{ "resource": "" }
c8053
train
// runFollower runs the follower FSM loop
{ "resource": "" }
c8054
train
// becomeLeader changes daemon FSM state to master
{ "resource": "" }
c8055
train
// becomeFollower changes FSM state to follower
{ "resource": "" }
c8056
train
// InitServices init watch services
{ "resource": "" }
c8057
train
// RunMasterFsm runs netmaster FSM
{ "resource": "" }
c8058
train
// getMasterInfo returns information about cluster
{ "resource": "" }
c8059
train
// PolicyAttach attaches a policy to an endpoint and adds associated rules to policyDB
{ "resource": "" }
c8060
train
// PolicyDetach detaches policy from an endpoint and removes associated rules from policyDB
{ "resource": "" }
c8061
train
// PolicyAddRule adds a rule to existing policy
{ "resource": "" }
c8062
train
// initStateDriver creates a state driver based on the cluster store URL
{ "resource": "" }
c8063
train
// parseRange parses a string in "1,2-3,4-10" format and returns an array of values
{ "resource": "" }
c8064
train
// processResource handles resource commands
{ "resource": "" }
c8065
train
// execute name space commands
{ "resource": "" }
c8066
train
// execute a batch of namespace commands
{ "resource": "" }
c8067
train
// setUpAPIClient sets up an instance of the k8s api server
{ "resource": "" }
c8068
train
// InitKubServiceWatch initializes the k8s service watch
{ "resource": "" }
c8069
train
// InitCNIServer initializes the k8s cni server
{ "resource": "" }
c8070
train
// epCleanUp deletes the ep from netplugin and netmaster
{ "resource": "" }
c8071
train
// createEP creates the specified EP in contiv
{ "resource": "" }
c8072
train
// getLink is a wrapper that fetches the netlink corresponding to the ifname
{ "resource": "" }
c8073
train
// nsToPID is a utility that extracts the PID from the netns
{ "resource": "" }
c8074
train
// setIfAttrs sets the required attributes for the container interface
{ "resource": "" }
c8075
train
// setDefGw sets the default gateway for the container namespace
{ "resource": "" }
c8076
train
// getEPSpec gets the EP spec using the pod attributes
{ "resource": "" }
c8077
train
// deletePod is the handler for pod deletes
{ "resource": "" }
c8078
train
// freeAddrOnErr deferred function that cleans up on error
{ "resource": "" }
c8079
train
// CreateEndpoints creates the endpoints for a given tenant.
{ "resource": "" }
c8080
train
// DeleteEndpoints deletes the endpoints on a give host
{ "resource": "" }
c8081
train
// DeleteEndpointID deletes an endpoint by ID.
{ "resource": "" }
c8082
train
// CreateEpBindings binds an endpoint to a host by updating host-label info // in driver's endpoint configuration.
{ "resource": "" }
c8083
train
// Some utility functions to work with the external contracts // Cleanup external contracts from an epg.
{ "resource": "" }
c8084
train
// Setup external contracts for an epg.
{ "resource": "" }
c8085
train
// ExtContractsGroupCreate creates a new group of external contracts
{ "resource": "" }
c8086
train
// ExtContractsGroupUpdate updates an existing group of contract sets
{ "resource": "" }
c8087
train
// ExtContractsGroupDelete deletes an existing external contracts group
{ "resource": "" }
c8088
train
// MakeHTTPHandler is a simple Wrapper for http handlers
{ "resource": "" }
c8089
train
// UnknownAction is a catchall handler for additional driver functions
{ "resource": "" }
c8090
train
// HTTPPost performs http POST operation
{ "resource": "" }
c8091
train
// HTTPDel performs http DELETE operation
{ "resource": "" }
c8092
train
// NewContivClient creates a new client instance
{ "resource": "" }
c8093
train
// SetAuthToken sets the token used to authenticate with auth_proxy
{ "resource": "" }
c8094
train
// Login performs a login to auth_proxy and returns the response and body
{ "resource": "" }
c8095
train
// addCustomRequestHeader records a custom request header to be added to all outgoing requests
{ "resource": "" }
c8096
train
// processCustomHeaders adds all custom request headers to the target request. // this function is called before a GET, POST, or DELETE is sent by the client.
{ "resource": "" }
c8097
train
// AciGwPost posts the aciGw object
{ "resource": "" }
c8098
train
// AciGwList lists all aciGw objects
{ "resource": "" }
c8099
train
// AciGwDelete deletes the aciGw object
{ "resource": "" }