/solaris-userland/components/openstack/neutron/files/agent/solaris/ |
H A D | namespace_manager.py | 21 def __init__(self, *args, **kwargs): 24 def __enter__(self): 25 return self 27 def __exit__(self, exc_type, value, traceback): 33 def keep_router(self, router_id): 36 def keep_ext_net(self, ext_net_id): 39 def get_prefix_and_id(self, ns_name): 42 def is_managed(self, ns_name): 45 def list_all(self): 48 def ensure_router_cleanup(self, router_i [all...] |
H A D | pd.py | 23 def __init__(self, *args, **kwargs): 27 def enable_subnet(self, router_id, subnet_id, prefix, ri_ifname, mac): 31 def disable_subnet(self, router_id, subnet_id): 35 def update_subnet(self, router_id, subnet_id, prefix): 39 def add_gw_interface(self, router_id, gw_ifname): 43 def delete_router_pd(self, router): 47 def remove_gw_interface(self, router_id): 51 def sync_router(self, router_id): 55 def remove_stale_ri_ifname(self, router_id, stale_ifname): 59 def process_prefix_update(self) [all...] |
H A D | packetfilter.py | 27 def __init__(self, anchor_name, layer2=False): 43 self.root_anchor_path = anchor_name 44 self.layer2 = layer2 46 def _build_pfctl_cmd(self, options): 48 if self.layer2: 53 def get_anchor_path(self, subanchors): 55 return '%s/%s' % (self.root_anchor_path, '/'.join(subanchors)) 57 return self.root_anchor_path 59 def add_nested_anchor_rule(self, parent_anchor, child_anchor, 72 anchor_path = self [all...] |
H A D | pf_firewall.py | 41 def get_port_by_id(self, port_id): 42 ports = self.ovsdb.db_find( 59 def __init__(self): 60 self.pf = packetfilter.PacketFilter("_auto/neutron:ovs:agent", 63 self.filtered_ports = {} 64 self.unfiltered_ports = {} 66 self.sg_rules = {} 68 self.sg_members = collections.defaultdict( 74 self.label_num = 100 75 self [all...] |
H A D | net_lib.py | 46 def __init__(self, ifname): 47 self._ifname = ifname 67 def ipaddr_list(self, filters=None): 69 self._ifname] 70 stdout = self.execute(cmd) 83 def create_address(self, ipaddr, addrobjname=None, temp=True, 85 if ifcheck and not self.ifname_exists(self._ifname): 87 cmd = ['/usr/sbin/ipadm', 'create-ip', self._ifname] 90 self [all...] |
H A D | ra.py | 66 def __init__(self, router_id, dev_name_helper): 67 self._router_id = router_id 68 self._dev_name_helper = dev_name_helper 70 def _generate_ndpd_conf(self, router_ports): 72 self._router_id, 78 interface_name = self._dev_name_helper(p['id']) 89 def _refresh_ndpd(self, ndpd_conf): 102 def enable(self, router_ports): 107 self.disable() 109 LOG.debug("enabling ndpd for router %s", self [all...] |
H A D | dhcp.py | 42 def __init__(self, conf, network, process_monitor, version=None, 44 super(Dnsmasq, self).__init__(conf, network, process_monitor, 46 self.device_manager = DeviceManager(self.conf, plugin) 49 def _destroy_namespace_and_port(self): 51 self.device_manager.destroy(self.network, self.interface_name) 54 self.interface_name) 56 def _build_cmdline_callback(self, pid_fil [all...] |
H A D | interface.py | 81 def __init__(self, conf): 82 self.conf = conf 83 self._neutron_client = None 86 def neutron_client(self): 87 if self._neutron_client: 88 return self._neutron_client 90 auth_url=self.conf.auth_url, 91 username=self.conf.admin_user, 92 password=self.conf.admin_password, 93 tenant_name=self [all...] |
/solaris-userland/components/openstack/ironic/files/drivers/ |
H A D | solaris.py | 37 def __init__(self): 39 self.power = ipmitool.IPMIPower() 40 self.deploy = solaris_ipmitool.SolarisDeploy() 41 self.console = None # Not implemented yet 42 self.rescue = None # Not implemented yet 43 self.management = solaris_ipmitool.SolarisManagement() 44 self.inspect = solaris_ipmitool.SolarisInspect() 45 self.vendor = None # No VendorSpecific methods yet
|
/solaris-userland/components/openstack/cinder/files/solaris/ |
H A D | zfs.py | 112 def __init__(self, *args, **kwargs): 113 super(ZFSVolumeDriver, self).__init__(execute=self.solaris_execute, 115 self.configuration.append_config_values(solaris_zfs_opts) 116 self.run_local = self.configuration.san_is_local 117 self.hostname = socket.gethostname() 119 def solaris_execute(self, *cmd, **kwargs): 121 if self.run_local: 124 return super(ZFSVolumeDriver, self) [all...] |
H A D | nfs.py | 53 def __init__(self, *args, **kwargs): 54 super(ZfsNfsVolumeDriver, self).__init__(*args, **kwargs) 55 self.configuration.append_config_values(solaris_zfs_nfs_opts) 57 self.last_rr_pos = None 59 if self.configuration.nfs_mount_options: 62 def _update_volume_stats(self): 66 backend_name = self.configuration.safe_get('volume_backend_name') 67 stats["volume_backend_name"] = backend_name or self.__class__.__name__ 70 stats['storage_protocol'] = self.driver_volume_type 72 self [all...] |
/solaris-userland/components/openstack/neutron/files/services/vpn/device_drivers/ |
H A D | solaris_ipsec.py | 432 def __init__(self, conf, process_id, 434 self.conf = conf 435 self.id = process_id 436 self.updated_pending_status = False 437 self.ike_running = False 438 self.namespace = namespace 439 self.connection_status = {} 440 self.connection_ids = [] 441 self.ikeadm_fails = 0 442 self [all...] |
/solaris-userland/tools/ |
H A D | build-watch.d | 35 self->file = cleanpath(copyinstr(arg0)); 40 self->file = cleanpath(copyinstr(arg1)); 44 /((pid == $target) || progenyof($target)) && (arg0 != -1) && (self->file != "")/ 46 @opened[self->file] = count(); 47 self->file = 0; 56 self->execpath = stringof(arg0); 62 @tools[execname, self->execpath] = count(); 63 self->execpath = 0;
|
H A D | bass-o-matic | 62 def __init__(self, path=None, debug=None): 63 self.debug = debug 64 self.path = path 67 self.supplied_packages = self.run_make(path, 'print-package-names') 70 self.supplied_paths = self.run_make(path, 'print-package-paths') 73 self.required_paths = self.run_make(path, 'print-required-paths') 75 def required(self, componen [all...] |
/solaris-userland/components/openstack/neutron/files/agent/l3/ |
H A D | solaris_agent.py | 58 def __init__(self, router_id, router, agent_conf, interface_driver, 60 super(SolarisRouterInfo, self).__init__(router_id, router, agent_conf, 62 self.pf = packetfilter.PacketFilter("_auto/neutron:l3:agent") 63 self.iptables_manager = None 64 self.remove_route = False 65 self.router_namespace = None 66 self.ns_name = None 67 self.ipnet_gwportname = dict() 68 self.tenant_subnets = dict() 69 self [all...] |
/solaris-userland/components/desktop/desktop-cache/files/ |
H A D | find_newer | 39 def __init__(self, msg=None): 41 self.msg = "Error: " + str(msg) + "\n\n" 43 self.msg = "" 44 self.msg = self.msg + "Usage: find_newer.py [options] dir...\n\n" 45 self.msg = self.msg + "Options:\n" 46 self.msg = self.msg + " --name glob find files matching glob\n" 47 self [all...] |
/solaris-userland/components/desktop/os-welcome/files/ |
H A D | os-about.py | 110 def __init__(self, parent, filename): 114 Gtk.Dialog.__init__(self, title, parent, flags, buttons) 115 self.connect('response', lambda w, id: self.destroy()) 117 self.set_modal(True) 118 self.set_decorated(True) 119 self.set_border_width(6) 120 self.set_default_size(700,700) 121 self.set_resizable(True) 122 self [all...] |
H A D | os-next-steps.py | 86 def __init__(self, parent=None): 87 Gtk.Dialog.__init__(self, self.__class__.__name__, parent, 0, None) 89 self.connect('destroy', lambda *w: Gtk.main_quit()) 93 self.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse('white')) 96 self.set_title(_("Start here with Oracle Solaris 12")) 97 self.set_border_width(5) 98 self.set_resizable(False) 99 self.vbox.set_border_width(2) 100 self [all...] |
/solaris-userland/components/openstack/nova/files/solariszones/ |
H A D | driver.py | 257 def create(self, context, size, name, description, snapshot=None, 315 def update(self, context, volume_id, fields): 326 def extend(self, context, volume, newsize): 341 def __init__(self, zone): 345 self.zone = zone 346 self.editing = False 348 def __enter__(self): 351 self.zone.editConfig() 352 self.editing = True 353 return self [all...] |
/solaris-userland/components/proftpd/dtrace/ |
H A D | example.d | 17 self->start = timestamp; 21 /self->start/ 23 this->delta = (timestamp - self->start) / 1000; 27 self->start = 0;
|
/solaris-userland/components/python/os-brick/files/solaris/ |
H A D | solarisiscsi.py | 33 def __init__(self, *args, **kwargs): 34 self.execute = putils.execute 36 def _get_device_path(self, connection_properties): 55 (out, _err) = self.execute('/usr/sbin/iscsiadm', 'list', 79 def get_initiator(self): 81 out, err = self.execute('/usr/sbin/iscsiadm', 'list', 'initiator-node') 88 def _connect_to_iscsi_portal(self, connection_properties): 91 self.execute('/usr/sbin/iscsiadm', 'add', 'discovery-address', 93 self.execute('/usr/sbin/iscsiadm', 'modify', 'discovery', 95 (out, _err) = self [all...] |
H A D | solarisfc.py | 33 def __init__(self, *args, **kwargs): 34 self.execute = putils.execute 36 def _get_fc_hbas(self): 40 out, err = self.execute('/usr/sbin/fcinfo', 'hba-port') 80 def get_fc_wwnns(self): 82 hbas = self._get_fc_hbas() 93 def get_fc_wwpns(self): 95 hbas = self._get_fc_hbas() 106 def _refresh_connection(self): 108 wwpns = self [all...] |
/solaris-userland/tools/python/pkglint/ |
H A D | userland.py | 44 def __init__(self, config): 45 self.description = _( 49 self.proto_path = path.split() 51 self.proto_path = None 57 self.pathlist32 = [ 66 self.pathlist64 = [ 81 self.runpath_re = [ 86 self.runpath_64_re = [ 105 self.initscript_re = re.compile("^etc/(rc.|init)\.d") 107 self [all...] |
/solaris-userland/components/ruby/puppet-solaris/ext/ |
H A D | puppet_audit.c | 54 audit_init(VALUE self) argument 62 Data_Get_Struct(self, adt_session_data_t, ah); 106 return (self); 110 audit_start(VALUE self) argument 115 Data_Get_Struct(self, adt_session_data_t, ah); 127 return (self); 131 audit_stop(VALUE self) argument 136 Data_Get_Struct(self, adt_session_data_t, ah); 146 return (self); 150 audit_teardown(VALUE self) argument [all...] |
/solaris-userland/components/openstack/ironic/files/drivers/modules/ |
H A D | solaris_ipmitool.py | 1318 def __init__(self, task): 1321 Thread.__init__(self) 1323 self.task = task 1324 self.node = task.node 1325 self._state = states.DEPLOYWAIT 1326 self._error = None 1327 self.ssh_connection = None 1328 self.running = True 1331 def state(self): 1333 return self [all...] |