def get_xos_args(self, throw_exception=True):
    args = {}
    instance_name = self.get_requirement('tosca.relationships.network.BindsTo')
    if instance_name:
        args['instance'] = self.get_xos_object(Instance, throw_exception, name=instance_name)
    net_name = self.get_requirement('tosca.relationships.network.LinksTo')
    if net_name:
        args['network'] = self.get_xos_object(Network, throw_exception, name=net_name)
    return args
def get_xos_args(self, throw_exception=True):
    args = {}
    instance_name = self.get_requirement('tosca.relationships.network.BindsTo')
    if instance_name:
        args['instance'] = self.get_xos_object(Instance, throw_exception, name=instance_name)
    net_name = self.get_requirement('tosca.relationships.network.LinksTo')
    if net_name:
        args['network'] = self.get_xos_object(Network, throw_exception, name=net_name)
    return args