INSTRUCTION stringlengths 1 8.43k | RESPONSE stringlengths 75 104k |
|---|---|
get a list of imports from a Python program | def get_imports(fname):
""" get a list of imports from a Python program """
txt = ''
with open(fname, 'r') as f:
for line in f:
if line[0:6] == 'import':
txt += '<PRE>' + strip_text_after_string(line[7:], ' as ') + '</PRE>\n'
return txt + '<BR>' |
This is a sample program to show how a learning agent can be logged using AIKIF. The idea is that this main function is your algorithm which will run until it finds a successful result. The result is returned and the time taken is logged. There can optionally be have additional functions to call to allow for easy loggi... | def main(arg1=55, arg2='test', arg3=None):
"""
This is a sample program to show how a learning agent can
be logged using AIKIF.
The idea is that this main function is your algorithm, which
will run until it finds a successful result. The result is
returned and the time taken is logged.
... |
get a set of keys from redis | def get(self, key):
""" get a set of keys from redis """
res = self.connection.get(key)
print(res)
return res |
import a datatable ( grid ) by using the schema: table: column as keys. e. g. Sample input ( via cls_database. py - > test. csv ) TERM GENDER ID tot1 tot2 5320 M 78 18 66 1310 M 78 10 12 Loads the following: | def import_datatable(self, l_datatable, schema='datatable', col_key=0):
"""
import a datatable (grid) by using the schema:table:column as keys.
e.g. Sample input ( via cls_database.py -> test.csv)
TERM,GENDER,ID,tot1,tot2
5320,M,78,18,66
1310,M,78,10,12
L... |
Creator function for creating an instance of a Packer image script. | def creator(_, config):
"""Creator function for creating an instance of a Packer image script."""
packer_script = render(config.script, model=config.model, env=config.env,
variables=config.variables, item=config.item)
filename = "packer.dry.run.see.comment"
... |
Generates an optimized JPEG from JPEG - encoded bytes. | def process_jpeg_bytes(bytes_in, quality=DEFAULT_JPEG_QUALITY):
"""Generates an optimized JPEG from JPEG-encoded bytes.
:param bytes_in: the input image's bytes
:param quality: the output JPEG quality (default 95)
:returns: Optimized JPEG bytes
:rtype: bytes
:raises ValueError: Guetzli was no... |
Generates an optimized JPEG from RGB bytes. | def process_rgb_bytes(bytes_in, width, height, quality=DEFAULT_JPEG_QUALITY):
"""Generates an optimized JPEG from RGB bytes.
:param bytes bytes_in: the input image's bytes
:param int width: the width of the input image
:param int height: the height of the input image
:param int quality: the output ... |
Decorator for a class to make a singleton out of it. | def singleton(the_class):
"""
Decorator for a class to make a singleton out of it.
@type the_class: class
@param the_class: the class that should work as a singleton
@rtype: decorator
@return: decorator
"""
class_instances = {}
def get_instance(*args, **kwargs):
"""
... |
Breadth first search | def find_path_BFS(Graph,n,m):
"""
Breadth first search
"""
if m not in Graph:
return None
if n == m:
return [m]
path = [[n]]
searched = []
while True:
j = len(path)
#k = len(Graph[n])
for i in range(j):
node = path[i][-1]
fo... |
assumes start and target are an ( x y ) grid | def heuristic_cost(self, start, target):
""" assumes start and target are an (x,y) grid """
(x1, y1) = start
(x2, y2) = target
return abs(x1 - x2) + abs(y1 - y2) |
builds a 2048 starting board Printing Grid 0 0 0 2 0 0 4 0 0 0 0 0 0 0 0 0 | def build_board_2048():
""" builds a 2048 starting board
Printing Grid
0 0 0 2
0 0 4 0
0 0 0 0
0 0 0 0
"""
grd = Grid(4,4, [2,4])
grd.new_tile()
grd.new_tile()
print(grd)
return grd |
builds a checkers starting board Printing Grid 0 B 0 B 0 B 0 B B 0 B 0 B 0 B 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 W 0 W 0 W 0 W W 0 W 0 W 0 W 0 | def build_board_checkers():
""" builds a checkers starting board
Printing Grid
0 B 0 B 0 B 0 B
B 0 B 0 B 0 B 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0... |
tests for this module | def TEST():
""" tests for this module """
grd = Grid(4,4, [2,4])
grd.new_tile()
grd.new_tile()
print(grd)
print("There are ", grd.count_blank_positions(), " blanks in grid 1\n")
grd2 = Grid(5,5, ['A','B'])
grd2.new_tile(26)
print(grd2)
build_board_checkers()
print("There ar... |
Returns the full path to the file including leading/ and bucket name. Access to the bucket root are not allowed. | def path(self, name):
"""
Returns the full path to the file, including leading '/' and bucket name.
Access to the bucket root are not allowed.
"""
if not name:
raise SuspiciousOperation("Attempted access to '%s' denied." % name)
return os.path.join(self._bucke... |
TODO collect directories | def listdir(self, name):
"""
TODO collect directories
"""
return [], [obj.filename for obj in cloudstorage.listbucket(self.path(name))] |
Ask blobstore api for an url to directly serve the file | def url(self, name):
"""
Ask blobstore api for an url to directly serve the file
"""
key = blobstore.create_gs_key('/gs' + name)
return images.get_serving_url(key) |
Processing one stage. | def process(self, stage):
"""Processing one stage."""
self.logger.info("Processing pipeline stage '%s'", self.title)
output = []
for entry in stage:
key = list(entry.keys())[0]
if key == "env":
self.pipeline.data.env_list[1].update(entry[key])
... |
Setter method for virtual_mac mapped from YANG variable/ rbridge_id/ interface/ ve/ ipv6/ vrrpv3e/ virtual_mac ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_virtual_mac is considered as a private method. Backends looking to populate this variable should do so via call... | def _set_virtual_mac(self, v, load=False):
"""
Setter method for virtual_mac, mapped from YANG variable /rbridge_id/interface/ve/ipv6/vrrpv3e/virtual_mac (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_virtual_mac is considered as a private
method. Backen... |
Setter method for disable_res mapped from YANG variable/ ha/ process_restart/ disable_res ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_disable_res is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_dis... | def _set_disable_res(self, v, load=False):
"""
Setter method for disable_res, mapped from YANG variable /ha/process_restart/disable_res (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_disable_res is considered as a private
method. Backends looking to popu... |
Setter method for redundancy mapped from YANG variable/ brocade_ha_rpc/ redundancy ( rpc ) If this variable is read - only ( config: false ) in the source YANG file then _set_redundancy is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_redundancy () dir... | def _set_redundancy(self, v, load=False):
"""
Setter method for redundancy, mapped from YANG variable /brocade_ha_rpc/redundancy (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_redundancy is considered as a private
method. Backends looking to populate this vari... |
Setter method for reload mapped from YANG variable/ brocade_ha_rpc/ reload ( rpc ) If this variable is read - only ( config: false ) in the source YANG file then _set_reload is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_reload () directly. | def _set_reload(self, v, load=False):
"""
Setter method for reload, mapped from YANG variable /brocade_ha_rpc/reload (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_reload is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for circuit_type mapped from YANG variable/ isis_state/ interface_brief/ isis_intf_brief/ circuit_type ( isis - circ - type ) If this variable is read - only ( config: false ) in the source YANG file then _set_circuit_type is considered as a private method. Backends looking to populate this variable shoul... | def _set_circuit_type(self, v, load=False):
"""
Setter method for circuit_type, mapped from YANG variable /isis_state/interface_brief/isis_intf_brief/circuit_type (isis-circ-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_circuit_type is considered as a private
... |
Fetch trading fees. | def trading_fees(self) -> TradingFees:
"""Fetch trading fees."""
return self._fetch('trading fees', self.market.code)(self._trading_fees)() |
Fetch the market ticker. | def fetch_ticker(self) -> Ticker:
"""Fetch the market ticker."""
return self._fetch('ticker', self.market.code)(self._ticker)() |
Fetch the order book. | def fetch_order_book(self) -> OrderBook:
"""Fetch the order book."""
return self._fetch('order book', self.market.code)(self._order_book)() |
Fetch trades since given timestamp. | def fetch_trades_since(self, since: int) -> List[Trade]:
"""Fetch trades since given timestamp."""
return self._fetch_since('trades', self.market.code)(self._trades_since)(since) |
Fetch latest deposits must provide a limit. | def fetch_deposits(self, limit: int) -> List[Deposit]:
"""Fetch latest deposits, must provide a limit."""
return self._transactions(self._deposits, 'deposits', limit) |
Fetch all deposits since the given timestamp. | def fetch_deposits_since(self, since: int) -> List[Deposit]:
"""Fetch all deposits since the given timestamp."""
return self._transactions_since(self._deposits_since, 'deposits', since) |
Fetch latest withdrawals must provide a limit. | def fetch_withdrawals(self, limit: int) -> List[Withdrawal]:
"""Fetch latest withdrawals, must provide a limit."""
return self._transactions(self._withdrawals, 'withdrawals', limit) |
Fetch all withdrawals since the given timestamp. | def fetch_withdrawals_since(self, since: int) -> List[Withdrawal]:
"""Fetch all withdrawals since the given timestamp."""
return self._transactions_since(self._withdrawals_since, 'withdrawals', since) |
Request a withdrawal. | def request_withdrawal(self, amount: Number, address: str, subtract_fee: bool=False, **params) -> Withdrawal:
"""Request a withdrawal."""
self.log.debug(f'Requesting {self.currency} withdrawal from {self.name} to {address}')
amount = self._parse_money(amount)
if self.dry_run:
... |
Fetch an order by ID. | def fetch_order(self, order_id: str) -> Order:
"""Fetch an order by ID."""
return self._fetch(f'order id={order_id}', exc=OrderNotFound)(self._order)(order_id) |
Fetch latest open orders must provide a limit. | def fetch_open_orders(self, limit: int) -> List[Order]:
"""Fetch latest open orders, must provide a limit."""
return self._fetch_orders_limit(self._open_orders, limit) |
Fetch latest closed orders must provide a limit. | def fetch_closed_orders(self, limit: int) -> List[Order]:
"""Fetch latest closed orders, must provide a limit."""
return self._fetch_orders_limit(self._closed_orders, limit) |
Fetch closed orders since the given timestamp. | def fetch_closed_orders_since(self, since: int) -> List[Order]:
"""Fetch closed orders since the given timestamp."""
return self._fetch_orders_since(self._closed_orders_since, since) |
Cancel an order by ID. | def cancel_order(self, order_id: str) -> str:
"""Cancel an order by ID."""
self.log.debug(f'Canceling order id={order_id} on {self.name}')
if self.dry_run: # Don't cancel if dry run
self.log.warning(f'DRY RUN: Order cancelled on {self.name}: id={order_id}')
return order... |
Cancel multiple orders by a list of IDs. | def cancel_orders(self, order_ids: List[str]) -> List[str]:
"""Cancel multiple orders by a list of IDs."""
orders_to_cancel = order_ids
self.log.debug(f'Canceling orders on {self.name}: ids={orders_to_cancel}')
cancelled_orders = []
if self.dry_run: # Don't cancel if dry run
... |
Cancel all open orders. | def cancel_all_orders(self) -> List[str]:
"""Cancel all open orders."""
order_ids = [o.id for o in self.fetch_all_open_orders()]
return self.cancel_orders(order_ids) |
Minimum amount to place an order. | def min_order_amount(self) -> Money:
"""Minimum amount to place an order."""
return self._fetch('minimum order amount', self.market.code)(self._min_order_amount)() |
Place an order. | def place_order(self, side: Side, order_type: OrderType, amount: Number, price: Number=None) -> Order:
"""Place an order."""
order_repr = f'side={side} type={order_type} amount={amount} price={price}'
order_err = f'Failed to place order on {self.name}!: {order_repr}'
self.log.debug(f'Pl... |
Place a market order. | def place_market_order(self, side: Side, amount: Number) -> Order:
"""Place a market order."""
return self.place_order(side, OrderType.MARKET, amount) |
Place a limit order. | def place_limit_order(self, side: Side, amount: Number, price: Number) -> Order:
"""Place a limit order."""
return self.place_order(side, OrderType.LIMIT, amount, price) |
Setter method for node_id mapped from YANG variable/ node_id ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_node_id is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_node_id () directly. | def _set_node_id(self, v, load=False):
"""
Setter method for node_id, mapped from YANG variable /node_id (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_node_id is considered as a private
method. Backends looking to populate this variable should
do so via ... |
Setter method for firmware mapped from YANG variable/ firmware ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_firmware is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_firmware () directly. | def _set_firmware(self, v, load=False):
"""
Setter method for firmware, mapped from YANG variable /firmware (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_firmware is considered as a private
method. Backends looking to populate this variable should
d... |
Setter method for igmp_snooping_state mapped from YANG variable/ igmp_snooping_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_igmp_snooping_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_... | def _set_igmp_snooping_state(self, v, load=False):
"""
Setter method for igmp_snooping_state, mapped from YANG variable /igmp_snooping_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmp_snooping_state is considered as a private
method. Backends lo... |
Setter method for police_remark_profile mapped from YANG variable/ police_remark_profile ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_police_remark_profile is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set... | def _set_police_remark_profile(self, v, load=False):
"""
Setter method for police_remark_profile, mapped from YANG variable /police_remark_profile (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_police_remark_profile is considered as a private
method. Backends... |
Setter method for hardware mapped from YANG variable/ hardware ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_hardware is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_hardware () directly. | def _set_hardware(self, v, load=False):
"""
Setter method for hardware, mapped from YANG variable /hardware (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_hardware is considered as a private
method. Backends looking to populate this variable should
d... |
Setter method for zoning mapped from YANG variable/ zoning ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_zoning is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_zoning () directly. | def _set_zoning(self, v, load=False):
"""
Setter method for zoning, mapped from YANG variable /zoning (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_zoning is considered as a private
method. Backends looking to populate this variable should
do so via... |
Setter method for resource_monitor mapped from YANG variable/ resource_monitor ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_resource_monitor is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_resource_... | def _set_resource_monitor(self, v, load=False):
"""
Setter method for resource_monitor, mapped from YANG variable /resource_monitor (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_resource_monitor is considered as a private
method. Backends looking to pop... |
Setter method for acl_state mapped from YANG variable/ acl_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_acl_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_acl_state () directly. | def _set_acl_state(self, v, load=False):
"""
Setter method for acl_state, mapped from YANG variable /acl_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_acl_state is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for cpu_queue_info_state mapped from YANG variable/ cpu_queue_info_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_cpu_queue_info_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _s... | def _set_cpu_queue_info_state(self, v, load=False):
"""
Setter method for cpu_queue_info_state, mapped from YANG variable /cpu_queue_info_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cpu_queue_info_state is considered as a private
method. Backend... |
Setter method for filter_info_state mapped from YANG variable/ filter_info_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_filter_info_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_filter... | def _set_filter_info_state(self, v, load=False):
"""
Setter method for filter_info_state, mapped from YANG variable /filter_info_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_filter_info_state is considered as a private
method. Backends looking to... |
Setter method for overlay_service_policy_brief_state mapped from YANG variable/ overlay_service_policy_brief_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_overlay_service_policy_brief_state is considered as a private method. Backends looking to populate this var... | def _set_overlay_service_policy_brief_state(self, v, load=False):
"""
Setter method for overlay_service_policy_brief_state, mapped from YANG variable /overlay_service_policy_brief_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_overlay_service_policy_br... |
Setter method for vxlan_stats_acl_state mapped from YANG variable/ vxlan_stats_acl_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_vxlan_stats_acl_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj.... | def _set_vxlan_stats_acl_state(self, v, load=False):
"""
Setter method for vxlan_stats_acl_state, mapped from YANG variable /vxlan_stats_acl_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vxlan_stats_acl_state is considered as a private
method. Bac... |
Setter method for overlay_class_map mapped from YANG variable/ overlay_class_map ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_overlay_class_map is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_overlay_cla... | def _set_overlay_class_map(self, v, load=False):
"""
Setter method for overlay_class_map, mapped from YANG variable /overlay_class_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_overlay_class_map is considered as a private
method. Backends looking to popu... |
Setter method for overlay_policy_map mapped from YANG variable/ overlay_policy_map ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_overlay_policy_map is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_overlay_... | def _set_overlay_policy_map(self, v, load=False):
"""
Setter method for overlay_policy_map, mapped from YANG variable /overlay_policy_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_overlay_policy_map is considered as a private
method. Backends looking to ... |
Setter method for overlay_transit mapped from YANG variable/ overlay_transit ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_overlay_transit is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_overlay_transit (... | def _set_overlay_transit(self, v, load=False):
"""
Setter method for overlay_transit, mapped from YANG variable /overlay_transit (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_overlay_transit is considered as a private
method. Backends looking to populate thi... |
Setter method for routing_system mapped from YANG variable/ routing_system ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_routing_system is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_routing_system ... | def _set_routing_system(self, v, load=False):
"""
Setter method for routing_system, mapped from YANG variable /routing_system (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_routing_system is considered as a private
method. Backends looking to populate th... |
Setter method for vc_peer_state mapped from YANG variable/ vc_peer_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_vc_peer_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_vc_peer_state () d... | def _set_vc_peer_state(self, v, load=False):
"""
Setter method for vc_peer_state, mapped from YANG variable /vc_peer_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vc_peer_state is considered as a private
method. Backends looking to populate this v... |
Setter method for openflow_state mapped from YANG variable/ openflow_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_openflow_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_openflow_state ... | def _set_openflow_state(self, v, load=False):
"""
Setter method for openflow_state, mapped from YANG variable /openflow_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_openflow_state is considered as a private
method. Backends looking to populate th... |
Setter method for queues_state mapped from YANG variable/ queues_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_queues_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_queues_state () direc... | def _set_queues_state(self, v, load=False):
"""
Setter method for queues_state, mapped from YANG variable /queues_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_queues_state is considered as a private
method. Backends looking to populate this varia... |
Setter method for mctd_client_state_state mapped from YANG variable/ mctd_client_state_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_mctd_client_state_state is considered as a private method. Backends looking to populate this variable should do so via calling th... | def _set_mctd_client_state_state(self, v, load=False):
"""
Setter method for mctd_client_state_state, mapped from YANG variable /mctd_client_state_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mctd_client_state_state is considered as a private
met... |
Setter method for ptp_state mapped from YANG variable/ ptp_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_ptp_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_ptp_state () directly. | def _set_ptp_state(self, v, load=False):
"""
Setter method for ptp_state, mapped from YANG variable /ptp_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ptp_state is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for monitor mapped from YANG variable/ monitor ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_monitor is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_monitor () directly. | def _set_monitor(self, v, load=False):
"""
Setter method for monitor, mapped from YANG variable /monitor (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_monitor is considered as a private
method. Backends looking to populate this variable should
do so... |
Setter method for mac mapped from YANG variable/ mac ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_mac is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_mac () directly. | def _set_mac(self, v, load=False):
"""
Setter method for mac, mapped from YANG variable /mac (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac is considered as a private
method. Backends looking to populate this variable should
do so via calling thi... |
Setter method for terminal_cfg mapped from YANG variable/ terminal_cfg ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_terminal_cfg is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_terminal_cfg () direc... | def _set_terminal_cfg(self, v, load=False):
"""
Setter method for terminal_cfg, mapped from YANG variable /terminal_cfg (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_terminal_cfg is considered as a private
method. Backends looking to populate this varia... |
Setter method for mpls_state mapped from YANG variable/ mpls_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_mpls_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_mpls_state () directly. | def _set_mpls_state(self, v, load=False):
"""
Setter method for mpls_state, mapped from YANG variable /mpls_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mpls_state is considered as a private
method. Backends looking to populate this variable shou... |
Setter method for tm_state mapped from YANG variable/ tm_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_tm_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_tm_state () directly. | def _set_tm_state(self, v, load=False):
"""
Setter method for tm_state, mapped from YANG variable /tm_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_tm_state is considered as a private
method. Backends looking to populate this variable should
d... |
Setter method for vrf mapped from YANG variable/ vrf ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_vrf is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_vrf () directly. | def _set_vrf(self, v, load=False):
"""
Setter method for vrf, mapped from YANG variable /vrf (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_vrf is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj.... |
Setter method for fcoe_fsb mapped from YANG variable/ fcoe_fsb ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_fcoe_fsb is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_fcoe_fsb () directly. | def _set_fcoe_fsb(self, v, load=False):
"""
Setter method for fcoe_fsb, mapped from YANG variable /fcoe_fsb (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_fsb is considered as a private
method. Backends looking to populate this variable should
d... |
Setter method for fcoe mapped from YANG variable/ fcoe ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_fcoe is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_fcoe () directly. | def _set_fcoe(self, v, load=False):
"""
Setter method for fcoe, mapped from YANG variable /fcoe (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe is considered as a private
method. Backends looking to populate this variable should
do so via calling... |
Setter method for protocol_vrrp mapped from YANG variable/ protocol_vrrp ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_protocol_vrrp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_protocol_vrrp () d... | def _set_protocol_vrrp(self, v, load=False):
"""
Setter method for protocol_vrrp, mapped from YANG variable /protocol_vrrp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_protocol_vrrp is considered as a private
method. Backends looking to populate this v... |
Setter method for acl_policy mapped from YANG variable/ acl_policy ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_acl_policy is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_acl_policy () directly. | def _set_acl_policy(self, v, load=False):
"""
Setter method for acl_policy, mapped from YANG variable /acl_policy (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_acl_policy is considered as a private
method. Backends looking to populate this variable shou... |
Setter method for bd_mac_br_state mapped from YANG variable/ bd_mac_br_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_bd_mac_br_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_bd_mac_br_st... | def _set_bd_mac_br_state(self, v, load=False):
"""
Setter method for bd_mac_br_state, mapped from YANG variable /bd_mac_br_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bd_mac_br_state is considered as a private
method. Backends looking to populat... |
Setter method for adj_neighbor_entries_state mapped from YANG variable/ adj_neighbor_entries_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_adj_neighbor_entries_state is considered as a private method. Backends looking to populate this variable should do so via c... | def _set_adj_neighbor_entries_state(self, v, load=False):
"""
Setter method for adj_neighbor_entries_state, mapped from YANG variable /adj_neighbor_entries_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_neighbor_entries_state is considered as a pri... |
Setter method for counts_state mapped from YANG variable/ counts_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_counts_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_counts_state () direc... | def _set_counts_state(self, v, load=False):
"""
Setter method for counts_state, mapped from YANG variable /counts_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_counts_state is considered as a private
method. Backends looking to populate this varia... |
Setter method for isis_state mapped from YANG variable/ isis_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_isis_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_isis_state () directly. | def _set_isis_state(self, v, load=False):
"""
Setter method for isis_state, mapped from YANG variable /isis_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_isis_state is considered as a private
method. Backends looking to populate this variable shou... |
Setter method for traffic_state mapped from YANG variable/ traffic_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_traffic_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_traffic_state () d... | def _set_traffic_state(self, v, load=False):
"""
Setter method for traffic_state, mapped from YANG variable /traffic_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_state is considered as a private
method. Backends looking to populate this v... |
Setter method for local_node mapped from YANG variable/ local_node ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_local_node is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_local_node () directly. | def _set_local_node(self, v, load=False):
"""
Setter method for local_node, mapped from YANG variable /local_node (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_local_node is considered as a private
method. Backends looking to populate this variable shou... |
Setter method for cluster mapped from YANG variable/ cluster ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_cluster is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_cluster () directly. | def _set_cluster(self, v, load=False):
"""
Setter method for cluster, mapped from YANG variable /cluster (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cluster is considered as a private
method. Backends looking to populate this variable should
do so via ... |
Setter method for copy mapped from YANG variable/ copy ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_copy is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_copy () directly. | def _set_copy(self, v, load=False):
"""
Setter method for copy, mapped from YANG variable /copy (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_copy is considered as a private
method. Backends looking to populate this variable should
do so via calling... |
Setter method for support mapped from YANG variable/ support ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_support is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_support () directly. | def _set_support(self, v, load=False):
"""
Setter method for support, mapped from YANG variable /support (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_support is considered as a private
method. Backends looking to populate this variable should
do so... |
Setter method for qos_mpls mapped from YANG variable/ qos_mpls ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_qos_mpls is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_qos_mpls () directly. | def _set_qos_mpls(self, v, load=False):
"""
Setter method for qos_mpls, mapped from YANG variable /qos_mpls (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_qos_mpls is considered as a private
method. Backends looking to populate this variable should
d... |
Setter method for preprovision mapped from YANG variable/ preprovision ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_preprovision is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_preprovision () direc... | def _set_preprovision(self, v, load=False):
"""
Setter method for preprovision, mapped from YANG variable /preprovision (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_preprovision is considered as a private
method. Backends looking to populate this varia... |
Setter method for global_mtu_conf mapped from YANG variable/ global_mtu_conf ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_global_mtu_conf is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_global_mtu_c... | def _set_global_mtu_conf(self, v, load=False):
"""
Setter method for global_mtu_conf, mapped from YANG variable /global_mtu_conf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_global_mtu_conf is considered as a private
method. Backends looking to populat... |
Setter method for rbridge_id mapped from YANG variable/ rbridge_id ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_rbridge_id is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_rbridge_id () directly. | def _set_rbridge_id(self, v, load=False):
"""
Setter method for rbridge_id, mapped from YANG variable /rbridge_id (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_rbridge_id is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for dpod mapped from YANG variable/ dpod ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_dpod is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_dpod () directly. | def _set_dpod(self, v, load=False):
"""
Setter method for dpod, mapped from YANG variable /dpod (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dpod is considered as a private
method. Backends looking to populate this variable should
do so via calling... |
Setter method for vrrp_rbridge_global mapped from YANG variable/ vrrp_rbridge_global ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_vrrp_rbridge_global is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_... | def _set_vrrp_rbridge_global(self, v, load=False):
"""
Setter method for vrrp_rbridge_global, mapped from YANG variable /vrrp_rbridge_global (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vrrp_rbridge_global is considered as a private
method. Backends lo... |
Setter method for pw_profile mapped from YANG variable/ pw_profile ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_pw_profile is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_pw_profile () directly. | def _set_pw_profile(self, v, load=False):
"""
Setter method for pw_profile, mapped from YANG variable /pw_profile (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_pw_profile is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for cee_map mapped from YANG variable/ cee_map ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_cee_map is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_cee_map () directly. | def _set_cee_map(self, v, load=False):
"""
Setter method for cee_map, mapped from YANG variable /cee_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cee_map is considered as a private
method. Backends looking to populate this variable should
do so via ... |
Setter method for aaa_config mapped from YANG variable/ aaa_config ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_aaa_config is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_aaa_config () directly. | def _set_aaa_config(self, v, load=False):
"""
Setter method for aaa_config, mapped from YANG variable /aaa_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_aaa_config is considered as a private
method. Backends looking to populate this variable shou... |
Setter method for username mapped from YANG variable/ username ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_username is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_username () directly. | def _set_username(self, v, load=False):
"""
Setter method for username, mapped from YANG variable /username (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_username is considered as a private
method. Backends looking to populate this variable should
do so ... |
Setter method for service mapped from YANG variable/ service ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_service is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_service () directly. | def _set_service(self, v, load=False):
"""
Setter method for service, mapped from YANG variable /service (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_service is considered as a private
method. Backends looking to populate this variable should
do so... |
Setter method for sfm_state mapped from YANG variable/ sfm_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_sfm_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_sfm_state () directly. | def _set_sfm_state(self, v, load=False):
"""
Setter method for sfm_state, mapped from YANG variable /sfm_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_sfm_state is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for capabilities mapped from YANG variable/ capabilities ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_capabilities is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_capabilities () direc... | def _set_capabilities(self, v, load=False):
"""
Setter method for capabilities, mapped from YANG variable /capabilities (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_capabilities is considered as a private
method. Backends looking to populate this varia... |
Setter method for openflow_global mapped from YANG variable/ openflow_global ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_openflow_global is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_openflow_glo... | def _set_openflow_global(self, v, load=False):
"""
Setter method for openflow_global, mapped from YANG variable /openflow_global (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_openflow_global is considered as a private
method. Backends looking to populat... |
Setter method for system_monitor_mail mapped from YANG variable/ system_monitor_mail ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_system_monitor_mail is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_... | def _set_system_monitor_mail(self, v, load=False):
"""
Setter method for system_monitor_mail, mapped from YANG variable /system_monitor_mail (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_monitor_mail is considered as a private
method. Backends lo... |
Setter method for tpvm mapped from YANG variable/ tpvm ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_tpvm is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_tpvm () directly. | def _set_tpvm(self, v, load=False):
"""
Setter method for tpvm, mapped from YANG variable /tpvm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_tpvm is considered as a private
method. Backends looking to populate this variable should
do so via calling... |
Setter method for dscp_exp_state mapped from YANG variable/ dscp_exp_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_dscp_exp_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_dscp_exp_state ... | def _set_dscp_exp_state(self, v, load=False):
"""
Setter method for dscp_exp_state, mapped from YANG variable /dscp_exp_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dscp_exp_state is considered as a private
method. Backends looking to populate th... |
Setter method for exp_dscp_state mapped from YANG variable/ exp_dscp_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_exp_dscp_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_exp_dscp_state ... | def _set_exp_dscp_state(self, v, load=False):
"""
Setter method for exp_dscp_state, mapped from YANG variable /exp_dscp_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_exp_dscp_state is considered as a private
method. Backends looking to populate th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.